Closed mbay0r closed 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!
(message by CodeOwnersMention)
homekit_controller documentation homekit_controller source (message by IssueLinks)
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.
Thanks! But wouldn't it be possible to make the poll every second?
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.
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.
(At a protocol level we should actually poll less, as events should be sent every time the device has new data for us)
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.
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.
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 ?
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.
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