NHey guys, need your help. I would create a overview from our tumble dryer (trockner). It is connected with a “Fritz Dect 210” socket. The identify of the devices and entities are without problems…
I see:
That i can display the sensor datas i have to add the sensors in the configuration.yaml - i do it like this:
sensor:
- platform: template
sensors:
trockner_watts:
friendly_name_template: "{{ states.switch.trockner.name}} Aktueller Verbrauch"
value_template: '{{ states.switch.trockner.attributes["current_power_w"] | float }}'
unit_of_measurement: 'W'
trockner_total_kWh:
friendly_name_template: "{{ states.switch.trockner.name}} Gesamt Verbrauch"
value_template: '{{ states.switch.trockner.attributes["total_consumption"] | float }}'
unit_of_measurement: 'kWh'
trockner_temperature:
friendly_name_template: "{{ states.switch.trockner.name}} Aktuelle Temperatur"
value_template: '{{ states.switch.trockner.attributes["temperature"] | float }}'
unit_of_measurement: '°C'
But it doesn’t work and i have no ideas what is wrong…on verify from the configuration i get this:
Konfiguration fehlerhaftKONFIGURATION PRÜFEN
Invalid config for [sensor.template]: invalid slug trockner_total_kWh (try trockner_total_kwh) for dictionary value @ data[‘sensors’]. Got OrderedDict([(‘trockner_watts’, OrderedDict([(‘friendly_name_template’, ‘{{ states.switch.trockner.name}} Aktueller Verbrauch’), (‘value_template’, ‘{{ states.switch.trockner.attributes[“current_power_w”] | float }}’), (‘unit_of_measurement’, ‘W’)])), (‘trockner_total_kWh’, OrderedDict([(‘friendly_name_template’, ‘{{ states.switch.trockner.name}} Gesamt Verbrauch’), (‘value_template’, ‘{{ states.switch.trockner.attributes[“total_consumption”] | float }}’), (‘unit_of_measurement’, ‘kWh’)])), (… (See ?, line ?).
Would be nice if some can help…thank you!