Hey!
I'd like to merge with your fork since it's very well maintained and it only makes sense to have a version working together.
The one I built was especially made for use with FHEM Home automation system, so I'd need to add a few endpoints to work with that.
Especially:
Would that work for you?
Pinging also @starkun that had a more advanced fork from AndrewLinden/xiaomi-zb2mqtt
Yes! Note that starting the pairing process through MQTT is already possible: https://github.com/Koenkk/zigbee2mqtt/wiki/MQTT-topics-and-message-structure#zigbee2mqttbridgeconfigpermit_join
Cool! Could you also merge the ZCL-Packet fork to support Xiaomi Battery Status Messages?
It's already there: https://github.com/Koenkk/zcl-packet
Yes, I did a PR on that to support decoding Aqara Battery Messages. Or did you manage to do that otherwise?
Yeah, still does not support Battery messages from some devices like aqara magnets which are using EP Id 65282 and another message format.
@oskarn97 thanks for clarification, will do some tests and merge!
Thanks! I am not sure if it was the Mi or Aqara Magnets. One of them.
Just keep your eyes open for EP ID 65282 which will be undefined by default.
@oskarn97 Hi, Oskar.
Cluster 65282 always parsed like attrValStruct but not set - look this patch https://github.com/kirovilya/zcl-packet/commit/a2b39c1b5239317bf8cd58ebf665319a5c039456
And get it here in common xiaomi parsers https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/converters/fromZigbee.js#L50
So, all work fine :)
Ahh, nice - thanks for clarification!
So everything is ok already?
For battery yes - I'll check now what else I need in order to get it working with fhem :)
Could you add a endpoint that sends a list of all paired devices with iEEE address and modelId and also a publish if a new device joins the network?
That's all I need to make the FHEM module work with this fork :)
For info about device state (like join) look here : https://github.com/Koenkk/zigbee2mqtt/issues/13
Both features are added: https://github.com/Koenkk/zigbee2mqtt/wiki/MQTT-topics-and-message-structure#zigbee2mqttbridgelog
Thanks a lot! I've closed my fork and updated the FHEM plugin to work with yours.
@oskarn97 great!