Chuck Posted March 7, 2008 Posted March 7, 2008 I have a simple program which always worked in the past that now does not: If Control 'Living Room - ALL OFF' is switched On Or Control 'Office Ceiling Light (load)' is switched Fast Off Or ( Status 'Office Ceiling Light (load)' is Off And Control 'Office Ceiling Light (load)' is switched Off ) Then Set Scene 'All Off Scene (Daytime)' Off Else - No Actions - (To add one, press 'Action') If 'Office Ceiling Light (load)' is pressed off while the status is already off the scene should run, but it doesn't and the Program Summary says the program status is False vs. if I douple tap the 'Office Ceiling Light (load)' the Program status is True and the Scene is activated. I can't figure this one out. Any ideas??? Thanks!
IndyMike Posted March 7, 2008 Posted March 7, 2008 Hello Chuck, From what I can see, your Status and Control statements below can't be satisfied with the same event. The light can't be off and switched off at the same time. I tried the below code with varying ramp rates to try to ensure that there wasn't some trick involved - could not get it to execute. The below will function with an "or" between the status and control. You mentioned that this worked at one time - I honestly can't see how. Is it possible that you modified the program and didn't save it? Be advised that beta 2.6.1 did not save programs with it's "backup feature. Programs could only be saved with an explicit export. IM ..... Or ( Status 'Office Ceiling Light (load)' is Off And Control 'Office Ceiling Light (load)' is switched Off ) Then Set Scene 'All Off Scene (Daytime)' Off
Algorithm Posted March 7, 2008 Posted March 7, 2008 Actually, it should work. This is one way of getting extra function from a single switch, making it dual-purpose, which is how it appears Chuck is using it. I just tested it here (the status and control portion), and it works fine. I tried switch is on and is switched on, then turn another load on; if switch if off and is switched off, then turn the other load off. Chuck, have you made any changes recently? Updated firmware, or any thing else?
Chuck Posted March 7, 2008 Author Posted March 7, 2008 It works again. I realized my time was off. It thought it was Saturday. I thought I updated the time when I upgraded to 2.6.2, but must not have... Thanks for your help. Chuck
Algorithm Posted March 7, 2008 Posted March 7, 2008 It works again. I realized my time was off. It thought it was Saturday. I thought I updated the time when I upgraded to 2.6.2, but must not have...Thanks for your help. Chuck My pleasure. Thanks for the update, Chuck.
IndyMike Posted March 7, 2008 Posted March 7, 2008 Chuck and Darrel, Sorry for the misinformation. Obviously (hindsight) the below is incorrect - you can turn an Insteon device off if it is already in the off state. I honestly never considered this before. I guess my "old school" brain isn't wired that way. Also seems that I may have some holes to plug in my programming... IM From what I can see, your Status and Control statements below can't be satisfied with the same event. The light can't be off and switched off at the same time.
Algorithm Posted March 7, 2008 Posted March 7, 2008 Hi Indy! No problem. Thanks for all your contributions to the forum; they are appreciated.
d_l Posted March 13, 2008 Posted March 13, 2008 Chuck, thanks for that "Status is Off and Control is switched Off" idea. I've used it to enable a "forced off" condition on some ToggleLinc switches that are activated by motion sensors. When the wind blows hard, these switches turn on repeatedly at night so I've just decided that they should be off for the wind duration. Program Content for 'Manual Porch Switch Off' If Status 'Front Porch Light' is Off And Control 'Front Porch Light' is switched Off Then Wait 8 hours Run Program 'Manual Porch Switch Off' (Else Path) Else - No Actions - (To add one, press 'Action') I put that timer on the program so the forced off condition won't last forever if I forget that I have initiated it. This 'Manual Porch Switch Off' program then becomes a tested condition in the motion sensor program that switches the porch light on and if true, the light is not allowed to be switched on. I also have a complementary program, 'Manual Porch Switch On', that forces the lights to be on and not be turned off by the motion sensors.
Recommended Posts