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

Realtime device usage updates in HA #66

Closed
lymanepp opened this issue Dec 23, 2023 · 4 comments
Closed

Realtime device usage updates in HA #66

lymanepp opened this issue Dec 23, 2023 · 4 comments

Comments

@lymanepp
Copy link
Contributor

Has any consideration been given to using async_realtime_stream in the HA integration (without Single=True)? Having real-time push updates would make the data more useful (to me, anyways). It wouldn't have any more impact to Sense than leaving a browser tab open to the "Now" tab. Suppressing updates for a device when the data hasn't changed would limit the amount of data stored in HA.

@kbickar
Copy link
Collaborator

kbickar commented Dec 23, 2023

Yes, currently there are 5 messages sent per minute to get the realtime data from the Sense API but to keep the stream open would be 65 messages per minute plus it would mean keeping a connection open with the Sense servers. The Sense team wouldn't be happy with that

@lymanepp
Copy link
Contributor Author

The Sense team wouldn't be happy with that

But it wouldn't be any different than leaving a browser tab open on the "Now" tab.

@kbickar
Copy link
Collaborator

kbickar commented Dec 23, 2023

But most people don't leave a browser open to that tab. If it were used in HomeAssistant it would be like thousands of people leaving open their browser when most of them probably don't even need that extra frequency of update

@lymanepp
Copy link
Contributor Author

Thanks for the feedback.

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

2 participants