Jump to content

Program to take action if light left on


k5map

Recommended Posts

We have a light in a store room in the garage which is left on from time to time.  I want to use my ISY to monitor when the light is on and if after x minutes it is still on, turn on/off a lamp in the main house.  Based on my current understanding of the ISY programming, I believe I need the following programs:

 

* If light switched on; then set variable to 1; else set variable to 0

 

* If variable set to 1, wait x minutes then turn lamp on/off

 

My questions are as follows:

 

1) Will the Else portion of program #1 work or do I need a third program to execute when the light is turned off?

2) Will program #2 continue to run over and over so long as the variable is set to 1 and stop running when the variable is set to 0?

 

Link to comment

You could use 'if status of light is not off', then set variable to one if you want a global timer, but you could also use 'if control light is switched on' if you only want this behavior to occur when the light is activated from the store room switch.

 

Program 2 should only trigger when the variable changes, assuming it's a state variable.

 

Sent from my iPad using Tapatalk

Link to comment

If

        Status 'light' is On

     And Status 'light' is not Off

 

Then

        Wait x minutes

        Set 'light' Off

 

Else

 

If the 'light' is part of a scene, Then set 'scene' Off.

Link to comment

Correct... I do not want to automatically turn off the store room light but instead turn a lamp (in the main house) ON/OFF as a reminder that the light was left on.  I plan to use a variation of this program to remind me that another light (one of the outside lights) was left on as well.

Link to comment

Do you happen to have a keypadlinc you could dedicate a button on to this? That way, if the storeroom light is on, so is the button on your keypad. Bonus, you can turn it on/off from there too.

 

Otherwise it'll take a few programs to do this. Maybe something that runs every minute after 30 minutes and flashes a light until the storeroom light gets shut off.

 

 

Sent from my iPad using Tapatalk

Link to comment

I resolved my problem...

 

I added to program #2, the line "Run Program (program #2" (If) so it runs continuously until the store room light is turned off.

 

builderb, yes I have a Keypad which has a button assigned to the store room light so we can remotely turn off the light.  My desire to have a lamp flash is because the Keypad is near the back door and the lamp is in the family room.

 

Thanks to all for your assistance.

Link to comment

Do you happen to have a keypadlinc you could dedicate a button on to this? That way, if the storeroom light is on, so is the button on your keypad. Bonus, you can turn it on/off from there too.

 

Otherwise it'll take a few programs to do this. Maybe something that runs every minute after 30 minutes and flashes a light until the storeroom light gets shut off.

 

 

Sent from my iPad using Tapatalk

 

I agree with this method above as it keeps traffic in the Inteon network down. I know lots of folks have great success in making things flash etc.

 

But, in my mind this is disaster waiting to happen and impacts reliability as the programs and network expands. 

Link to comment

Archived

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


×
×
  • Create New...