-
Notifications
You must be signed in to change notification settings - Fork 92
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
Is it possible to recieve notification about target temp changes? #128
Comments
Website probably uses some kind of polling, where the web browser initiates a HTTP request, and the server only answers that after the value requested changes, or a timeout occurs, at which point the browser re-initiate the same HTTP request. You can simply create a script that checks for the target temp, saves it in a file locally, and schedule that script to run every 5 or 10 minutes. Once the value obtained from the API is different from the one in the file, do whatever you want to trigger, then write the new value in the file. |
Thank you for quick support! This library somehow can react very fast, but this related to only HomeKit users: Anyway thank you for information, I will continue my investigation. |
As a data point my scripts run every 5 minutes for several years without being blocked. It should be noted that you are not guaranteed realtime thermostat data with each script execution. The script can only acquire the latest data nest has. My thermostat provides routine updates ranging 6-13 minutes apart. |
Probably I found solution.
This allows to subscribe and load latest energy report. I used this code as example.
This request will return latest changes of target temperature and also revision and timestamp variables. |
You may find wiredprairie/unofficial_nodejs_nest useful, as it implements long polling subscription |
Thank you very much! But as I can see this library uses nest account. But in my case it's Google Account. |
Hi, I want to start some scene in smart home when user changes target temp.
Could you help, does your library allow to detect this moment. Probably some pooling functionality.
As I can see on official web interfate target temperature immediately changes when I spit nest ring.
The text was updated successfully, but these errors were encountered: