WakeUp Event Listener

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
raZcherry
Posts: 11
Joined: 24 Jun 2014 01:14

WakeUp Event Listener

Post by raZcherry »

Hi All,

my devices (e.g. Philio 4-in-1 sensor) in z-way waking up every 30 minutes and I wanted to forward the wakeup notification to another web service.
In z-way there is the possibility to bind this event with:

Code: Select all

zway.devices[nodeID].data.isAwake.bind( function() { mycode });
Somehow I can´t bind it to

Code: Select all

zway.devices[nodeID].data.isAwake.value.bind( function() { mycode });
where the value for the wakuep (true or false) is located.
Unfortunately with the binding I also don´t get the information which device actually woke up.
Is there any way to get these kind of information or maybe there is another way to catch the wakeup notifications?
Many thanks for your answers in advance ;)

Best raZcherry
Using: Z-Way v2.0.1-rc11 on Raspberry Pi
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: WakeUp Event Listener

Post by PoltoS »

First was is correct.

Value is property of DataHolder, so you can no bind to it - you can bind only to a DataHolder.
Post Reply