Jump to content

Repeat Scene turn on.


nolan11

Recommended Posts

Posted

Hello, I have a Scene setup called "Night Time Mood Dim" It allows certain lights to come on at sunset every day.

 

Problem is, sometimes some of the lights do not come on so I have to manually go into the app and click my scene to send the signal again.

 

My question, is there a way to set it up so ISY automatically repeats sending the signal a few seconds after the first attempt?

 

Any help would be greatly appreciated.

Posted

The best solution is to find and fix the issue(s) with in the Insteon network.

 

Until then the Program can be updated to repeat the Scene.

 

 

AAAA4 - [iD 006C][Parent 0001]
 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Wait  3 seconds
        Set Scene 'Night Time Mood Dim' On
        Wait  3 seconds
        Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
Posted
A bit shorter and you can easily adjust the number of repetitions needed.

 

If

        Time is Sunset 

 

Then

        Repeat x times

        Set Scene 'Night Time Mood Dim' On

        Wait  3 seconds

       

Else

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

 

But, LeeG's advice is best. Find the communication difficulty that's causing the problem.

Posted

Thanks so much for the help on this guys, that seemed to work. 

 

Next question. When I push ISY OFF on my iPhone to turn all lights off when going to bed. I want the outdoor lights to stay on which for the most part they do until sunset.

 

There is a couple lights that do not stay on. Not sure why they don't stay on like the others.

 

For example, when clicking ISY off, my outdoor lights stay on which is correct, but the couple indoor lights I want to stay on, go off. Cant figure it out.

Posted

What does the system do when ISY OFF is pressed?  A Program invoked?  A Scene turned Off?

 

If a Scene Off is issued all devices in the Scene would turn Off.  For some devices to remain On they would not be in the Scene or those devices are part of the Insteon network comm issues you have already mentioned in the initial post.    

Posted

What does the system do when ISY OFF is pressed?  A Program invoked?  A Scene turned Off?

 

If a Scene Off is issued all devices in the Scene would turn Off.  For some devices to remain On they would not be in the Scene or those devices are part of the Insteon network comm issues you have already mentioned in the initial post.    

 

 

Basically I have a program setup called "Outdoor/Indoor Lights" It turns on at Sunset and has "IF" set to Sunrise (next day). When I go to bed I go to my iPhone and click ISY off to turn off all the downstairs lights. There is two lights I have set to turn off at sunrise that also go off but shouldn't. Its the indoor pool light and a garage LED light. Just don't know why they shut off when they are under the "IF" command for sunrise.

Posted (edited)

Post the programs. You may have a quirk in your negative logic that stops the program process.

 

Right click on program and "copy to clipboard"

Edited by larryllix
Posted

I am going to try what LeeG said. I am going to remove the 2 lights from my scenes they are in to see if that works. Will report back.

 

Thanks again everyone for the help.

Posted

Night TIme Mood Dim New - [iD 0005][Parent 0001]

 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Wait  4 seconds
        Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 
 
Outdoor/Indoor Lights New - [iD 0004][Parent 0001]
 
If
        From    Sunset 
        To      Sunrise (next day)
 
Then
        Set Scene 'Outdoor - Indoor Lights' On
        Wait  4 seconds
        Set Scene 'Outdoor - Indoor Lights' On
 
Else
        Set Scene 'Outdoor - Indoor Lights' Off
Posted

That you need two statements to turn a scene on indicates a communication problem which would explain why the results are not as expected.

Posted

Ok now I have the wait 4 seconds for it to resend but it will not resend. I even tried repeat function and it will not work..This is frustrating....

 

Night TIme Mood Dim New - [iD 0005][Parent 0001]

 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Repeat 1 times
           Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
 
I am doing this because not all the lights turn on the first time so I would like to resend the signal.
 
I have also trued this...
 
Night TIme Mood Dim New - [iD 0005][Parent 0001]
 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Wait  3 seconds
        Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Any ideas ?
Posted (edited)

 

A bit shorter and you can easily adjust the number of repetitions needed.
 
If
        Time is Sunset 
 
Then
      Repeat x times
        Set Scene 'Night Time Mood Dim' On
        Wait  3 seconds
       
Else
   - No Actions - (To add one, press 'Action')
 
But, LeeG's advice is best. Find the communication difficulty that's causing the problem.

 

 

Start by replacing x with 10. If that works, then reduce x.

 

What happens if you turn the scene on and off from the Admin Console instead of the program? Do you get consistent expected results?

 

