Jump to content

ISY program with zwave device


Recommended Posts

Posted

Having a bit of trouble getting my head around programming a zwave device.

I'm on 4.6.2 and zwave 4.55.

I see that a query updates the status of the device. Without a query the device status doesn't update.

(that is the status in the ui, which, I assume is what being tested with the "if" in the program with the line:)

(if I understand what I've seen in these forums, the zwave devices can't trigger programs in 4.x. Does this change in 5.x?)

But, I can't get a program to run a status and subsequently check the on/off state of the device.

I can go to the device in the gui and it says off. If I then activate the device, a motion sensor, the state doesn't change to on until I click query. Then if I wait for the device to turn off and hit query again the display changes to off.

I tried the following to see if I could see the status change as above when I did a query by hand in the ui:

If
        Time is Last Run Time for 'Driveway Late ATEC' + 10 seconds
 
Then
        Set 'AEOTECZW 006' Query
 
Else
   - No Actions - (To add one, press 'Action')

But, when I never see the status change when I activate the device. And the last executed time never changes either.

Maybe I don't get what query is doing.

Also, the event viewer in the gui show the response of the device to a query while on and off:
 

ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013C90020]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CA0023]
ZWAVE-TX        ] ACK
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CA0023]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
D2D EVENT   ] Event [ZW006_1] [ST] [100] uom=78 prec=0
     ZW006_1]       ST 100 (uom=78 prec=0)
D2D-CMP 000E] STS [ZW006_1] ST op=1 Event(val=100 uom=78 prec=0) is Condition(val=100 uom=78 prec=-1) --> true
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CB0022]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
D2D EVENT   ] Event [ZW006_1] [ST] [0] uom=78 prec=0
     ZW006_1]       ST   0 (uom=78 prec=0)
D2D-CMP 000E] STS [ZW006_1] ST op=1 Event(val=0 uom=78 prec=0) is Condition(val=100 uom=78 prec=-1) --> false

Doesn't the D2D lines indicate there IS something triggered?

 

Regards,

Mac

Posted

I am not sure I am going to be much help, but I will offer a couple of thoughts?

Quote

I see that a query updates the status of the device. Without a query the device status doesn't update.

My zwave device DO update without a query.  I have read that zwave devices are not all created equal in this regard.  Perhaps yours is one of those that does not report status.

Quote

(that is the status in the ui, which, I assume is what being tested with the "if" in the program with the line:)

That is my understanding, as well.

Quote

(if I understand what I've seen in these forums, the zwave devices can't trigger programs in 4.x. Does this change in 5.x?)

Not necessarily true.  With mine, I can use "status" conditions to trigger programs (also in 4.x) but not "control" conditions.  Still, I would imagine this requires the zwave device to report status.  In your case, I would expect the same, but requiring a query to cause a status update.

My recollection from hanging around here is that 5.x DOES add to the capabilities of zwave in this area and, perhaps, in the use of zwave devices as scene controllers.

Quote

I can go to the device in the gui and it says off. If I then activate the device, a motion sensor, the state doesn't change to on until I click query.

That seems very strange to me that there might exist a motion sensor which does not report a status change.  

After reading your post, I think I would be very tempted to update to 5.x version software.

Posted
3 hours ago, drmacro said:

Having a bit of trouble getting my head around programming a zwave device.

I'm on 4.6.2 and zwave 4.55.

I see that a query updates the status of the device. Without a query the device status doesn't update.

(that is the status in the ui, which, I assume is what being tested with the "if" in the program with the line:)

(if I understand what I've seen in these forums, the zwave devices can't trigger programs in 4.x. Does this change in 5.x?)

But, I can't get a program to run a status and subsequently check the on/off state of the device.

I can go to the device in the gui and it says off. If I then activate the device, a motion sensor, the state doesn't change to on until I click query. Then if I wait for the device to turn off and hit query again the display changes to off.

I tried the following to see if I could see the status change as above when I did a query by hand in the ui:


If
        Time is Last Run Time for 'Driveway Late ATEC' + 10 seconds
 
Then
        Set 'AEOTECZW 006' Query
 
Else
   - No Actions - (To add one, press 'Action')

But, when I never see the status change when I activate the device. And the last executed time never changes either.

Maybe I don't get what query is doing.

Also, the event viewer in the gui show the response of the device to a query while on and off:
 


ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013C90020]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CA0023]
ZWAVE-TX        ] ACK
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CA0023]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
D2D EVENT   ] Event [ZW006_1] [ST] [100] uom=78 prec=0
     ZW006_1]       ST 100 (uom=78 prec=0)
