VisonicAlarm-for-Hassio icon indicating copy to clipboard operation
VisonicAlarm-for-Hassio copied to clipboard

Can’t arm when not ready

Open chrisns opened this issue 2 years ago • 2 comments

the ready status is for arming away. If you have sensors set to internal that can be open in armed_home.

ideally the logic should really try calling the api anyway and then follow/poll the reference you get back to see if it worked or if that request failed

my alarm for who knows why (please say if you have clues) doesn’t seem to like updating the status of sensors very often, so I should be able to try arming away and let the monitoring station try and deal with it, rather than block it at this level

https://github.com/And3rsL/VisonicAlarm-for-Hassio/blob/93968cf3a7b02e99ceea38dae9229b4cf9f3a61d/custom_components/visonicalarm/alarm_control_panel.py#L193-L201

chrisns avatar Nov 11 '21 00:11 chrisns

Will have a poke around in a few days and figure the api for checking the status of the arming request unless you’ve been there before?

chrisns avatar Nov 11 '21 00:11 chrisns

Presumably this

https://github.com/And3rsL/VisonicAlarm2/blob/2a39df15f65c19c52b1b79bde41aa4598029f519/visonic/alarm.py#L783

ha. Turns out I wrote this in node a while ago. Thought it was familiar

https://github.com/chrisns/visonic_v8/blob/0a3f773a2aea3e2f0dd887aff0b6411f19769fa0/src/alarm.ts#L224-L233

https://github.com/chrisns/visonic_v8/blob/0a3f773a2aea3e2f0dd887aff0b6411f19769fa0/src/alarm.ts#L189-L207

chrisns avatar Nov 11 '21 01:11 chrisns