PB11 Posted November 28, 2020 Posted November 28, 2020 (edited) Hi All. Guessing I'm over looking something that is right in front of me. I've created a program that is to turn off certain lights(all dimmers) after a 10min period (currently set to 10 seconds for testing). It runs as expected if I manually run the "If" statement, but doesn't when left to its own. I've tried both the on level "is not" as well as ">" off. neither are working. Any suggestions would be very much appreciated. Edited November 28, 2020 by PeterBarker11
MrBill Posted November 28, 2020 Posted November 28, 2020 There's likely more ways to skin the cat... but I'd use Control instead of Status in that situation. The catch with control is that you need to refer to any switches that can turn the light on.... if there's only one it doesn't seem too much different, but if it's part of a scene, then you need to include all the controllers in the IF statement.
PB11 Posted November 28, 2020 Author Posted November 28, 2020 each of these dimmers is stand alone. I'll give control a try to see if that works. I had read in another archived post that status was preferred for the following "When using control, this program will only trigger when the switch in manually operated and, in this case, only when turned on specifically rather than fast on or fade up. Status will catch the change in status regardless of how it gets that way - even if the switch is turned on remotely by a linked device or scene.
MrBill Posted November 28, 2020 Posted November 28, 2020 I agree with your quote, but have had trouble using Status, I just looked and I have programs where if Device Status is not off then wait turn off when I used control my If bodies do tend to be complicated, such as: Manual.on - [ID 0099][Parent 0098] If '{hide}Living Room Fan Lights+ / {hide}Lamp 1' is switched On Or '{hide}Living Room Fan Lights+ / {hide}Lamp 1' is switched Fast On Or '{hide}Living Room Fan Lights+ / {hide}Lamp 1' is switched Fade Stop Or 'Kitchen Table Light# / {hide}Lamp 1' is switched On Or 'Kitchen Table Light# / {hide}Lamp 1' is switched Fast On Or 'Kitchen Table Light# / {hide}Lamp 1' is switched Fade Stop Or 'LR Remote -Deb - A-B' is switched On Or 'LR Remote -Deb - A-B' is switched Fast On Or 'LR Remote -Deb - A-B' is switched Fade Stop Then $Dim.Lamp1 = 101 Else - No Actions - (To add one, press 'Action') 1
PB11 Posted November 29, 2020 Author Posted November 29, 2020 Control seems to be working. Thanks for the pointers. I don't understand why Status wouldn't work in this instance. Not sure I understand its purpose. 1
MrBill Posted November 29, 2020 Posted November 29, 2020 The only way I've had success using Status is "Is Off" or "Is Not Off". I don't recall for certain, but I don't believe the comparative operators < > <= >= existed in the 4.x branch. They may work with some node type and may not work with Insteon.
lilyoyo1 Posted November 29, 2020 Posted November 29, 2020 (edited) 38 minutes ago, MrBill said: The only way I've had success using Status is "Is Off" or "Is Not Off". I don't recall for certain, but I don't believe the comparative operators < > <= >= existed in the 4.x branch. They may work with some node type and may not work with Insteon. Greater and less than works with insteon. I use it for my accent lights. As long as the main lights are less than 50% they'll turn on Edited November 29, 2020 by lilyoyo1 1
Recommended Posts