What am I doing wrong ? . I installed the new OH 4.1 and I can’t configure mqtt broker. Previously, I worked on OH 2 and everything worked.
In OH 2 I created a w file an directory things caled
mqttbridge.things
Bridge mqtt:broker:MosquittoMqttBroker “Mój MQTT Broker” [
host=“192.168.10.112”,
secure=false,
port=1883,
clientID=“OpenHAB2”,
username=“ppp”,
password=“ppp”
]
What should I do in OH 4?
ubeaut
(Greg)
January 7, 2024, 10:18am
2
Have you clicked on the show advanced.
There are more settings there.
This is how I set port 1883, user and password
ubeaut
(Greg)
January 7, 2024, 11:02am
4
That is the same as I have except I put in a clientid. I made it openhab4 as the name.
I don’t have a username or password set. Other than that it looks the same as what I have.
I am using mosquitto broker as well.
The error you are seeing is connection refused.
Is password and user correct?
Is mosquitto running and on the correct port?
ubeaut
(Greg)
January 7, 2024, 11:06am
5
Is this a new install or an upgrade to 4.1?
I have found a few issues upgrading with parts of things missing and if you remove the thing and out it back it may work?
How and where to check it?
ubeaut
(Greg)
January 7, 2024, 11:15am
8
Should work then.
Look at the mosquitto logs.
sudo tail -f /var/log/mosquitto/mosquitto.log
I don’t have such a catalog/VAR/Log/Mosquitto/ x
ubeaut
(Greg)
January 7, 2024, 12:08pm
11
Why does this say mosqutto then if you are not using mosquitto broker?
What were you using before?
I don’t know your set up.
ubeaut
(Greg)
January 7, 2024, 12:12pm
12
Morning,
Yesterday i installed OH3 on my PI4 as a fresh install. I am using OH now for over a year, due to hardware failure i had to initiate a fresh install. Now I have issues with installing MQTT, i get te error conenction refused. What do i wrong?
So what I did:
Installed a new image OH 3.2
Installed the Mosquitto MQTT Broker via the config menu
Installed the binding
I get the error via the binding. It is also not posisble to connect with the MQTT service via a MQTT viewer
result: I rece…
Where is your MQTT broker running?
There is no system internal broker any more apparently:
I have been using zigbee2Mqtt for years. When I moved openhab 3.1, I started to use the system MQTT Broker. In openhad 3.3.0.M1, it is still working. I did the upgrade to M2 and it doesnt anymore. If I uninstall the MQTT binding, re-install it and properly configure the system MQTT Broker, all my existing MQTT thing dont work amd if I try to change the bride, nothing selectable there.
That is correct, there is no longer a internal broker
It wasn’t installed, but now it doesn’t seem to want to run.
hmerk
(Hans-Jörg Merk)
January 7, 2024, 6:18pm
16
The log is clear, your config is blocking connections from other machines and there seems something is already using that port.
It works, in mosqutto version after 2.0 you need to
mosquitto.conf
listener 1883
add allow_anonymous true
Thank you all for helping me solve my problem
1 Like
system
(system)
Closed
February 18, 2024, 10:52am
18
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.