core icon indicating copy to clipboard operation
core copied to clipboard

energy dashboard with efergy

Open mauriziozito01 opened this issue 2 years ago • 4 comments

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

mauriziozito01 avatar Sep 21 '22 07:09 mauriziozito01

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

mauriziozito01 avatar Sep 21 '22 08:09 mauriziozito01

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).

tkdrob avatar Sep 21 '22 11:09 tkdrob

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?

vahaldor avatar Sep 23 '22 08:09 vahaldor

ok, here is the integration transforming power sensor into energy sensor exactly as I expected: https://www.home-assistant.io/integrations/integration/#energy

vahaldor avatar Sep 23 '22 08:09 vahaldor

Yep. I was just going to point you there. That is a workaround to get what you want.

tkdrob avatar Sep 23 '22 12:09 tkdrob

@home-assistant close

tkdrob avatar Oct 24 '22 12:10 tkdrob