Hi guys
I have a power manager that offers an API to read the consumption in watt hours.
For instance I get this back while charging the car:
“cWh”: 24.09,
I created a sensor with the following code in sensors.yaml:
- platform: rest
name: consumption in kilo watt hours
resource: http://192.168.xxx.xxx/v2/point
value_template: "{{ value_json.cWh | float * 0.001}}"
state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
scan_interval: 10
When checking the returned value I get this:
0.02409
So far so good. If I now add this sensor to the energy dashboard the consumption in one hour is way too low. It should be around 9 kWh but it’s rather around 0.12 kWh.
What am I missing?
Thanks for any help!