Hey guys,
something is wrong with my configuration. I want to show the total energy consumption from one of my TP-Link HS110 switches in my dashboard and defined the following sensor in the configuration.yaml file.
sensor:
- platform: template
sensors:
flimheizcurrent:
value_template: '{{ states.switch.flimheiz.attributes["current_power_w"] | replace(" W", "") | float }}'
unit_of_measurement: 'W'
flimheiztotal:
value_template: '{{ states.switch.flimheiz.attributes["total_energy_kwh"] | replace(" kW", "") | float }}'
unit_of_measurement: 'kwh'
By using the above statement I get the right value in the template editor but nothing shows up in my dashboard. Did I miss something?