nfarina / homebridge-dummy

Dummy switches for Homebridge: https://github.com/nfarina/homebridge
277 stars 83 forks source link

Added reverse #2

Closed ToddGreenfield closed 7 years ago

ToddGreenfield commented 7 years ago

Hi. I added the ability to keep the dummy switch in an "on" state. When turned off, it now automatically turns back on with the added config of "reverse". My homebridge system also uses Alexa/EchoDots (via NorthernMan54's Alexa mod) so this was done to help so I could have a HomeKit scene like "All Kitchen Lights" (which turn them all off) and then tell Alexa to turn them off. Without the change, I had to tell Alexa to "turn All Kitchen Lights on" to get them to turn off... which just didn't sound right. :) So I added the reverse and now all works and sounds better.

Thanks for the HB solution by the way! It gave me a new hobby and got me back into some programming.

nfarina commented 7 years ago

Looks good, thanks!