nfarina / homebridge-dummy

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

Is there a dummy switch with persisted state? #1

Closed jdshkolnik closed 7 years ago

jdshkolnik commented 7 years ago

Hi @nfarina,

Are you aware of a similar dummy switch that can persist state? It could be used to predicate triggers. For example, I'd create a dummy switch for "watching tv in living room" and then disable nearby motion sensors if the switch is on.

I'm sure I've said it elsewhere but thank you ever so much for homebridge.

nfarina commented 7 years ago

Added a new config option for this - check the new README for instructions. Let me know if this works for you - I wasn't able to actually test it but the changes were straightforward 😝

jdshkolnik commented 7 years ago

That's amazing, thanks. I'll try to check it out this evening.

jdshkolnik commented 7 years ago

Looks good -- thank you -- although your documentation has the accessory as "DummyStatefulSwitch" which throws an error since you're actually expecting "DummySwitch".

nfarina commented 7 years ago

Should be fixed, thanks!

On Jun 4, 2017, at 8:40 AM, John D. Shkolnik notifications@github.com wrote:

Looks good -- thank you -- although your documentation has the accessory as "DummyStatefulSwitch" which throws an error since you're actually expecting "DummySwitch".

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.