Hello,
I’ve got a really odd problem with the MQTT binding in OH =5.1 with the device discovery after migrating from OH4.3.8 on RP 32bit to OH5.1 on RP 64 bit, so a complete reinstall. I also copied the OH backup from 4.3.8 onto 5.1. I have reinstalled MQTT, ZWave-JS-UI (831), Zigbee2MQTT. ZWave and Zigbee run file, the network is up, I can spy on MQTT and see the traffic.
My problem is with getting the Openhab MQTT binding to work and discover the Zwave and Zigbee devices:
All my MQTT devices were in state “missing handler” when OH 5.1 came up the first time. I read in the OH 5 release notes that the MQTT things need to be recreated if the discovery results are too old, so I deleted all of them. I uninstalled the MQTT binding, stopped OH, cleaned the OH cache using the command line tool, restarted it (twice, first time I always see tons of errors). After the restart of OH I installed the MQTT binding again, created the MQTT bridge thing and connected it to MQTT (user/pass, IP, port,…). But the OH does not discover any of the Zwave or Zigbee things using MQTT HomeAssistent discovery as it used to with 4.x ?
I checked:
- in both system the Zwave and Zigbee HomeAssistent discovery is enabled.
- I have discovered a new Zwave device (in case the Zwave discovery message of old devices are lost somehow). In OH 5.0 the new device is not discovered as a MQTT thing, booting into OH 4.3.8 I immediately get the new device as a MQTT thing discovered.
- I tried to play with the MQTT bridge settings, no change
I ran out of ideas on how to fix this. Any hint what I might be missing ?
Many thanks in advance, Markus