Agnostic button, how to ?
See original GitHub issueHi, I’m playing with node-red
+ node-red-contrib-homekit-bridged
with great fun, so first of all I want to thank you for this beautiful project.
I’ve read about the differences between switch
and statelessProgrammableSwitch
but none of them works in my case, I suppose I’m missing something because my need is very basic.
I have some remote controlled outlets with two remotes. I would like to use one of them with Siri, telling to turn ON/OFF the lights.
I would like HomeKit to be absolutely agnostic about the light states.
As you can see remotes are two, so even if the lightbulb or switch state are ON
inside HomeKit, that could be false (someone could have triggered the other switch). And beside it, the fact to be, for instance ON
in HomeKit means that a switch can’t be turned ON
again without turning it Off
before, HomeKit won’t let you do it.
statelessProgrammableSwitch
could have been the solution, but:
1. it needs a Hub
2. it changes the states of switch
es, which brings me back to the first problem, the switch
state isn’t stateless.
Any ideas ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
A push button (stateless programmable switch) is an input-only device, just like the physical remote. It’s used to control other HomeKit devices, it cannot be controlled itself from HomeKit (nor by Siri).
If you want to provide a virtual push button to a HomeKit app, you’d need to create a write-only custom characteristic, like Identify. Unfortunately, neither Apple’s Home app nor Siri support custom characteristics. The only thing you can do is create a regular Switch service, and automatically reset the On chacteristic to false, say 500ms after it’s been pressed.
@Shaquu yeah I’m using it, maybe not the latest version, I’ll take a look and update the doc