-
Notifications
You must be signed in to change notification settings - Fork 47
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
Comments
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. |
My workaround is to use Integration on the Power sensor.
…On 4 Nov 2022 at 12:44 +0000, nmatt25 ***@***.***>, wrote:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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 |
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. |
Yes, that’s exactly it. Need to be total or total_increasing state_class whereas instantaneous sensors such as Power should have a measurement state_class
…On 8 Nov 2022 at 03:42 +0000, Jason Cheatham ***@***.***>, wrote:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I added state class attributes to the sensor entities in v0.8.5b1. Let me know if that works. |
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? |
@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”. |
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. |
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? |
Hi Jason - after several hours, no change.
I don't see any errors in the log that appear to relate to the
hubitat integration. However these devices (energy sensors from hubitat
devices) don't seem to appear at all in the logbook or in the Statistics
tab of developer tools ,though they do appear on regular dashboards as I
mentioned.
Michael
On Mon, Jan 30, 2023 at 6:30 PM Jason Cheatham ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXSWOHFAU5ZIJUU2ZRLTWVBFJNANCNFSM6AAAAAARBVHVUU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
ᐧ
|
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. |
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. |
Yes - and they need to have state class of total or total_increasing…
…On 8 Apr 2023 at 20:46 +0100, Jason Cheatham ***@***.***>, wrote:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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
The text was updated successfully, but these errors were encountered: