Jump to content

opps, put a program in a loop, best practice to flash lights


arw01

Recommended Posts

While doing some housework last night, the lights turned off on everyone because every light in the house was on already so no one had hit a switch for over an hour, which tells the ISY the house is not occupied (motion sensors from smarthome for insteon are not reliable or pet immune).

 

Therefore the WAF went down a notch and the boy started complaining about the stupid lights going off all the time.

 

So I thought I would whip up a little "warning" flash of a central light that one could notice and know that you need to tap a light switch if you want to stay in the light vs the dark.

 

This doesn't work so good:

 

If
       Status  'Media_Popcorn' is not Off

Then
       Set Scene 'Media_popcorn_sc' Fast Off

Else
       Set Scene 'Media_popcorn_sc' Fast On

Invert the light, if it is on turn it off, it is off turn it on.
Used for notifying some lights are about to turn off due to
inactivity

 

It does a lovely job of flashing the lights forever and tying up the insteon bus.

 

I thought have disabling the program right after the scene change and then re-enabling it in my timer program, but that seems a kludge. I imagine one of you has a dandy little idea to solve my dilemma.

 

If I run this an even number of times, the lights go back to the state they were in, since we have no variables to save that stuff in directly, it becomes another whole set of programs.

 

Thanks

Alan

Link to comment

This is what I use to warn my kids that their bedroom light is about to turn off. Their bedroom lights shut off after 30 minutes if left alone. During the last minute, the switch beeps to warn them once per second. If they take any action on the light switch it aborts and starts over again.

 

If
       Control 'Lauren Bedroom / Lauren BR-Overhead L' is switched On
    Or Control 'Lauren Bedroom / Lauren BR-Overhead L' is switched Fast On
    Or Control 'Lauren Bedroom / Lauren BR-Overhead L' is switched Fade Up
    Or Status  'Lauren Bedroom / Lauren BR-Overhead L' is not Off

Then
       Wait  29 minutes 
       Repeat 60 times
          Set 'Lauren Bedroom / Lauren BR-Overhead L' 130 (Beep Duration)
          Wait  1 second
       Repeat 1 times
          Set 'Lauren Bedroom / Lauren BR-Overhead L' Off

Else
  - No Actions - (To add one, press 'Action')



Link to comment

Archived

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


×
×
  • Create New...