Shutter wrote:Thanks everyone, these are excellent ideas. Just one thing, how does one determine if Indigo is the command source?
Here's how I do would do it.
First, create a variable to hold the state of local control for the switch. For this example, I'll call the variable "Foo".
Second, create two action groups that include (1) the Fibaro and (2) a variable action to modify the variable Foo. The first action group would set the value of Foo to on and turn on the Fib. Modify the variable THEN turn on the device. The second action group would set the value of Foo to OFF and turn off the Fib.
Third, modify your schedules and actions (etc.) for the Fib to call the action groups you just created (rather than directly controlling the Fib.)
Fourth, create a trigger that fires when the Fib is turned on AND the variable 'Foo' is OFF. This would indicate the switch has been thrown locally rather than by Indigo. If needed, create a second trigger that does the opposite (when the switched light is turned off AND the variable "Foo" is OFF. These triggers would control the socket.
The second trigger is a little tricky because Indigo could fire a schedule or action (for example) AFTER someone has turned on the light with local control. In other words, the switched light would've already been on but now the variable Foo is set to ON. The simplest solution is to add the socket to the action group in (1) above that turns off the socket anytime the Fib is turned off no matter whether it was turned off locally or by Indigo.
Does that all make sense?
Dave