Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.72k stars 1.64k forks source link

Wireless Legrand Devices and Ember Driver / Polling GenPollCtrl #22438

Open Loic691 opened 4 months ago

Loic691 commented 4 months ago

What happened?

All my Legrand Devices didn't working (except juste one randomly) after switching from EZP to EMBER driver

What did you expect to happen?

I except my Legrand device works and works better than EZSP. I have ranbdomly et recurent problem with them on EZSP (didn't received action in HA or receive it with delay)

How to reproduce it (minimal and precise)

Just switch driver to EMBER

Zigbee2MQTT version

1.37.0

Adapter firmware version

7.4.1 [GA]

Adapter

USB Sonoff E

Setup

Add-on on HA

Debug log

Warning 2024-05-04 08:06:55Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 08:06:56Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 08:06:56Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 08:07:06Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 08:07:06Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 08:07:11Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 08:07:11Received network/route error ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY for "913".
Warning 2024-05-04 08:07:19Received network/route error ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY for "40651".
Warning 2024-05-04 08:07:20Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "913".
Warning 2024-05-04 08:07:45Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "29147".
Warning 2024-05-04 08:08:00Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "913".
Warning 2024-05-04 08:08:07Received network/route error ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY for "33406".
Warning 2024-05-04 08:08:08Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "913".
Error 2024-05-04 08:08:20EventBus error 'OnEvent/deviceAnnounce': ZCL command 0x0004740000ab283c/1 genPowerCfg.read(["batteryVoltage"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4129,"transactionSequenceNumber":null,"writeUndiv":false}) failed ({"target":19588,"apsFrame":{"profileId":260,"clusterId":1,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":113},"zclSequence":4,"commandIdentifier":1} timed out after 10000ms)
Warning 2024-05-04 08:08:24Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "913".
Warning 2024-05-04 09:49:34Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 09:49:39Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 09:49:39Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Info 2024-05-04 09:50:03<=== [ZDO clusterId=32824 sender=22854] Support not implemented upstream.
Warning 2024-05-04 09:50:04Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 09:50:04Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 09:50:04Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 09:50:14Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 09:50:14Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Warning 2024-05-04 09:50:22Received network/route error ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY for "40651".
Warning 2024-05-04 09:50:22Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".
Error 2024-05-04 09:50:24Handling of poll check-in from 0x0004740000792228 failed
Warning 2024-05-04 09:50:32Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for "40940".

In addition a strange behaviour for Legrand Device but good news I hope. Before with EZSP driver, for Wireless Legrand devices, these one never send ping data in the zigbee network so Z2M see them to not online after 24 hours... In the EMBER version (all my Legrand wireless device don't working except one), I have saw that a wireless button which send ping data without to push the buttons. Note that I have 2 of these device in the same firmware version. One is Ok with the "ping", the other is not OK ans generate ROUTE ERROR SOURCE ROUTE when I pushed the button...

Another great new functionnality when we swiutch the coordinator in pairing mode, the non wireless legrand device LED switch to green as in the official gateway ;-)

Loic691 commented 4 months ago

So a new update and time spent to understand why ember causes issues to Legrand Device...

I'm progressing and I have to reconfigure some devices. So for now just one device let me ROUTE ERROR (Home away 064873 switch). And I have no event when I push buttons. I try to remove the tiny group since I saw other buttons have GenPollCtrl enabled... I have to wait to check if GenPollCtrl is ok on 064873...

I get working now my second simple wireless switch 067773 with battery level ! I had to reconfigure it too.

Loic691 commented 4 months ago

GenPollCtrl not working now for all my legrand wireless device... I'm not understand the management of these button and the Legrand Complexity... My scene home away button is not working with or without the tiny group. I saw the last seen for now when I pushed the button but not event are sent from Z2M...

Loic691 commented 3 months ago

Hi all, hi @Nerivec So and finally ember still very very better for Legrand wireless Device. Addition for emlber compared to EZSP driver

For this last features, I had never saw with EZSP driver that wireless device ping the network regularly. With the change to EMBER, I have one of my wireless device which ping each hours the network. So the last seen is correct.

The strange behaviour is I have to same device with same firmware and same config. The second device never pings regularly... So the last seen is old and the availability is set to offline... image

My other legrend wireless device never ping the network...

Here's a capture without pushing physical buttons

image