balansse / homebridge-vivint

Integrates Vivint security system with Apple Home
Other
45 stars 15 forks source link

Switching the security panel to a switch? #64

Closed github-user-5 closed 2 years ago

github-user-5 commented 2 years ago

I've wanted to have an automation to turn the alarm to on or off depending on the occupancy, but homekit does not allow automations involving alarms. Would it be possible to have the panel switched to a general switch instead to get around this?

balansse commented 2 years ago

There is a way around it using an additional plugin. You can create a virtual switch in HomeKit using homebridge-dummy plugin, set it according to the automation and trigger other automations based on that virtual switch.

balansse commented 2 years ago

Implementing a panel as a binary switch is not possible due to the panel having more than one state (Disarmed/Stay/Away) - and an array of switches would be too complicated to manage.

github-user-5 commented 2 years ago

Thanks for the workaround!