Closed saper-2 closed 2 years ago
I have looked around the code a bit and found publishing to bridge/config/devices/get
(file: plugin.py:189
) won't do anything because the bridge/config
is a "end node with value" (and RETAINED; don't know how to call it properly), so mqtt broker won't allow to publish anything "under this node".
For #803 I left idea how it can be fixed nicely...
Issue description
Zigbee2mqtt https://github.com/Koenkk/zigbee2mqtt made (so much) changes in API which make this plugin to hang/or throw error ( #803 ) .
So far I noticed those changes:
bridge/devices/get
, but now z2m keep device list in retained topicbridge/devices
. Publishing to old topic cause the mqtt-broker to drop retained flag ondevices
and this is problem for any new mqtt-client that would want to get list of devices (retained topics are pushed to clients that want to listen them upon connect)status
don't have anymore data in plain text, but now in json , e.g.:{"status":"online"}
.Additional information Zigbee2MQTT version:
1.25.1 commit: 3f6a137
Python version:3.9.3
Domoticz version:2022.1 (build 14341)
, Build Hash:d479d6cb8
Compile Date:2022-05-23 01:01:38
Plugin version:3.1.0-beta
(git clonecommit 3ca1419 - 2022-04-30 17:33 CEST
)Logs Not needed
Related: #803 #805