Page 1 of 1

WakeUp Event Listener

Posted: 04 Nov 2014 17:39
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

Re: WakeUp Event Listener

Posted: 09 Dec 2014 11:22
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.