Dear all,
working with OpenHAB on a Raspi since 2 years now with a stable environment with several bindings on the recent version i dared to do the next step:
zigbee2mqtt-bridge with a mosquitto-broker
All systems up and running, i even can operate e.g. a Tradfri-bulb over the terminal with
mosquitto_pub -h localhost -t zigbee2mqtt/Tradfri/set -m “ON”
mosquitto_pub -h localhost -t zigbee2mqtt/Tradfri/set -m “OFF”
mqtt.things and mqtt.items seem to be configured well, still i do not manage to connect with the openhab-binding for mqtt, nothing appears in the paper-UI.
How can i figure out which ports are used by mosquitto?
By default the mqtt-binding within openhab uses 1883 when manually configured.
Could it be that there is a conflict or any other reasob behind.
Nope. It has no idea where in the internet to start looking for any broker that you might want to use or be allowed to use.
But you are showing us a broker Bridge thing here, that does look sensible.
What does have your openhab.log have to say about it when the binding tries to connect to that?
My device is a stupid switchable (not dimmable) outlet, E1603/E1702.
I followed the instructions shown under https://www.zigbee2mqtt.io/devices/E1603_E1702.html.
But for sure will have a look at your configuration post.
I also noticed that my topic in the terminal is different from the one in the above mentioned link.
As i even tried to request the network quality (read-only) from zigbee2mqtt in the paperUI without success i concluded that there might be a communication issue betweem openhab and mosquitto.
I will configure a fresh setup of a mosquitto broker as a thing in PaperUI and revert…
Why? What’s wrong with the one you configured in your things file? Have you looked in your openhab.log to see if it works? Or at your Thing in PaperUI to see if it is online?
It takes a long time to get things working just by changing stuff at random.
Perhaps the best idea would be to correct your channel configuration to match reality?
you were right and i was wrong…
hafniumzinc’s educated guess was right, your things and items worked perfectly.
The only thing i had to do before was to delete the mqtt broker in the paperUI, disabling it did not help.
Anyway i shouldn’t have set it up at all, no need to as i have the broker in my mqtt.things…
Having this up and running is a good start to gain more experience and understand the methodology… Looking forward to it.
Again, thanx a lot for your help!