Jump to content

WAIT statement in program


kchau
Go to solution Solved by gzahar,

Recommended Posts

Posted

Hello, I have the following simple program to change a variable with a timeout.  The initial value is set to 0.  The IF statement works and the variable changes to 1 as expected when sensor is ON.  However, it never changed back to 0 again.  Hope someone can point me to the right direction for troubleshooting.  Thanks in advance.

If
        'Lower Level / Family Room / Family Room Motion Sensor / ZW 018 Motion Sensor 1' Status is On
 
Then
        $FR_Motion  = 1
        Wait  10 minutes
        $FR_Motion  = 0
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Posted (edited)

the wait ends when the IF statement retriggers, you need two programs:

If
        'Lower Level / Family Room / Family Room Motion Sensor / ZW 018 Motion Sensor 1' Status is On
 
Then

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

----

program2

If
       (blank)
 
Then

        Disable Program1
        $FR_Motion  = 1
        Wait  10 minutes
        $FR_Motion  = 0
        enable program1

----

that said I'd suggest posting about what you're trying to actually accomplish, because you probably don't need the variable at all.
 
Else
   - No Actions - (To add one, press 'Action')

 

Edited by MrBill
  • Like 1
Posted

Thanks MrBill.  Your suggestion works.  What I tried to accomplish should be straight forward if I can customize the timeout on the motion sensor itself.  My intent is when sensor is triggered, the aquarium air pump will stop for 10 minutes.  Then it will turn back on when sensor is OFF.

The sensor is a Zooz ZSE40 with the 500 series chip.  My ISY994i is running 5.0.14 firmware which is not upgradable due to hardware limitation.  I think the ZSE40 and the ISY is not fully compatible, hence no parameters of the sensor is presented for adjustment.  Just trying to put together some programs as workaround ...

  • Solution
Posted
1 hour ago, kchau said:

I think the ZSE40 and the ISY is not fully compatible, hence no parameters of the sensor is presented for adjustment.

The parameters can be updated using the Notify Sensor node that was created when the device was added (I have a 700 series ZSE40, so it is possible that node may not be created on 500 series).  Or right click a node and select Z-wave -> Set Configuration Parameter.

Posted
2 hours ago, kchau said:

My ISY994i is running 5.0.14 firmware which is not upgradable due to hardware limitation.

This statement is incorrect.  You should upgrade the firmware to v5.3.4.   300 Series z-wave does have a firmware limitation, but that is 5.0.16C. 

You don't need the variable either:

If
        'Lower Level / Family Room / Family Room Motion Sensor / ZW 018 Motion Sensor 1' Status is On
 
Then

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

----

program2

If
       (blank)
 
Then

        Disable Program1
        Set 'Aquarium Pump' Off
        Wait  10 minutes
        Set 'Aquarium Pump' On
        enable program1

Posted

Thanks again MrBill.  You're right that no variable is needed this way.  My ISY994i is from 2013 which is really old.  I missed the opportunity of replacing a module on the main board when it's still available (probably one or two years ago).  I read at that time further upgrade beyond 5.0.x without the new daughter board is not possible.  Hope I was mistaken (or thing is changed) and any info to confirm would be appreciated.

Posted

What Z-wave version is displayed in the admin console?  (access that from the Z-wave menu on the top line of the admin console.) 

if version 4.55.00 you have a 300 series Z-wave board.  You should upgrade to version 5.0.16C and stop.

 

if version 6.81.00 you have a 500 series Z-wave board (which is what you said above that you have).  In this case upgrade all the way to 5.3.4.

 

in any case 5.0.14 is a beta version that’s out of date and should be replaced with either version above.

  • Like 1
Posted

Thanks for the info, MrBill.  Mine is 4.55.00, so it's a 300 series Z-wave board.  The ZSE40 is 500 series.  I guess it just happens to be working with the ISY.  Will check out the Polisy which is quite interesting.  Time to upgrade to a newer better box I guess ...

Posted
10 hours ago, kchau said:

Will check out the Polisy which is quite interesting.  Time to upgrade to a newer better box I guess ...

If you are not in a hurry, then consider skipping Polisy and go straight to UD's new box "EISY" (or whatever it will be called) which is supposedly coming out very soon.

  • Like 1
Posted
11 hours ago, kchau said:

Thanks for the info, MrBill.  Mine is 4.55.00, so it's a 300 series Z-wave board.  The ZSE40 is 500 series.  I guess it just happens to be working with the ISY.  Will check out the Polisy which is quite interesting.  Time to upgrade to a newer better box I guess ...

You should upgrade to 5.0.16C.  Your 5.0.14 version is a very old beta version (i looked for the release date and couldn't find it), while 5.0.16C is also a beta version is very stable and there were many fixes and improvements between .14 and .16C

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...