Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy Entities Don't Work With HA Energy Dashboard #183

Open
fboundy opened this issue Oct 10, 2022 · 14 comments
Open

Energy Entities Don't Work With HA Energy Dashboard #183

fboundy opened this issue Oct 10, 2022 · 14 comments

Comments

@fboundy
Copy link

fboundy commented Oct 10, 2022

Energy entities are not appearing as Individual Devices on the HA Energy Dashboard. I think this is because the state_class for them is not seto to total as described here

@nmatt25
Copy link

nmatt25 commented Nov 4, 2022

I am having the same issue. I have a z-wave outlet along with a couple other devices that are reporting a total power usage but can not add it to the energy dash board.

@fboundy
Copy link
Author

fboundy commented Nov 5, 2022 via email

@nmatt25
Copy link

nmatt25 commented Nov 8, 2022

I can see the power sensor in HA but it will not allow me to use it in the energy dash board due to the state_class not being set correctly

@jason0x43
Copy link
Owner

Hmm… I haven’t looked into the energy dashboard before, but from the docs it sounds like a Hubitat Energy Meter device would use the ‘total’ state class, while a Power Meter would use ‘measurement’. It shouldn’t be too hard to implement.

@fboundy
Copy link
Author

fboundy commented Nov 8, 2022 via email

@jason0x43
Copy link
Owner

I added state class attributes to the sensor entities in v0.8.5b1. Let me know if that works.

@hokfujow
Copy link

Hi - I'm having this problem as well. I checked the version of the hubitat integration in HACS and it's 0.8.4, which seems to be the newest available. Do I need to manually update it somehow?

@jason0x43
Copy link
Owner

@hokfujow You’ll need to enable beta versions for the integration in HACS. Open Hubitat’s HACS card, choose “Redownload” from the three-dot menu in the upper right, then enable “Show beta versions”.

@hokfujow
Copy link

hokfujow commented Jan 30, 2023

Ah, yes, I did figure this out - thanks! So I did that, and I was able to download the new version. Restarted HA. Reloaded the hubitat integration. Made sure the relevant energy entities (including energy time and last update time) were enabled. Reloaded integration again.
Still not seeing the devices available to add in the Energy dashboard individual devices section. Do I need to wait a couple hours for these to register as new entities?

@jason0x43
Copy link
Owner

I’m not sure what typical behavior looks like — I haven’t used the energy dashboard myself (no devices reporting energy). It’s possible that data collection will take a bit, or there may be an implementation issue. I’ll look more into it.

Do you see any errors or warnings in the home assistant log?

@hokfujow
Copy link

hokfujow commented Jan 31, 2023 via email

@hokfujow
Copy link

hokfujow commented Feb 1, 2023

Just to update you. The hubitat energy entries still don't appear on the Energy Dashboard options. The workaround I've been using is to take the Power sensors passed through by your integration and then integrate them using the Riemann integral helper. So basically creating a new energy sensor by integrating power over time rather than using the device's internal energy accumulator. Presumably this is less accurate, since power is updated at discrete intervals. Those calculated energy sensors do appear in the options for the energy dashboard, so something is missing in the entities coming through from Hubitat.
It's odd because the energy values from hubitat DO appear on regular dashboards as energy sensors - but the energy dashboard apparently requires something specific that isn't there.

@jason0x43
Copy link
Owner

I've spent a bit more time working with the Energy Dashboard, so at least I have a vague idea of how it works. 😄

What units are the devices that aren't showing up using? I believe they need to be reporting in kWh to show up in the dashboard.

@fboundy
Copy link
Author

fboundy commented Apr 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants