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

Polling interval in Home Assistant #103

Closed
mskorge opened this issue Oct 3, 2018 · 7 comments
Closed

Polling interval in Home Assistant #103

mskorge opened this issue Oct 3, 2018 · 7 comments

Comments

@mskorge
Copy link

mskorge commented Oct 3, 2018

Hi, and thanks for a great HA module!
Lately in Sweden Verisure has started blocking people polling faster than every 30 minutes. They are sending an email telling people they will remain blocked until the polling rate is lowered.
I would love to see polling interval as an optional configuration setting so I can set it lower myself instead of having to modify the code.

Keep up the good work!

@xibriz
Copy link

xibriz commented Oct 4, 2018

Interesting... I wounder if they will do this in Norway also. I'm so close to just dropping Verisure because I think they are quite expensive. If they block me that will be the last drop :)

Edit: Just to mention it, in my setup I poll the alarm state every 5 minutes and the climate every 6 hours because they only update temp and humid every 6 hours.

@krambriw
Copy link

krambriw commented Oct 4, 2018

I use this python module since long and my understanding is that you can decide yourself the polling interval if you write a small python script using it.
But, ouch, if we get blocked, what to do? 30 minutes makes it useless. So far I have not received any email yet, been polling every 15 second since the beginning (on the other hand I informed them when I started, at that time had my own similar python solution using web scraping before switching to Per's module)
I use this interface for integration with my HA system based on Node-RED. It is clear that Verisure is moving their focus towards home automation in combination with home alarm systems. This makes sense I think but I personally would like to keep my HA system separated. Currently I use the 3 arm states ('ARMED_HOME', 'ARMED_AWAY', 'DISARMED') and smartplug part. It would be really bad if all this leads in a way that you have to overcome by building a HW interface based on 2 smartplugs + some I/O supported by the HA system just to get the arm state into the same.
Best would be if Verisure could provide a public api but I guess this will not happen considering their increasing interest in HA by themselves

All this leads me to think about another issue listed, Push messages #57. Has anyone looked into this further? I read about the emulator idea. One idea could be to run Android on a dedicated RPi, having the Verisure app installed. But then, I would think best would be to interface with an MQTT broker in someway to publish state changes & accept commands from the HA system

Any ideas?

@krambriw
Copy link

krambriw commented Oct 4, 2018

Provided using Android, could this be interesting for interfacing with python to be able to capture notifications???
https://www.youtube.com/watch?v=8Jwp1PTvECI

@xibriz
Copy link

xibriz commented Oct 4, 2018

Provided using Android, could this be interesting for interfacing with python to be able to capture notifications???
https://www.youtube.com/watch?v=8Jwp1PTvECI

I can only see the possibility to send notifications using the plyer framework. I don't know if Android offer other apps to 'listen to' notifications from other apps. But that would need to be investigated if you want to capture anything on the OS level instead from the API.

@persandstrom
Copy link
Owner

I have merged a PR into HA.
home-assistant/home-assistant.io#6516
Next release will have a setting for polling rate

@mskorge
Copy link
Author

mskorge commented Oct 5, 2018

Thanks a lot for spending some time on this! Will help us out for sure...

@mskorge mskorge closed this as completed Oct 5, 2018
@krambriw
Copy link

krambriw commented Oct 5, 2018

"I don't know if Android offer other apps to 'listen to' notifications from other apps"
Maybe is possible:
https://stackoverflow.com/questions/26731306/android-is-it-possible-to-get-other-apps-notification-info

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

4 participants