Luligu / matterbridge-zigbee2mqtt

Matterbridge zigbee2mqtt plugin
https://github.com/Luligu/matterbridge-zigbee2mqtt/blob/main/README.md
Apache License 2.0
72 stars 8 forks source link

Problems to connect to MQTT-Broker #40

Closed Burki24 closed 2 months ago

Burki24 commented 3 months ago

I tried to connect to my MQTT-Broker, it connects, but it still get no informations:

[08:03:24.373] [Matterbridge zigbee2mqtt plugin] The plugin did not receive zigbee2mqtt bridge state. Check if zigbee2mqtt is running and connected to the MQTT broker.
[08:03:24.373] [Matterbridge zigbee2mqtt plugin] The plugin did not receive zigbee2mqtt bridge info. Check if zigbee2mqtt is running and connected to the MQTT broker.
[08:03:24.373] [Matterbridge zigbee2mqtt plugin] The plugin did not receive zigbee2mqtt bridge devices/groups. Check if zigbee2mqtt is running and connected to the MQTT broker.
[08:03:24.374] [Matterbridge] Failed to start plugin matterbridge-zigbee2mqtt: Error: The plugin did not receive zigbee2mqtt bridge state or info or devices/groups. Check if zigbee2mqtt is running and connected to the MQTT broker.
[08:03:25.210] [Matterbridge] The plugin matterbridge-zigbee2mqtt is in error state.
[08:03:25.211] [Matterbridge] The bridge will not start until the problem is solved to prevent the controllers from deleting all registered devices.
[08:03:25.212] [Matterbridge] If you want to start the bridge disable the plugin in error state and restart.
[08:04:09.369] [Zigbee2MQTT] Error connecting to mqtt://192.168.178.6:1025: connack timeout
[08:04:09.370] [Matterbridge zigbee2mqtt plugin] MQTT broker at 192.168.178.6:1025 error: Error: connack timeout Error: connack timeout
    at Timeout._onTimeout (/usr/lib/node_modules/matterbridge-zigbee2mqtt/node_modules/mqtt/build/lib/client.js:310:32)

My configuration:

{
  "name": "matterbridge-zigbee2mqtt",
  "type": "DynamicPlatform",
  "host": "192.168.178.6",
  "username": "",
  "password": "",
  "port": 1025,
  "topic": "zigbee2mqtt",
  "blackList": [],
  "whiteList": [],
  "switchList": [],
  "lightList": [],
  "outletList": [],
  "featureBlackList": [],
  "deviceFeatureBlackList": {},
  "debug": false,
  "unregisterOnShutdown": false
}

My Zigbee2MQTT-Configuration:

mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.178.6:1025
  keepalive: 60
  reject_unauthorized: false
  version: 4
  include_device_information: true

The Broker isn't running on the same PI as the Matterbridge. Zigbee2MQTT and Matterbridge including the matterbridge-zigbee2mqtt Plugin are running on the same PI as zigbee2MQTT. Any idea to fix this?

Thanks in advance Burkhard

Luligu commented 3 months ago

Hi, is your zigbee2mqtt connecting correctly to the broker? What broker are you using? Con you send me the mosquitto.conf? Did you try using the usual and default port 1883 ?

Burki24 commented 1 month ago

Sorry, I was on traveling, So I can't answer. Is it possible, that you have fixed the minimum MQTT-Protokoll version to 5?

Our MQTT-server on Symcon accept only up to version 4 of MQTT. Will it be possible to make the MQTT-protokoll V changeable?

THanks and greetz Burkhard