fdegier / homebridge-jablotron-alarm

Homebridge plugin for connecting Jablotron JA-100 alarm systems to Homekit.
The Unlicense
26 stars 6 forks source link

How to do to have the Jablotron alarm appearing as a switch ? #28

Closed overflywingo closed 5 years ago

overflywingo commented 5 years ago

The current setup of Jablotron as an Alarm System in Homekit requires user authentication when executing automations. For example when the first person arrives home, turn the alarm off. This will prompt a notification on your iOS device or watch asking if you want to execute this command. This works every time and has the added benefit of being more secure, alternatively it is possible to make the Jablotron alarm appear as a switch and then the automation will work without confirmation

Hi, sorry for my ignorance but can you explain what to do to have the Jablotron alarm appearing as a switch ? Thanks

misncz commented 5 years ago

In the Homebridge config (config.json) define your alarm under "switches" instead of "sections". Note this way you'd lose partially armed state if available on your Jablotron unit

fdegier commented 5 years ago

Originally it was just an idea, but thanks to @misncz brilliant implementation of switches its already possible. Tried it out today, works perfect, really happy with it!

overflywingo commented 5 years ago

Indeed switch is working well Not an issue for me to have lost partial armed state as I'm using just one section for all my house. Nevertheless using switches I've lost the status of alarm triggered....so no more possible to create scenario in such case.

Le 22 février 2019 à 23:41:52, Fred de Gier (notifications@github.com) a écrit:

Originally it was just an idea, but thanks to @misncz https://github.com/misncz brilliant implementation of switches its already possible. Tried it out today, works perfect, really happy with it!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/28#issuecomment-466573824, or mute the thread https://github.com/notifications/unsubscribe-auth/AtIvqXYfUM-53uySu70R7ZYfEaVHih8Sks5vQHIvgaJpZM4bH999 .

fdegier commented 5 years ago

You can setup both as Alarm and Switch and use refreshOnStateChange : true this will give you notifications but won't ask you for automation confirmation (potential risk).

Alarm triggered is not implemented yet, its probably a hard feature to implement but is on the backlog.