Device drops out

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Device drops out

Post 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
Hans
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Device drops out

Post 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.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Device drops out

Post 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?
Hans
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Device drops out

Post 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.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Device drops out

Post 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.
Hans
User avatar
waltervl
Posts: 5154
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Device drops out

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Device drops out

Post 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.
Hans
mce35
Posts: 5
Joined: Monday 17 April 2023 22:15
Target OS: Linux
Domoticz version:
Contact:

Re: Device drops out

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest