Event for dead device
-
- Posts: 15
- Joined: 05 Jan 2015 21:52
Event for dead device
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
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)
-
- Posts: 15
- Joined: 05 Jan 2015 21:52
Re: Event for dead device
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
You can use JS closure to keep track of correct ID or pass ID as argument (check function description).
-
- Posts: 15
- Joined: 05 Jan 2015 21:52
Re: Event for dead device
Yep got that already, thanks!
Re: Event for dead device
@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!
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
Battery devices never become dead, since Z-Way can not distinguish deep sleep from dead. No one can 

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