Jump to content

Experiences with Z-Wave Device Manufacturers/Brands


mikek

Recommended Posts

Posted
Couldn't you just enable  "run at startup" for the program in the program summary tab to get the desired effect of the the repeat?

That’s what I was referring to, to get the initial trigger. The If statement would still need to evaluate true (or false for an else clause) to get to the next step. Don’t think you can just leave if blank. Also, I still think you want something more than run at startup to keep program re-triggering in case it ever stopped unexpectedly.


Sent from my iPhone using Tapatalk
Posted
20 minutes ago, gzahar said:

Also, I still think you want something more than run at startup to keep program re-triggering in case it ever stopped unexpectedly.

Has that been a problem? 

Posted

All The Time - [ID 0038][Parent 0077]

If
        From    12:00:00AM
        To      12:00:00PM (same day)
 
Then
        Repeat Every  1 minute
           Set 'Basement / Laundry Room / Laundry Room' Query
 
Else
   - No Actions - (To add one, press 'Action')

Startup Run - [ID 0099][Parent 0077][Run At Startup]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Run Program 'All The Time' (Then Path)
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Posted
6 minutes ago, Sub-Routine said:

From    12:00:00AM
        To      12:00:00PM (same day)

Midnight to noon?

Posted

Ok I think I've got it.

The trick was understanding exactly how the "repeat" verb worked in the ISY system programming - thanks for that :)

Simply put, just put the query statement AFTER the repeat in the THEN loop, and if the program is triggered at least once, it will hang out in the then loop forever (unless somehow terminated unexpectedly).

So to be more robust, I not only set it to "run at startup" but also scheduled a run once a day to restart the program if it somehow got terminated.

Pseudo code:

<run at startup>

IF

     "daily start time"

THEN  

    REPEAT every 1 min

        set "device" to query

 

--> that's it. working now. Thanks all!

tom

  • 2 weeks later...
Posted
On 2/13/2019 at 11:20 PM, gzahar said:


That’s what I was referring to, to get the initial trigger. The If statement would still need to evaluate true (or false for an else clause) to get to the next step. Don’t think you can just leave if blank. Also, I still think you want something more than run at startup to keep program re-triggering in case it ever stopped unexpectedly.


Sent from my iPhone using Tapatalk

Just to correct myself, you can leave 'if' blank and have 'then' section 'run at startup'.  (I have been doing this, but forgot until I just ran across those programs)

Posted
24 minutes ago, gzahar said:

Just to correct myself, you can leave 'if' blank and have 'then' section 'run at startup'.  (I have been doing this, but forgot until I just ran across those programs)

Yes, The program can have triggers from other programs (acting as a subroutine) or even vocal triggers from Alexa or GH.

Running a blank "If" section assumes True and Then will run.

Posted
34 minutes ago, larryllix said:

Running a blank "If" section assumes True and Then will run.

Can you ask GH to enable  a program ?

 

Posted
23 minutes ago, asbril said:

Can you ask GH to enable  a program ?

 

You cannot ask Alexa to enable a program via ISY Portal so I doubt you can use GH to enable a program either.

However you can run a program that could do it, from either.

"Alexa! Turn On/Off Xprogram enable"

Program: Xprogram enable
If
    ---
Then
     enable programYY
Else
   disable programYY

Archived

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

×
×
  • Create New...