Jump to content

Split second on/off toggling is missed by programs


Mark Sanctuary

Recommended Posts

Posted

Here is the code and I know your going to say use a Finally but this causes the light to blink on then back off after the split second on-off usage.

 

If
   Control 'Guest Bath Main' is On

Then
   Set 'Guest Bath Main' On
   Wait 1 hour
   Set 'Guest Bath Main' Off

Posted

Yes, I would say use 'Finally', because you are guaranteed to have the light turn off if the program turns the light on.

 

BUT

 

It would be better to directly link the light to the switch in a scene. The switch would directly turn the light on, and the program would only have to turn it off after an hour.

 

You could either test the control or the status depending on what you want to do.

 

If 
   Control 'Guest Bath Main' is On 
Then 
   Wait 1 hour 
   Set 'Guest Bath Main' Off

Posted

Yes there was already links to that scene on the switch. I can see them work right away.

 

  1. [*:1cmkiu81]I tap the light on, the scene comes on
    [*:1cmkiu81]I split second later tap it off, the scene goes off
    [*:1cmkiu81]Then about a half second later the program turns it back on.
    [*:1cmkiu81]And now that I added a finally it flashes back off.

So what I get is an echo of the switch. I guess I could run without the switch links and just the ISY program but then the scene would not function if the ISY was out of the loop. I think it might be that the ISY is trying to execute the program ASAP so there is no time to get feedback back before the split second off tap. How big of a hit is it to wait for the second tap response?

Posted

Well I found a workaround but I am wondering if you can check in the background for the parallel scene vs program; if there is already the same controller switch in the program, and the same scene as the program, then you could add a small delay to that program.

 

If 
   Control 'Guest Bath Main' is On 

Then 
   Wait 1 second 
   Set 'Guest Bath Main' On 
   Wait 1 hour 
   Set 'Guest Bath Main' Off

Posted

Did you try the program I posted where the switch turns the light on, not the program, and the only thing the program does is turn it off:

 

If 
   Control 'Guest Bath Main' is On 
Then 
   Wait 1 hour 
   Set 'Guest Bath Main' Off 

 

I think this should solve the flicker problem with Finally. You could instead check the Status if the 'Guest Bath Main' can be turned on by different controls.

Posted

Maybe I'm missing something, but if the event is detecting that you are turning the switch on with this line:

 

If

Control 'Guest Bath Main' is On

 

Why are you having the ISY-26 turn it on again with this line:

 

Then

Set 'Guest Bath Main' On

 

Wouldn't the switch already be on??

Posted

Hey Mark -

 

Just a note. I had my triggers setup the same way, but recently switched to STATUS instead of CONTROL because if the switch is turned off by something other than the switch itself (like another trigger, or another switch in the house), this timer will continue to run.

 

Something to think about.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...