Most of my config are two way Insteon switches, with a few cases of Insteon keypads where I'd like the button to control / and update on changing a load. I also use Control pages, where typically I use something like:
- Code: Select all
lamp = indigo.devices["Kitchen Island (K)"]
sceneNum = 26
lightOn = 0
if hasattr(lamp, 'onState'):
lightOn = lamp.onState
if lightOn:
indigo.insteon.sendSceneOff(sceneNum)
else:
indigo.insteon.sendSceneOn(sceneNum)
to control the combinations via scenes. Now I'm wondering what the best way to expose these to HomeKit, since I can easily expose the load, but then the matching controller doesn't change.
It looks like virtual devices are new... I guess I could create an action group pair (on and off) for each scene? (can a single action group be sent an on or off)? and then hook the HomeKit device to a virtual device?
In any case, I'm sure some of you have done this already, and I'd love the latest tricks!