CJVann Posted April 16, 2015 Posted April 16, 2015 I thought anytime an IF became false, the program should become false and run the ELSE statement? For the example below, if the Den Light is switched On then Off (while the program is still running), shouldn't it become false and run ELSE? What if the program is not running, and I turn the Den Light Off.... should that cause it to evaluate the statement and run the ELSE? With the following program, I can find no situation where the ELSE statement runs (Off, Fast-On/Off, Dim/Bright...) If Control 'Upstairs / Den / Light' is switched On Then Wait 10 seconds Set 'Upstairs / Den / Light' 36% Else Set 'Upstairs / Master Bedroom / Bedroom Light' On
LeeG Posted April 16, 2015 Posted April 16, 2015 The "If Control 'xxxx' is switched On" never has a False evaluation. Add a check with not switched Off to have the Off command drive the Else If Control 'Upstairs / Den / Light' is switched On And Control 'Upstairs / Den / Light' is not switched Off Then
LeeG Posted April 16, 2015 Posted April 16, 2015 "If Status 'xxxx' is On" does have a False evaluation when the device is no longer On.
CJVann Posted April 17, 2015 Author Posted April 17, 2015 Great - I knew it could be done, just wasn't sure what I had done wrong. Thank you, Lee!
Recommended Posts