Jump to content

timed lights


Recommended Posts

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.

image.thumb.png.afcd09c296bd7c40ea223a98d686f49a.png

Link to comment

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.

Link to comment

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.

Link to comment

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')
 

 

 

 

Link to comment
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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...