BTW, repeat 1 time runs the statement only once, not twice.

Edited by stusviews
Posted (edited)

<snipped>

 

BTW, repeat 1 time runs the statement only once, not twice.

To clarify further (maybe). It the indented lines after the Repeat 1 time that gets executed once. "Repeat" is not syntactically correct.  Read as "Do 1 times"

 

Then
        Set Scene 'Night Time Mood Dim' On
        Repeat 1 times
           Set Scene 'Night Time Mood Dim' On
Edited by larryllix
Posted

 

Ok now I have the wait 4 seconds for it to resend but it will not resend. I even tried repeat function and it will not work..This is frustrating....

 

Night TIme Mood Dim New - [iD 0005][Parent 0001]

 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Repeat 1 times
           Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
 
I am doing this because not all the lights turn on the first time so I would like to resend the signal.
 
I have also trued this...
 
Night TIme Mood Dim New - [iD 0005][Parent 0001]
 
If
        Time is Sunset 
 
Then
        Set Scene 'Night Time Mood Dim' On
        Wait  3 seconds
        Set Scene 'Night Time Mood Dim' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Any ideas ?

 

 

How do you know it will not resend--are you monitoring with Event Viewer?  If indeed the second command is never sent, it may be because each of your programs contains either a Wait or a Repeat, and those are the two commands which allow a program to be interrupted.  In this case, your condition Time is Sunset is true for exactly one second, and would therefore be false by the time the Wait has ended.  Try If Time is From Sunset For 30 Seconds instead, and let us know if the second command is now being sent.

 

Al

 

Posted

BTW, it's been mentioned a couple of times that

 

Then
        Set Scene 'Night Time Mood Dim' On
        Repeat 1 times
           Set Scene 'Night Time Mood Dim' On
 
is exactly the same as
 
Then
        Set Scene 'Night Time Mood Dim' On
        Set Scene 'Night Time Mood Dim' On
 
Any statement following Repeat 1 times will be executed once only.
 
Posted

nolan11

 

"In this case, your condition Time is Sunset is true for exactly one second, and would therefore be false by the time the Wait has ended."

 

I'm sure the info being posted is well meaning but it is wrong.

 

The "If Time is Sunset"  is like "If Control",    there is no False side.  The Waits work as I initially posted.  Using this Program and Event Trace running it shows three Set Scene ..... On commands being executed after the Wait

 

AAAA4 Time - [iD 00A6][Parent 0001]
 
If
        Time is 10:19:00AM
 
Then
        Set Scene 'SceneCrossLink' On
        Wait  3 seconds
        Set Scene 'SceneCrossLink' On
        Wait  3 seconds
        Set Scene 'SceneCrossLink' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 

.

 

Sun 05/15/2016 10:18:56 AM : [        Time] 10:19:00 0(0)
Sun 05/15/2016 10:18:56 AM : [iNST-TX-I1  ] 02 62 00 00 5C CF 11 00
Sun 05/15/2016 10:18:56 AM : [iNST-ACK    ] 02 62 00.00.5C CF 11 00 06          LTONRR (00) - first Set Scene
 
Sun 05/15/2016 10:18:59 AM : [iNST-TX-I1  ] 02 62 00 00 5C CF 11 00
Sun 05/15/2016 10:18:59 AM : [iNST-ACK    ] 02 62 00.00.5C CF 11 00 06          LTONRR (00) - 2nd Set Scene 3 seconds later
 
Sun 05/15/2016 10:19:02 AM : [iNST-TX-I1  ] 02 62 00 00 5C CF 11 00
Sun 05/15/2016 10:19:02 AM : [iNST-ACK    ] 02 62 00.00.5C CF 11 00 06          LTONRR (00) - 3rd Set Scene 3 seconds later
 
 
Note that one of your posts shows two Programs being triggered at Sunset.   I urge changing one to Sunset + 5 seconds to provide a small separation between the running of each Program
Posted

Thought I would chime in with a similar experience.

 

If I sent a scene "on" command and a few of the lights in the scene did not turn on, it did not matter how many additional times I sent the scene "on" command it would not turn on the lights which where off. It would work if I sent the scene off command then the scene on command again, sometimes.  I ended up just having the program turn on each device after the scene on command which would work.  

 

I found I had a malfunctioning device which was causing most of the errors, but the scene problems still happen from time to time so I have these programs also trigger the device along with the scene.

Guest
This topic is now closed to further replies.

×
×
  • Create New...