YinHangCode / homebridge-mi-gateway-security

XiaoMi Gateway Security plugin for HomeBridge.
31 stars 5 forks source link

Not possible to automate while security device #12

Open x23piracy opened 6 years ago

x23piracy commented 6 years ago

Hi,

what can i do to use the button in a fully automation? If i add this to leave or come home i need to manually acknowledge the automation.

How the change the type of the button? Before i used that plugin i used the xiaomi button for this but it depends on having an automation in xiamo app and i don't like that (gateway offline) so it would be really nice if there would be the possibility to set the security button to a normnal button so the automation will run without acknowledge.

Maybe an option to switch between both?

One more thing? What is the difference between

"name": "Security", "switchName": "Security Switch",

The only refelcted name in the home app is "Security" i cannot see "Security Switch" (from switchName) anywhere, so what is this Name good for?

EDIT:

I use this plugin for my needs now, it has the abbility but forces me to have a xiaomi button, this plugin here could be the better solution is it could support a normal switch instead security switch for usage with full automations in apples home app.

https://www.npmjs.com/package/homebridge-xiaomi-alarmswitch

EDIT2:

I found out that the mentioned plugin above causing errors with something else, some actors stopped reporting state after i enabled that plugin, so i really would love that you add the ability to change the button type from security to switch. Thanks

Regards X23

rgerr commented 6 years ago

You could in fact make a dummy switch and make two automations: if dummy switch on, the enable alarm and if dummy switch off, the alarm off. Implement that in the automation with geofence (e.g. When I leave the house, then dummy switch on (which enables the alarm).