Today I included this Gosund Tuya socket into my HA. I wanted to integrate it into my energy dashbord. However, entity was not showing up. In this FAQ I found out that the entity attributes are wrong, i.e. device_class was “power” instead of “energy” and state_class was also wrong. I tried to manually set the correct values:
The outlets attributes aren’t ‘wrong’ - you can’t change what it reports just by editing items in the development console. They are reporting device class Power not Energy because that’s what it reports. Power is NOW. Energy is the measurement of power over time.
You need to undo that change before you read the article StillJack posted…
However, I still struggle to integrate the new helpers in my energy dashbord. Wont show up as new device to add:
And given that the energy dashbord requires a sensor entity to have “state_class: energy” it makes sense that its not visible. Any idea how to change that?