ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
67 stars 27 forks source link

Feature/lock switch #145

Closed ryanmaxwell closed 5 years ago

ryanmaxwell commented 5 years ago

Hi - thanks again for maintaining this great project!

I've got a few relays that are controlling electric door strikes. This patch recognises the switches that are controlling gates/doors as locks, in the same way as lightbulbs are differentiated from a regular switch by looking at the configured "device control type".

The benefit here (aside from a pretty icon) is that a switch that is a homekit lock requires authentication via Face or Touch ID when accessed from control centre on the lock screen / Siri, which is a big improvement since one of these locks is my front door.

Also I no longer have to tell Siri to "Turn on the front door", I can say "Unlock the front door".

My door strikes are configured to "fail secure", i.e. no power = locked, power on = unlocked. I didn't add any additional config to support "fail safe" mode (the inverse) due to it being outside my own needs, but may be a consideration.

IMG_0339 IMG_0338