I have a scenario where I want to have the KeypadLinc on and off button in sync with the FanLinc light. For example, I have a scene where when the on or off button of the KeypadLinc is pressed the FanLinc light is set to 75% or turned off. This works fine. The problem I am running into is when they FanLinc light is adjusted to any value between 0 to 100% via my Android app, I want the KeypadLinc on or off button to reflect the status. So at all times, I want both the FanLinc and KeypadLinc in sync when controlled via locally on the KeypadLinc or by the app.
What I tried to do is create four different programs two for the KeypadLinc and two for the FanLinc. The two KeypadLinc programs are configured where for the If statement to check the status of the on or off button and set the Fanlinc light to the appropriate setting. Same goes for the FanLinc, the If statement is set to check the status of the light and to tell the KeypadLinc to turn on or off. The problem here is that it will run into a loop. Which I was pretty much expecting to happen. What is the optimal way to configure the ISY to keep both devices in sync with out running into the situation above. Here is my criteria:
If the KeypadLinc On button is pressed set the FanLinc light to 75%.
If the KeypadLInc Off button is pressed set the FanLinc light to off.
If the FanLinc light is turned on (greater than or equal to 1%), turn the KeypadLinc On button on.
If the FanLinc light is turned off, turn the KeypadLinc Off button on.
The FanLinc light can be adjusted via the ISY interface or via the app. I also need to make sure that when the FanLinc light is adjusted to any percentage, to not have the program for the KeypadLinc On button override the FanLinc light level set from the interface. Can anyone provide some guidance on the best way to accomplish this? I apologize if my post is confusing, I am still trying to wake up here.
- Garrett