Event for dead device

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Rklootwijk
Posts: 15
Joined: 05 Jan 2015 21:52

Event for dead device

Post by Rklootwijk »

Is there an event emitted when a dead device has been detected that can be listened on from within an automation module?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Event for dead device

Post by PoltoS »

sure! devices[N].data.isFailed is changed. But this is in low leve. In automation it is not propagated, as HA do not have this property (this is Z-Wave specific and must be under the hood of Z-Way layer)
Rklootwijk
Posts: 15
Joined: 05 Jan 2015 21:52

Re: Event for dead device

Post by Rklootwijk »

OK, got this working. However only the isFailed object is passed to the handler. How do I find out to which device this event belongs? I am creating an automation module to integratie the razberry with my home automation software and want to indicate when a device goes offline.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Event for dead device

Post by PoltoS »

You can use JS closure to keep track of correct ID or pass ID as argument (check function description).
Rklootwijk
Posts: 15
Joined: 05 Jan 2015 21:52

Re: Event for dead device

Post by Rklootwijk »

Yep got that already, thanks!
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Event for dead device

Post by pz1 »

@PoltoS.
Has SmartHome gotten an event for dead device in the meantime, or are there plans to do so?

The reason I am asking is that I would like to be notified at the moment the batteries of my radiators are exhausted to the level that the device no longer works. In practice for my StellaZ thermostats, that can be up to a couple of months after the battery level has gone below the 0% level. Saves environmental costs!
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Event for dead device

Post by PoltoS »

Battery devices never become dead, since Z-Way can not distinguish deep sleep from dead. No one can ;)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Event for dead device

Post by pz1 »

PoltoS wrote:Battery devices never become dead, since Z-Way can not distinguish deep sleep from dead. No one can ;)
Thanks, this means that I have to monitor some behavioural parameters. That is what I had expected I have to do with my thermostats.
Post Reply