-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add a button to force-update the state #160
Comments
Hello @Mark-64 ! I think your suggestion makes 100% sense. As a solution, I can create a Home Assistant service that you can use/call directly from your automations (e.g. you may force an update after some conditions are met), or manually from your UI (e.g. you add a button to your dashboards that triggers the update) as you are suggesting! I have a question though as you are using a long scan interval: are you impacted by #117 ? I think I still need to fix that issue first because the force update may not work properly if the refresh tokens are not refreshed in time. Anyway, I'll be sure to include your suggestion in the next release coming this week! |
No, I am not. |
Hello @Mark-64! The force-update feature you suggested has been fully implemented, and your feedback is very welcome to see if it works as you expect! Currently, you can either add a button to force the update or use this service in your automations. Update Your VersionAs I still need to test and verify if everything works as expected, I've released this feature as a beta version, so you need to install the beta version. You have two options:
Add the Update ButtonOnce the new version is installed, you can add a button in the Lovelace dashboard as follows:
And then you are done! By clicking that button, you'll force the update regardless of the delay you set. The screenshot below is a configuration example; update it based on your needs: How Can You Help Further?Your feedback is important, as I may have missed something you need. Just write here with your feedback, and as soon as everything works as you expect, I'll release a new official version. Let me know when you have time to play with it! |
@Mark-64 As I didn't hear back, I'm moving forward with the version release! Of course, if something doesn't work as you expect, feel free to reopen the ticket and I'll prepare a bugfix release! I'll update this post as soon as the release is out! |
@Mark-64 If you use HACS, simply update to the latest non-beta version! Keep us posted! |
This integration works in principle very well, however my system is connected through a mobile connection and I only have 200 MB/month, which is very common in Italy for IoT subscriptions.
If I set a polling interval of 120 sec or so, to get a decently responsive interface, the the data consumption is way too high. If I set a polling interval compatible with my subscription plan, then the update is way too slow.
My proposal is to introduce a button to force-update the status, so that one can set a long polling interval and then force-update in HA when required through scripts and automations.
The text was updated successfully, but these errors were encountered: