Page 1 of 1

Device drops out

Posted: Sunday 02 April 2023 15:02
by manjh
A Zigbee PIR sensor has been working OK for a while, but last week it went "dead".
Both Domoticz and Zigbee4Domoticz did not show anything, except for the warning that nothing has been heard from this sensor for a while.

So I removed the device following the instructions, then added it again.
It now works OK, but I noticed that it came back with a different "short ID".

Does this make sense? What could be the cause of a device going silent?

Using plugin version 6.3.010

Re: Device drops out

Posted: Sunday 02 April 2023 16:13
by pipiche
in Zigbee the device has a Mac@ (IEEE), and then a short address (NwkId) is assigned when in a network. This NwkId can changed during the time, this is up to the Coordinator to deal with that.

So yes, that is normal that it changes.

Re: Device drops out

Posted: Monday 03 April 2023 11:47
by manjh
OK, thanks.
So what remains now is the question why the device was frozen... no signal at all, although there was definitely movement.
After I removed and re-added it, all was well again.
How can I prevent this from happening in the future?

Re: Device drops out

Posted: Monday 03 April 2023 11:53
by pipiche
What brand is the PIR ? If that is a Aqara/Xiaomi PIR this is quiet a known issue with the Aqara devices which do not comply with ZB 3.0 and which have a bug in their firmware.
The only thing you can do is just put the plugin in Permit mode and then reset the PIR, you don't need to remove it.

Re: Device drops out

Posted: Monday 03 April 2023 13:52
by manjh
It is Xiaomi, I think. Rebranded.
Will keep your suggestion in mind.
Meanwhile I'll put a small script together to send a warning when a device is silent for a longer period.

Re: Device drops out

Posted: Monday 03 April 2023 15:10
by waltervl
manjh wrote: Monday 03 April 2023 13:52 Meanwhile I'll put a small script together to send a warning when a device is silent for a longer period.
Don't need to script for sensors as they already have a last update time notification function: https://www.domoticz.com/wiki/Managing_ ... ifications

Re: Device drops out

Posted: Monday 03 April 2023 20:50
by manjh
waltervl wrote: Monday 03 April 2023 15:10
manjh wrote: Monday 03 April 2023 13:52 Meanwhile I'll put a small script together to send a warning when a device is silent for a longer period.
Don't need to script for sensors as they already have a last update time notification function: https://www.domoticz.com/wiki/Managing_ ... ifications
Yes, but... when I'm away from home for a few days or longer, it is quite normal that my PIR sensors donot show any activity.
When I set notifications in the devices, I would have to go in and change all of them when I go away for a while.

In a script, I can simply check my "vacation" switch, and act accordingly: when I am on vacation, no notification,
Else send warning if no movement for a day, for example.

Re: Device drops out

Posted: Tuesday 18 April 2023 16:59
by mce35
Hello,
manjh wrote: Monday 03 April 2023 20:50 In a script, I can simply check my "vacation" switch, and act accordingly: when I am on vacation, no notification,
Else send warning if no movement for a day, for example.
In a dzVents script you can just use the last update time, it is updated each time the sensor sends a message to the coordinator. Aqara motion sensors are sending heartbeats roughly every 1 hour. I have a script checking that my sensors are still alive based on this. I created it base on the script available on another in this forum, search for "Check Sensors script" (with quotes). If a device was not seen in the past 2 hours I get a notification.