I am reading powermeter data via an ESP and IR sensors. It runs tasmota and I need to add the units for homeassistant to add to the energy dashboard.
So I added to the configuration.yaml:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
solarmax: !include solarmax.yaml
customize: !include powermeter.yaml
And this is the powermeter.yaml file:
sensor.mt681_mt681_total_out:
unit_of_measurement: “kWh”
device_class: “energy”
state_class: “total_increasing”
icon: “mdi:lightning-bolt”
friendly_name: “MT681 Total Energy”
The file rights seem ok:
But no units shown here:
Just to prove I have the correct sensor:



