However, I wanted to add a trigger that would update the keypad's button if I turned on the switch remotely. So, I followed the instructions in the wiki and created a device state change trigger on the switch for brightness level has any change. The action is the embedded applescript:
- Code: Select all
set the brightness of device "Master Bedroom Keypad" to brightness of device "Master Bedroom Left Reading Light"
That works as expected if I adjust the switch via Indigo, then the keypad light mirrors it.
However, if I push the keypad button to turn on the light, the light turns on, and then the keypad button turns off right away. I see this in the log:
- Code: Select all
2015-11-19 19:57:39.223 Received INSTEON "Master Bedroom Keypad" on (button 1)
2015-11-19 19:57:39.225 Trigger Master Bedroom Left Reading Light Sync
2015-11-19 19:57:40.597 Sent INSTEON "Master Bedroom Keypad" on to 0
Any idea why it gets the brightness as 0 when I push the button on the keypad? The light is on.
Interestingly, Indigo shows that the light is off. Does Indigo not know it got turned on because of the Insteon link?
I updated the script to do a status update first, and it works now, but this shouldn't be necessary, right?
- Code: Select all
status request "Master Bedroom Left Reading Light"
set the brightness of device "Master Bedroom Keypad" to brightness of device "Master Bedroom Left Reading Light"
I have a bunch of these triggers setup to sync switches to each other and switches to keypads (my house has a lot of 3-ways), and this is the only problematic one I've found.
Thanks,
-Mike