grover / homebridge-automation-switches

A flexible automation switch for Homebridge: https://github.com/nfarina/homebridge
MIT License
113 stars 12 forks source link

Security Alarms and Descriptive Zone Statuses #17

Open cdecker22 opened 6 years ago

cdecker22 commented 6 years ago

I have the following security configuration:

{ "platform": "AutomationSwitches", "switches": [ { "type": "security", "name": "Security System", "default": "unarmed", "stored": true, "zones": [ "Outside", "Walkout", "Downstairs", "Upstairs", "Bedrooms" ], "armAwayButtonLabel": "Nobody Home (Away)", "armNightButtonLabel": "Sleeping (Night)", "armStayButtonLabel": "Someone Home (Stay)" } ] },

When the system alarms I'd like for the Home app's status to indicate exactly which zone alarmed. Currently it'll say something like

Home switch on

…because I have the switches for each zone in a room called Home.

Ideally it'd be more descriptive. Is there anything you can suggest (I realize this could just be a limitation of HomeKit)?

One idea I had was to move the switches for each zone into a more appropriate HomeKit room, but the switches are tied-together such that moving one switch moves them all.

paolotremadio commented 6 years ago

One idea I had was to move the switches for each zone into a more appropriate HomeKit room, but the switches are tied-together such that moving one switch moves them all.

That's default behaviour of HomeKit: moving a service (e.g. a Switch) of an accessory (e.g. the alarm) would move all the other settings together.

I would suggest you create a set of automation like "when the switch Outside turns on, send a notification X".

To send the notifications, you could use https://github.com/grover/homebridge-telegram or https://github.com/homespun/homebridge-accessory-slack :)