Open artik opened 3 years ago
Thanks for trying it out! 🎉
I’ll make sure to update the readme.
Have you tested arming/disarming the different states too?
arming/disarming
are greyed on homekit and cannot be controled. I tested to do it trought homebridge accessories
section. Changing state worked one time, notification appeared on my phone with this log:
[11/30/2020, 12:17:13 PM] [Securitas Direct] info Alarm: Getting current alarm state.
[11/30/2020, 12:17:15 PM] [Securitas Direct] info Alarm: Setting target alarm state to: 0
But! Didn't affect the real state of the alarm on securitas.es. Still activated there.
Sorry if I was unclear. You should not use your email address as the readme implies. Please put in the username as on securitas.es.
Yeah sure, it's what I did (cf: my first message). I'm using the 7 digits
as login and never tried any email.
As another piece of feedback on this issue, the plug-in works reliably for arming and disarming the security system, from both the Home app and from Siri.
One issue that I currently face is that it eventually stops working, the alarm state doesn’t synchronise with the UI and arming or disarming doesn’t work anymore.
I can eventually hook this up to a proxy and log the requests/responses if that helps. I’m guessing some rate limiting is kicking in, perhaps due to the polling for alarm status. The Securitas Direct app has an option to view an audit log, and I can see that they stop logging requests some time after homebridge starts (5-20 minutes).
I’m guessing there might be an issue with the session timing out and we need to login again. Taking a closer look 👍🏼
Looking at this plugin (which uses a deprecated API and won't work for most users); they seem to refresh the hash/token every 450 seconds.
I'm aiming for a strategy where we are catching the expired hash response to refresh only when needed.
Please update to plugin v0.2.0
and try again 👍
I'm still having many issues regarding the No Response
state. Sometimes it works, and when I try to change the alarm state, no response again. It's really random and Homebridge
logs don't show any error. At least when it works, arming
/disarming
works.
HomeKit is quite picky with response times. In our case, Securitas Direct is slow at responding, as we need to query and then ask for the result multiple times until we finally get it.
Please make sure that your Homebridge instance is on a cable connection to minimise latency.
When testing, are you interacting from the same network or remotely?
Hello, I’m also getting the exact same issue. Works fine for a while then it stops working - even using the MyVerisure app it fails to update status. I think it’s hitting rate limits. Perhaps I’d suggest to add some verbose logging to the plug-in so we can see the exact error code they (hopefully) return?
Good thinking. Let's investigate that a bit. I'll setup more verbose logging.
Tried the first beta version of the plugin. Homekit returns me a
no response
answer. Here are my credentials:When I use my credentials on the website
https://customers.securitasdirect.es/
, I can connect without issue and manage my homes. Homebridge logs return me:I noticed that you put and email as login in your
readme
, but I have a number of7 digits
instead.https://i.imgur.com/WA77x9F.png