Zigbee2MQTT setup issues logging on 502 and herdsman

Hi,

Having trouble configuring zigbee2MQTT. I’m a beginner so be kind,

I have ZHA devices currently connected to a conbee II. I think it might be a port forward problem?

[11:42:01] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-08-14 11:42:03: Logging to console and directory: '/config/zigbee2mqtt/log/2022-08-14.11-42-03' filename: log.txt
Zigbee2MQTT:info  2022-08-14 11:42:03: Starting Zigbee2MQTT version 1.27.0 (commit #unknown)
Zigbee2MQTT:info  2022-08-14 11:42:03: Starting zigbee-herdsman (0.14.46)
Zigbee2MQTT:error 2022-08-14 11:42:14: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-08-14 11:42:14: Failed to start zigbee
Zigbee2MQTT:error 2022-08-14 11:42:14: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-08-14 11:42:14: Exiting...
Zigbee2MQTT:error 2022-08-14 11:42:14: undefined

Then you can’t use Zigbee2MQTT. Well unless you have a two zigbee sticks plugged in to the same machine, then each can use one. But if ZHA is using the conbee II then Z2M cannot use it.

If you only have a single Conbee II then you can either use ZHA or Z2M. You cannot use both on the same machine.

1 Like

Thank you. So how do I stop ZHA using the conbee?

Disable or remove the integration.

I disabled ZHA and rebooted my HA instance. Still doesn’t work.

So since disabling ZHA, I now have some progress but the log file is showing that i’m not authorised?

[19:00:12] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-08-14 19:00:14: Logging to console and directory: '/config/zigbee2mqtt/log/2022-08-14.19-00-14' filename: log.txt
Zigbee2MQTT:info  2022-08-14 19:00:14: Starting Zigbee2MQTT version 1.27.0 (commit #unknown)
Zigbee2MQTT:info  2022-08-14 19:00:14: Starting zigbee-herdsman (0.14.46)
Zigbee2MQTT:info  2022-08-14 19:00:15: zigbee-herdsman started (resumed)
Zigbee2MQTT:info  2022-08-14 19:00:15: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":114,"product":0,"revision":"0x26720700","transportrev":0},"type":"ConBee2/RaspBee2"}'
Zigbee2MQTT:info  2022-08-14 19:00:15: Currently 0 devices are joined:
Zigbee2MQTT:info  2022-08-14 19:00:15: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  2022-08-14 19:00:16: Connecting to MQTT server at mqtt://core-mosquitto
Zigbee2MQTT:error 2022-08-14 19:00:16: MQTT failed to connect: Connection refused: Not authorized
Zigbee2MQTT:error 2022-08-14 19:00:16: Exiting...
Zigbee2MQTT:info  2022-08-14 19:00:16: Stopping zigbee-herdsman...
Zigbee2MQTT:info  2022-08-14 19:00:17: Stopped zigbee-herdsman

The log did say you need to fix this first.

This is resolved. It seems that I needed to clean up the format in Yaml. The boxes in the config didn’t seem to space thiings correctly.