You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for a way to figure out if my alarm is ringing or not (for home automation goals).
I realized that session.get_arm_state only returns armed or disarmed, which sounds logic after all.
So I started looking at session.get_history and through mypages.verisure.com GUI. You're code allows me to pass filters so I decided to to something like this:
This basically means give me the most recent history for intrusion, fire, water, or sos. It's actually not working, i'm receiving the last history like there is no filter. So i dig a little bit and I found that get_history is using a notificationCategories param to do the filtering. But the GUI is using eventCategories.
So I did this: (ok, ok, code is not clean, but it's just to give you an overview). So I just replaced notificationCategories param by eventCategories. And this is actually working.
Hi,
I was looking for a way to figure out if my alarm is ringing or not (for home automation goals).
I realized that
session.get_arm_state
only returns armed or disarmed, which sounds logic after all.So I started looking at
session.get_history
and throughmypages.verisure.com
GUI. You're code allows me to pass filters so I decided to to something like this:This basically means give me the most recent history for intrusion, fire, water, or sos. It's actually not working, i'm receiving the last history like there is no filter. So i dig a little bit and I found that
get_history
is using anotificationCategories
param to do the filtering. But the GUI is usingeventCategories
.So I did this: (ok, ok, code is not clean, but it's just to give you an overview). So I just replaced
notificationCategories
param byeventCategories
. And this is actually working.OUTPUT:
Moreover, if you're just asking for 'ARM' filter (for instance), it won't work neither.
So I really think the param should be replace ( I could do the PR), but I preferred created the issue to have your point of view.
Regards,
Thomas
The text was updated successfully, but these errors were encountered: