Confirmation of status for Zigbee devices

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

Moderator: leecollings

Post Reply
olleman
Posts: 107
Joined: Thursday 01 January 2015 18:56
Target OS: Linux
Domoticz version:
Contact:

Confirmation of status for Zigbee devices

Post by olleman »

Hello!

I switched to mostly zigbee devices 6 months ago. Besides the interest of trying new things I also liked the two way communication that zigbee offers. I notice now and then that a zigbee switch at the far end of my house doesn't always turn on as it should. But this is not reflected in Domoticz. Is there any function availible to confirm that a zigbee switch actually has been switched?

I'm running latest stable 7, python 3.8.9 and latest stable Domoticz on Win10

,Olle in Sweden
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Confirmation of status for Zigbee devices

Post by waltervl »

Do you use zigbee2MQTT with MQTT Auto Discover Gateway? As that normally should update its switch status.
What do you see in the zigbee2MQTT UI if you have this issue?

Edit: Ah latest stable 7 looks like Zigbee4Domoticz.
In that case for sure it is possible to see missed switch actions. The plugin will set the switch back to its original state.
If the Zigbee device is irresponsive the device widget will be colored red to indicate communication issues with the zigbee device.

https://zigbeefordomoticz.github.io/wik ... tings.html
check setting forcePollingAfterAction - enable - will request a status update of the device state after an action
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
olleman
Posts: 107
Joined: Thursday 01 January 2015 18:56
Target OS: Linux
Domoticz version:
Contact:

Re: Confirmation of status for Zigbee devices

Post by olleman »

waltervl wrote: Wednesday 24 January 2024 9:43 Do you use zigbee2MQTT with MQTT Auto Discover Gateway? As that normally should update its switch status.
What do you see in the zigbee2MQTT UI if you have this issue?

Edit: Ah latest stable 7 looks like Zigbee4Domoticz.
In that case for sure it is possible to see missed switch actions. The plugin will set the switch back to its original state.
If the Zigbee device is irresponsive the device widget will be colored red to indicate communication issues with the zigbee device.

https://zigbeefordomoticz.github.io/wik ... tings.html
check setting forcePollingAfterAction - enable - will request a status update of the device state after an action
Thanks for such a quick reply. I have that settings already activated and yes, the widget in Domoticz is red if there's a communication fault but it's not really that clear and easily missed. I would like to have some different action possibillities if there's a communication fault but perhaps that's something I need to adress with a DzVents script. Do you have any idea on how I can trigger a Dzvents script when there's a communication error?
lost
Posts: 616
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Confirmation of status for Zigbee devices

Post by lost »

olleman wrote: Wednesday 24 January 2024 10:22 Do you have any idea on how I can trigger a Dzvents script when there's a communication error?
That's not something I had to do for zigbee but zwave, a radio protocol also providing state acknowledge after a command & for a buggy switch device that looks a bit long to acknowledge!

If you don't want to make some complex log analysis for error/timeout that may show up in such case, I may have a suggestion that is not acknowledged radio protocol specific:

Make a device script that, if state is reversed after a short time (since last update, could be a few seconds to determine seeing the reverse time you observe in such case), will log or notify you.

You may even send a retry with the opposite of current (as now reversed after com issue) state (with a limit to 1 or 2 retries to avoid an infinite loop if com issue is permanent) if zigbee4domoticz does not implement such retry at driver layer (zwave do, no idea for zigbee).
Kedi
Posts: 536
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Confirmation of status for Zigbee devices

Post by Kedi »

olleman wrote: Wednesday 24 January 2024 9:01 Hello!

I switched to mostly zigbee devices 6 months ago. Besides the interest of trying new things I also liked the two way communication that zigbee offers. I notice now and then that a zigbee switch at the far end of my house doesn't always turn on as it should. But this is not reflected in Domoticz. Is there any function availible to confirm that a zigbee switch actually has been switched?

I'm running latest stable 7, python 3.8.9 and latest stable Domoticz on Win10

,Olle in Sweden
Beter is to put a good repeater in between the switch and the controller.
And /or look at the device map if that device is wrongly connected to some device at long distance of the device.
Removing the device and joining again (at the place where is should be) might also help.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Confirmation of status for Zigbee devices

Post by waltervl »

What Zigbee stick do you use? A Zigate? As those are not as stable as other Zigbee sticks like Sonoff. I switched over and had no communication issues anymore.

I personally think the red widget is very helpfull....
I believe you can also run a dzvents script for timed out/dead devices. There are already examples on the Zigbee4Domoticz wiki: https://zigbeefordomoticz.github.io/wiki/Contrib/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
olleman
Posts: 107
Joined: Thursday 01 January 2015 18:56
Target OS: Linux
Domoticz version:
Contact:

Re: Confirmation of status for Zigbee devices

Post by olleman »

Thanks for your suggestions. This happens very rarely but it would still be nice to have some kind of notification even if I were to put in a repeater.
waltervl wrote: Wednesday 24 January 2024 12:04 What Zigbee stick do you use? A Zigate? As those are not as stable as other Zigbee sticks like Sonoff. I switched over and had no communication issues anymore.

I personally think the red widget is very helpfull....
I believe you can also run a dzvents script for timed out/dead devices. There are already examples on the Zigbee4Domoticz wiki: https://zigbeefordomoticz.github.io/wiki/Contrib/
I'll have a look, thank you!

Edit: I use a Sonoff stick btw :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest