knalli / homebridge-pilight

Accessory plugin for Homebridge allowing to manage and control pilight devices
MIT License
16 stars 3 forks source link

Programmable switch #23

Open abko opened 7 years ago

abko commented 7 years ago

@knalli Would it be possible to configure a switch as a programmable switch in HomeKit so it is possible in the Home app to assign actions on a button press? Similar to how the homebridge-hue plugin supports Hue switches? In this way a KiKo switch could be used to also trigger non KiKo homekit devices to be controlled.

knalli commented 7 years ago

Can you explain this a little more? What does would mean for this this plugin?

abko commented 7 years ago

I guess the plugin controls how the switch is advertised in HomeKit. The hue homebridge plugin presents switches in a way that they have programmable events. The hue switches have four buttons on them. For each you can specify actions when pressed. See attached screenshots. I have been using that to use a hue switch to turn on a KiKa lamp. For another room I want to do the opposite. So when I push the Kika wall switch that it also triggers homekit to switch on an additional HomeKit lamp.

Hope this helps, let me know if I need to explain it better.

img_1629 img_1630