core
core copied to clipboard
energy dashboard with efergy
The problem
The new energy dashboard only allows the use of Device Class "Energy" sensors. But the Efergy integration uses the device class "Power" for Solar Production / AC Power etc. Thus the device class needs to be changed
What version of Home Assistant Core has the issue?
2022.9.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Efergy
Link to integration documentation on our website
https://www.home-assistant.io/integrations/efergy
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
efergy documentation efergy source (message by IssueLinks)
Hey there @tkdrob, mind taking a look at this issue as it has been labeled with an integration (efergy
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
I fail to see a need for a change. Some sensors are disabled by default. Have you checked those? The ones with the Power device class are correct. They are measurements of Watts which by definition is Power, not Energy (kWh).
Sounds reasonable, however, when we have power outlet that provides you with a power sensor, how can we translate into energy sensor to add it into energy dashboard? This should just be a sensor calculating power in last hour to provide us with kWh?
ok, here is the integration transforming power sensor into energy sensor exactly as I expected: https://www.home-assistant.io/integrations/integration/#energy
Yep. I was just going to point you there. That is a workaround to get what you want.
@home-assistant close