Hello,
I setup HA via Docker, added a MQTT Broker via Docker and use a GOSUND plug.
In a MQTT Explorer I can see the following data:
{"Time":"2025-11-27T08:03:28","ENERGY":{"TotalStartTime":"2025-11-18T09:10:19","Total":0.501,"Yesterday":0.000,"Today":0.112,"Period":7,"Power":95,"ApparentPower":129,"ReactivePower":88,"Factor":0.73,"Voltage":228,"Current":0.566}}
But HA is showing only a few of this entities:
Next I added the following code in configuration.xml:
homeassistant:
customize:
sensor.sonoff_sonoff_energy_total:
unit_of_measurement: "kwh"
device_class: energy
start_class: total_increasing
last_reset: 1970-01-01T00:00:00+00:00
Unfortunately it does not help. The “energy_total” entity is not visible in HA.
Any idea what I have to do?
