fairecasoimeme / Zlinky_TIC

Téléinformation Linky autoalimenté ZigBee 3.0
289 stars 21 forks source link

Zlinky_TIC do not pair when moving from ZHA to Zigbee2MQT #233

Closed pouilld closed 5 months ago

pouilld commented 5 months ago

HAOS 11.3 CORE 2024.0 HW RPI 4 controller Zigbee 3.0 USB Dongle plus (E)

Using the ZHA Zigbee integration, the Zlinky TIC module has been recognized, and paired without problem.

I decided to move from the ZHA integration to zigbee2mqtt without changing anything the zigbee network(controller & devices). As recommended, I first remove the ZHA integration before installing Zigbee2mqtt (all zigbee devices and entities were removed). After install/configuration of Zigbee2mqtt, I was able to pair ALL my zigbee devices BUT the Zlink_TIC module (after resetting it), even after installing a additional router near of the module (this was not necessary when using the ZHA integration). The module led flash quickly (waiting pairing) but do not pair. I am stuck at that point and help will be appreciated.

More info: when stopping zbigbee2mqtt and starting the zigbee home assistant intégration the Zlinky_TIC pair immediately without problem. This imply that the reason for not been able to pair the Zlinky_TIC is note related to the SONOFF controller or the zigbee network but in the linky integration into zigbee2mqtt.

nerthazrim commented 5 months ago

I recently moved from a PiZigate+ on a RPI3 to the same Sonoff dongle on a virtualized server and also moved from ZHA to Z2M. I did not have any issue.

When you "Permit join" on Z2M, do you select the coordinator only? Or do you Permit Join (All)? Sometimes devices do not like to be routed and need direct link with the coordinator, have you tried that?

Also, have you tried disconnecting the ZLinky completely from the Linky, re-attaching it and retried the pairing? Last idea: try to push the reset button for more than 15s, release, then Permit join on Z2M and reset Zlinky for 5s. That's what I did when I moved, without problem.

pouilld commented 5 months ago

Thank for your answer. I have already tried to re-pair or reset the Zlinky without success (blue led remain flashing). With ZHA the Zlinky pair immediately during network initialization.

On my zigbee network (all device paired with ZHA including the Zlinky), a switch from ZHA to Z2M (without network reinitialization) Z2M recognize immediately all existing devices ( without the need to pair again) BUT the Zlinky (remaining paired on the network -> steady blue led). Switching back to ZHA, (without network reinitialization) all existing devices are again recognized by ZHA (without need to pair again) including the Zlinky.

The problem seems Z2M when starting to receive device information from the controller for all devices (including Zlinky) ignore those related to the Zlinky.

pouilld commented 5 months ago

I have replaced my actual coordinator (SonOFF Zigbee 3.0 USB Dongle plus (E) EFR32MG21) by a ZIGATE V2 USB dongle (firmware ZIgate2-3a0. Now the Zlinky pair with Z2M (as well as all other devices). So, the problem seems related to an incompatibility between Z2M and this version of the Sonoff coordinator. However, with the ZIgate coordinator, it is not possible to upgrade the Zlinky firmware using OTA and it s is a problem already known by the Zlinky manufacturer.

nerthazrim commented 5 months ago

I seriously doubt incompatibility is the reason, as I've done pretty much the same thing you did very recently and changed my coordinator from a PiZigate+ with ZHA to a SonOFF Zigbee 3.0 USB Dongle plus (E) with Z2M. Worked like a charm without any problem for pairing.

pouilld commented 5 months ago

In that case, I don't see an explanation why by just replacing the Sonoff coordinator by the ZIgate, the Zlinky that was unable to pair with Z2M was now able to pair with Z2M. Please note that in both case, the network was reinitialized by the coordinator on the same Zigbee channel (11).

pouilld commented 5 months ago

After doing a "full reset" (re-initialization of the zigbee network, removing devices and entities in HA, uninstall of Z2M, deleting the Z2M configuration folder in ZHA, and installing Z2M again, I was able to successfully pair the Zlinky with Z2M. I also was able update thru OTA the Zlinky firmware to V13. Unfortunately after the update, some information about my "HP-HC" were not anymore sent by the Zlinky. Thanks for your help, Daniel

pouilld commented 5 months ago

subject closed, thanks