Page 1 of 1
Event for dead device
Posted: 08 Jan 2015 00:22
by Rklootwijk
Is there an event emitted when a dead device has been detected that can be listened on from within an automation module?
Re: Event for dead device
Posted: 09 Jan 2015 07:38
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)
Re: Event for dead device
Posted: 12 Jan 2015 00:34
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.
Re: Event for dead device
Posted: 13 Jan 2015 00:54
by PoltoS
You can use JS closure to keep track of correct ID or pass ID as argument (check function description).
Re: Event for dead device
Posted: 13 Jan 2015 01:06
by Rklootwijk
Yep got that already, thanks!
Re: Event for dead device
Posted: 19 Jul 2016 13:11
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!
Re: Event for dead device
Posted: 31 Jul 2016 02:56
by PoltoS
Battery devices never become dead, since Z-Way can not distinguish deep sleep from dead. No one can

Re: Event for dead device
Posted: 31 Jul 2016 13:02
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.