retsell Posted February 13, 2008 Posted February 13, 2008 I am trying to create a simple away button on a KPL. The button is set to non-toggle mode with LED off. When you press the button I want it to check if it's daytime or night time and set the appropriate scene. Problem is, whenever it's sunset, it always sets the Away Night scene. If Control 'L-KPL C - Goodbye' is switched Off And From Sunrise To Sunset (same day) Then Set Scene 'Away Day' On Else Set Scene 'Away Night' On Quote
Michel Kohanim Posted February 13, 2008 Posted February 13, 2008 Hello retsell, The problem is: You have a non-toggle mode and thus the Control will never ever change its state from Switched Off to anything else (after the first time you switch it off, the state will never ever change). Therefore, your condition amounts to evaluating whether or not it's day time. What you might want to consider is to make this button toggle and use the the program to set its status (you have to put the button inside a scene as a responder) when it's day time. With kind regards, Michel I am trying to create a simple away button on a KPL. The button is set to non-toggle mode with LED off. When you press the button I want it to check if it's daytime or night time and set the appropriate scene. Problem is, whenever it's sunset, it always sets the Away Night scene. If Control 'L-KPL C - Goodbye' is switched Off And From Sunrise To Sunset (same day) Then Set Scene 'Away Day' On Else Set Scene 'Away Night' On Quote
Chris Jahn Posted February 13, 2008 Posted February 13, 2008 You could also just use two programs: If Control 'L-KPL C - Goodbye' is switched Off And From Sunset To Sunrise (next day) Then Set Scene 'Away Night' On Else - No Actions - If Control 'L-KPL C - Goodbye' is switched Off And From Sunrise To Sunset (same day) Then Set Scene 'Away Day' On Else - No Actions - Quote
retsell Posted February 14, 2008 Author Posted February 14, 2008 I ended up creating 2 programs like you suggested for now... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.