Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102998

Daily Total Increase from a REST Service in Energy Dashboard

$
0
0

Hi, I’m new to Home Assistant trying my first integrations and I’m stuck at one point. I get measurement data in watts via a REST service. These are then combined via an integration. In addition, I created a daily summary via utility_meter. Now I want to insert the daily summary into the energy dashboard and I get the following error: The entity does not have the expected device class.

what am I doing wrong?

sensor:
  - platform: rest
    name: "PV"
    resource: http://192.168.1.64/report
    method: GET
    unit_of_measurement: Wh
    device_class: energy
    state_class: measurement
    value_template: "{{ value_json.power }}"
    scan_interval: 1

  - platform: integration
    source: sensor.pv
    unit_prefix: k
    name: "pv_total"
    round: 3


utility_meter:
  daily_energy:
    source: sensor.pv_total
    cycle: daily

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102998

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>