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