Jump to content

Keeping Fanlinc, KeypadLinc and mobile app in sync.


garrettwp

Recommended Posts

Posted

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

Posted

Hey Garrett, welcome!

 

I'd create 2 scenes:

SceneA - has both light and KPL button, with KPL button as a controller, set the light to 75% in the main scene, select the KPL button (in red), and click "Copy Scene Attributes"

SceneB - has just KPL button as responder

 

Create a program like the following:

If
       Status  'FanLinc-Light' is not Off

Then
       Set Scene 'SceneB' On

Else
       Set Scene 'SceneB' Off

I think that will do what you want. If timing is an issue, you might need to add a small "Wait" before setting SceneB On or Off.

Posted

PurdueGuy,

 

I had a feeling you may reply to my post. I have not spent a lot of time with the programming aspects of the ISY as a good portion of that is spent on the other HA controller. I will give that suggestion a try and report back how it goes.

 

Thanks again for the suggestion,

 

- Garrett

Posted

I thought about this a bit more.

 

If you are using the main on/off buttons of a 6 button KPL, you can just do direct on/off, with no scene required. You would definitely need a scene if you are using other buttons on the KPL.

 

Edit: Fixed phone typos

Guest
This topic is now closed to further replies.

×
×
  • Create New...