Hi all, i think i need some help since i am just can’t understand something…
i configured a gasmeter to track in in my energy dashboard and included the config in my configuration files. The sensor is working properly as far as i can tell, it shows up like this:
Its config entry looks like this:
- platform: template
sensors:
gasverbrauch_in_kwh:
friendly_name: "Gasverbrauch in kWh"
value_template: "{{ states('sensor.gas_meter_value')|float(default=0) * 10.3 }}" # Convert 1 m3 => 10,3 kWh
availability_template: "{{ states('sensor.gas_meter_value') not in ['unknown', 'unavailable', 'none'] }}"
unit_of_measurement: 'kWh'
icon_template: "mdi:fire"
device_class: gas
attribute_templates:
state_class: total_increasing
I can add it to my energy dashboard, but after that it shows the following:
I don’t understand what’s happening there since the unit of measure is declared in the right way (in my oppionion) as kWh. So why is there this error?
Appreciate any help