D2D-CMP 000E] STS [ZW006_1] ST op=1 Event(val=100 uom=78 prec=0) is Condition(val=100 uom=78 prec=-1) --> true
ZWAVE-TX ZW006_1] [0109001306022502]...
ZWAVE-RX        ] ACK
ZWAVE-RX        ] [0104011301E8]
ZWAVE-TX        ] ACK
ZWAVE-RX        ] [01050013CB0022]
ZWAVE-TX        ] ACK
ZWAVE-RX ZW006_1] [0109000400060325]...
ZWAVE-TX        ] ACK
D2D EVENT   ] Event [ZW006_1] [ST] [0] uom=78 prec=0
     ZW006_1]       ST   0 (uom=78 prec=0)
D2D-CMP 000E] STS [ZW006_1] ST op=1 Event(val=0 uom=78 prec=0) is Condition(val=100 uom=78 prec=-1) --> false

Doesn't the D2D lines indicate there IS something triggered?

 

Regards,

Mac

Until 2016 there was a patent issue with status reporting but most of new Zwave devices come with status reporting without the need for query. I still have a few old Zwave devices and have written a program that queries those devices every 10 minutes.

I had some devices that, for my purposes, needed more frequent queries and actually had  a program querying every few seconds, but I have replaced these devices with newer version that give status update.

Posted

Welcome to the world of zwave, where you don' know what you have until you try to use it. 

Unfortunately not all Zwave devices report status which is why you have to run a query. Even if your device supports instant status, it must also support scenes in order to control other devices.

Unless you're heavily vested in the devices that you have, I would recommend returning them and going with the new homeseer switches since they will give you the capability that you want. Unfortunately 5.0 will not help you unless a switch has the features built in

 

Posted
15 minutes ago, lilyoyo1 said:

Welcome to the world of zwave, where you don' know what you have until you try to use it. 

Unfortunately not all Zwave devices report status which is why you have to run a query. Even if your device supports instant status, it must also support scenes in order to control other devices.

Unless you're heavily vested in the devices that you have, I would recommend returning them and going with the new homeseer switches since they will give you the capability that you want. Unfortunately 5.0 will not help you unless a switch has the features built in

 

Homeseer switches series 100 and series 200 are great. I also like Inoveli switches and these are cheaper.

Posted
50 minutes ago, asbril said:

Homeseer switches series 100 and series 200 are great. I also like Inoveli switches and these are cheaper.

I like the features of the homeseer switches. The inovelli line is nice. I just have a personal problem with recommending a line that has 2 different capabilities. 

With inovelli you have to be careful when choosing their switches. While both have instant status; one is scene capable and the other isn't. For me, that causes unnecessary confusion which is why I don' recommend their switches. 

Posted

The OP specifically notes that the device is a motion sensor.  So ignore all the stuff about about switches and instant status and stuff, that doesn't apply to the motion sensor.

It would, however, be helpful to not precisely which motion sensor it is; there may be a parameter you have to configure to get the reporting to happen correctly.  It's also possible you need to run a newer firmware on the ISY to be able to trigger on the device (multi-channel support is only in the 5.x releases).

I have Aeon multisensors, a range of door sensors, and GE occupancy sensors, all of them report events just fine -- although the GE requires 5.x in order to see the motion events.

Posted

Thanks for all the replies!

I think I should clarify the device I have. Strictly speaking it is just a switch. Aeotec Micro Switch G2 Plus. I have the output of a motion sensor (Stanley PR511) connected to the switch input.

After posting I noticed that when switched from UDI gui or the little button on the Aeotec an event was seen, but, when it was triggered from switch input  (i.e.from the PR11) there was no event. (At least I think, I'm going to test later today to confirm this)

In any case, after some tinkering with programs I have this:

Driveway Late ATEC - [ID 000D][Parent 0001]

If
        Time is Last Run Time for 'Driveway Late ATEC' +  5 seconds
 
Then
        Set 'AEOTECZW 006' Query
        Run Program 'Handle Drive' (If)
 
Else
   - No Actions - (To add one, press 'Action')
 

and this:

Handle Drive - [ID 000E][Parent 0001][Not Enabled]

If
        Status  'AEOTECZW 006' is On
 
Then
        Set 'LowPwrRepair' On
 
Else
        Set 'LowPwrRepair' Off
 

Not the final code for what I want to do, but it demonstrates I can make it work. (And, no 5 seconds is way too often, but just for testing)

 

Regards,

Mac

Posted

So, as I mentioned I was going to confirm that the external switch didn't send notification and the internal or commanded on/off did send notification.

I confirmed that is the case.

After doing some investigation on the Aeotec website and finding the engineering spec for the device, I saw there were parameters I could change with zwave command classes.

Parameter 80 sounded promising:

"Enable to send notifications to associated devices
(Group 1) when the state of Micro Smart Switch (2nd
Edition)’s load changed (0=nothing, 1=hail CC,
2=basic CC report)."

So, I used the Universal Admin Console to get to the zwave set parameter dialog. A query of parameter 80 returned 0. Then I set parameter 80 to 2.

And now the device reports when it is triggered by the PR11.

 

Archived

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

×
×
  • Create New...