home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.61k stars 30.37k forks source link

Thread/HomeKit-Controller: Eve Energy update frequency #89149

Closed mbay0r closed 1 year ago

mbay0r commented 1 year ago

The problem

Hi! I have connected some Eve Energy sockets via the Homekit controller using Thread and Skyconnect Stick. The whole thing works wonderfully and the sockets can be controlled very quickly and reliably.

However, there is the problem that the sensor Power (W) updates itself only every 5 minutes and is therefore very sluggish. Perhaps this can be optimized for the future? It would be nice if the data could be provided in real time.

thanks!

What version of Home Assistant Core has the issue?

2023.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeKit-Controller

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit_controller/

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

home-assistant[bot] commented 1 year ago

Hey there @jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit_controller) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit_controller` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit_controller` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


homekit_controller documentation homekit_controller source (message by IssueLinks)

Jc2k commented 1 year ago

This came up in chat.

We subscribed to events from the socket AND we poll once a minute.

If you see updates that infrequently despite this it's likely not something we can improve.

mbay0r commented 1 year ago

Thanks! But wouldn't it be possible to make the poll every second?

mbay0r commented 1 year ago

Every minute seems a bit too little to me for a consumption value and the 5 minutes only concern the history, which is perfectly fine. But the sensor should perhaps be queried more often, so that you see a more current value in the dashboard.

Jc2k commented 1 year ago

You seem to be missing the point. If I'm polling once a minute and you see an update once every 5 minutes that's a problem that isn't fixed by polling more.

Jc2k commented 1 year ago

(At a protocol level we should actually poll less, as events should be sent every time the device has new data for us)

mbay0r commented 1 year ago

I think it's a misunderstanding, in history I see an update every 5 minutes, it's always like that and on all devices, thats Fine.

In the dashboard, however, I have the sensor displayed as text and this value is reloaded much more often, but not often enough.

Jc2k commented 1 year ago

It's important to understand that polling is a backup in case the network connection has failed.

The primary source of data is the event system.

We already get device readings as fast as Eve makes them available.

If the source device published values once a second we would get them at that speed.

mbay0r commented 1 year ago

Ah ok, I see, so the "problem" is with Eve.

Couldn't you then overwrite the problem with a faster polling?

Is there a way to test this? So if you get more updates with polling Every second ?

MattWestb commented 1 year ago

What i have seen is the EVE Energy updating the measurements every 5 minutes and sending then to the host system and the host system is pulling the plug more often but then the plug have not making any new measurements we is getting the same as the last reported one and HA is not updating then its no change made only the last seen is changed and saved.