SonnenladenGmbH / APsystems-EZ1-API-HomeAssistant

The APsystems EZ1 Integration offers a streamlined interface for interacting with the local API of APsystems EZ1 Microinverters using Home Assistant.
MIT License
77 stars 11 forks source link

device_class `energy` for sensor.power #44

Closed JM-Lemmi closed 1 month ago

JM-Lemmi commented 1 month ago

To use the power_p1, power_p2 and total_power sensors in the energy dashboard, they need to have a device_class of energy.

Currently the device_class is power.

I propose changing the class to energy.

mawoka-myblock commented 1 month ago

That's not how it work, as Watt is a unit of power, not of energy, which is also documented int the HA docs