Howto add MQTT Thing

Yes i entered username and password. The Broker is Shows online. If i stop the service than its err com. So this should work.

Do you mean if you stop zigbee2mqtt?

Run mosquitto_sub -v -t “zigbee2mqtt/DoorWindow/#” -u -P ‘’ -h 192.168.0.77 -p 1883

And SHOW me what you get for the device you are trying to configure.

What do you have in the MQTT state topic?

The zigbee2mqtt Logs shows correct: MQTT publish: topic ‘zigbee2mqtt/DoorWindow’, payload ‘{“battery”:100,“battery_low”:false,“contact”:true,“linkquality”:51,“tamper”:false,“voltage”:3100}’

mosquitto_sub -v -t “zigbee2mqtt/DoorWindow/#” -u -P ‘’ -h 192.168.0.77 -p 1883
->Nothing, no result.

What do you have in the MQTT state topic?
→ you mean in OH in the Channel settings? → zigbee2mqtt/DoorWindow

Run this again and show me what you get for the device.

Its the same as before. We changed nothing.
→ “devices”:{“0x00124bxx60c”:{“friendly_name”:“DoorWindow”}}

Is this IP 192.168.0.77 the address of the zigbe2mqtt server?

What is in the zigee2mqtt/data/configuration.yaml (I asked this before)?

What does yours look like? Mine looks like this:

mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.164
  keepalive: 60

Show me yours.

Sorry overread that.
Yes its the Server, i wrote before :).

mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://localhost
  user: User
  password: 'Pass'

If that is the sever then change this line:

  server: mqtt://localhost

to

  server: mqtt://192.168.0.77

Then restart zigbee2mqtt
Then run

mosquitto_sub -v -t “zigbee2mqtt/#” -u -P ‘’ -h 192.168.0.77 -p 1883

and see what you get.

Changed nothing. Port and Client are reachable from oH Host too. So thats not the problem.

You siad this earlier

The ip address you should have in the zigbee2mqtt/data/configuration.yaml should be the IP address that the zigbee2mqtt is running on. I am guessing it is NOT 192.168.0.77?

The broker in OH should point to the zigbee2mqtt server IP address.

If this doesn’t work I am out of ideas.

The Zigbee2MQTT Service shows correct:
MQTT publish: topic ‘zigbee2mqtt/DoorWindow’, payload '{“battery”:100,“battery_low”:false,“contact”:true,


Thats just the local log.

Should proof it:
/opt/zigbee2mqtt/data# ip a
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:df:ad:ce:06:c2 brd ff:ff:ff:ff:ff:ff
altname enp0s18
inet 192.168.0.77/24 brd 192.168.0.255 scope global dynamic ens18

OK so the IP of the zigbee2mqtt is 192.168.0.77 so the only thing stopping it might be the username and password?

Have you had any other devices working or is this the first one?

I would remove the username and password for testing.

I will try it without user and pass.

Same Result. No Output in any Testcase like descripe above. Could it be possible of broken Debian Package or something like that?
Do i need some Module for translating?
mosquitto version 2.0.11
mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.

Run this:
apt list --installed |grep mosquitto

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libmosquitto1/stable,now 2.0.11-1.2 amd64 [installed,automatic]
mosquitto-clients/stable,now 2.0.11-1.2 amd64 [installed]
mosquitto/stable,now 2.0.11-1.2 amd64 [installed]

Above is what I have installed.

Is your output the same?