stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 99 forks source link

Plugin gets disconnected to MQTT immediately after connecting #818

Closed aalwash closed 2 years ago

aalwash commented 2 years ago

Issue description Previously I was running ZIgbee2MQTT v0.2.1 Today I've updated to master (v3.1.0-beta) because I'd like support for the IKEA Tadfri buttons

Except, it's disconnecting from MQTT, for now reason (that I can tell by looking to the logs) Nothing changed in this setup, except upgrading the plugin to master

I also tried version 3.0.0 (tag), but that one contains Python errors

How to reproduce

Additional information Zigbee2MQTT version: 1.27.0 Python version: '3.8.10', 6 plugin definitions loaded. Domoticz version: Version: 2022.1 (build 14161) Plugin version: 3.1.0-beta

Logs

2022-08-19 12:17:30.969 Zigbee2MQTT: MqttClient::onDisonnect 2022-08-19 12:17:30.969 ^[[1;31mError: Zigbee2MQTT: Disconnected from MQTT Server: localhost:1883^[[0;0m 2022-08-19 12:17:30.969 Zigbee2MQTT: MqttClient::close 2022-08-19 12:17:30.969 Zigbee2MQTT: Disconnected from MQTT server 2022-08-19 12:17:30.969 Zigbee2MQTT: onStop called 2022-08-19 12:17:30.969 Zigbee2MQTT: Uninstalling plugin custom page... 2022-08-19 12:17:30.969 Zigbee2MQTT: Removing files from /home/ali/home-automation/domoticz/www/templates 2022-08-19 12:17:30.970 Zigbee2MQTT: Uninstalling plugin custom page completed. 2022-08-19 12:17:30.978 Status: Zigbee2MQTT: Exiting work loop. 2022-08-19 12:17:31.069 Status: Zigbee2MQTT: Stopping threads. 2022-08-19 12:17:31.069 Status: Zigbee2MQTT: Stopped. 2022-08-19 12:17:31.069 Status: Zigbee2MQTT: Entering work loop. 2022-08-19 12:17:31.069 Zigbee2MQTT: Worker thread started. 2022-08-19 12:17:31.069 Status: Zigbee2MQTT: Started. 2022-08-19 12:17:31.223 Status: Zigbee2MQTT: Initialized version 3.1.0-beta 2022-08-19 12:17:31.226 Zigbee2MQTT: Debug logging mask set to: PYTHON 2022-08-19 12:17:31.226 Zigbee2MQTT: Installing plugin custom page... 2022-08-19 12:17:31.226 Zigbee2MQTT: Copying files from /home/ali/home-automation/domoticz/plugins/zigbee2mqtt/frontend to /home/ali/home-automation/domoticz/www/templates 2022-08-19 12:17:31.238 Zigbee2MQTT: Installing plugin custom page completed. 2022-08-19 12:17:31.238 Zigbee2MQTT: MqttClient::init 2022-08-19 12:17:31.238 Zigbee2MQTT: MqttClient::open 2022-08-19 12:17:31.288 Zigbee2MQTT: onConnect called 2022-08-19 12:17:31.288 Zigbee2MQTT: Connected to MQTT Server: localhost:1883 2022-08-19 12:17:31.289 Zigbee2MQTT: MQTT CLIENT ID: 'Domoticz_1660904251_6910' 2022-08-19 12:17:31.339 Zigbee2MQTT: MqttClient::subscribe 2022-08-19 12:17:31.389 Zigbee2MQTT: Subscribed to "zigbee2mqtt/#" topic 2022-08-19 12:17:31.389 Zigbee2MQTT: Zigbee2mqtt bridge is online 2022-08-19 12:17:31.389 Zigbee2MQTT: Zigbee2mqtt log level is debug 2022-08-19 12:17:31.389 Zigbee2MQTT: Joining new devices is enabled on the zigbee bridge 2022-08-19 12:17:31.390 Zigbee2MQTT: Received available devices list from bridge 2022-08-19 12:17:31.390 Zigbee2MQTT: Coordinator address is 0x00124b0014b92ab5 2022-08-19 12:17:31.405 Zigbee2MQTT: Received available devices groups from bridge 2022-08-19 12:17:58.676 Status: MQTT server: Worker stopped... 2022-08-19 12:17:59.687 Status: MQTT server: Connecting to localhost:1883 2022-08-19 12:17:59.887 Status: MQTT server: connected to: localhost:1883

aalwash commented 2 years ago

I've turned debug verbose mode on... the connection isn't broken Previously when you enable debug mode, it shows all chatter on the zigbee2mqtt/# topic Now it doesn't show you anything, which made me think the connection isn't established anymore