Try to run zha and zigbee2mqtt at the same time

Hi there @ all!

I am quite new with HA and i have some trouble to run some devices on ZHA.
(esp. Nexentro blinds Actuator Mini)
So i decided to run Zigbee2mqtt and test if the devices run there.

But mqtt stops at Starting zigbee-herdsman:

[15:29:01] INFO: Preparing to start…
[15:29:02] INFO: Socat not enabled
[15:29:09] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2023-01-25 15:29:19: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-01-25.15-29-19’ filename: log.txt
Zigbee2MQTT:info 2023-01-25 15:29:19: Starting Zigbee2MQTT version 1.29.2 (commit #unknown)
Zigbee2MQTT:info 2023-01-25 15:29:19: Starting zigbee-herdsman (0.14.83-hotfix.0)

I have 2 Zigbee-Coordinators:
mqtt:
adapter: ezsp
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816212615-if00

ZHA:
/dev/serial/by-id/usb-Silicon_Labs_BV_2010_10_0138151C-if00-port0
(25 devices registered at ZHA)

Mosquitto is running. I tested writing and hearing topics.

Config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
serial:
  adapter: ezsp
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816212615-if00

Any Ideas?
Thank you very much for assistance! :slight_smile:

Do I need the Zigbee-Integration for Zigbee2mqtt?

A more complete log might help.

First question I see is no mqtt user/password?

this is the whole log.txt
where can I see more?

user&pass I put in Integration MQTT.
do I have to insert it in zigbee2mqtt too?
if yes, where?

I got a new Configuration:
Sonoff ZB_Bridge flashed with Tasmota.

Now I get these Errors:
[20:12:50] INFO: Preparing to start…
[20:12:52] INFO: Socat not enabled
[20:12:57] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2023-02-01 20:13:09: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-02-01.20-13-09’ filename: log.txt
Zigbee2MQTT:info 2023-02-01 20:13:09: Starting Zigbee2MQTT version 1.30.0 (commit #unknown)
Zigbee2MQTT:info 2023-02-01 20:13:09: Starting zigbee-herdsman (0.14.89)
Zigbee2MQTT:error 2023-02-01 20:13:31: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-02-01 20:13:31: Failed to start zigbee
Zigbee2MQTT:error 2023-02-01 20:13:31: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-02-01 20:13:31: Exiting…
Zigbee2MQTT:error 2023-02-01 20:13:31: Error: Connection not initialized
at Ezsp.execCommand (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:518:19)
at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:325:35)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:141:25)
at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:165:16)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)

My Configuration:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
  user: mqtt_user
  password: password
  server: mqtt://core-mosquitto:1883
serial:
  port: tcp://192.168.2.226:1883
  adapter: ezsp

can someone help? esp. what is Zigbee herdsman???

I got it !
Thank you for your help guys !!!

This is my working CONFIGURATION for running Sonoff ZBBridge :

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
  user: mqtt_user_1
  password: xxxxxxxx
  server: mqtt://core-mosquitto
serial:
  port: tcp://192.168.2.200:8888
  port_speed: 115200
  adapter: ezsp
  permit_join: true
  frontend: true

Now insert the following rows ins Tasmota Console I got it from:

_ - - - - - - -
#6 Issue the following command on the console to map the Zigbee chip to TCP Server Port 8888:

backlog rule1 on system#boot do TCPStart 8888 endon ; rule1 1 ; template {“NAME”:“Sonoff ZHABridge”,“GPIO”:[56,208,0,209,59,58,0,0,0,0,0,0,17],“FLAG”:0,“BASE”:18} ; module 0

Once the console reboots you should see the server has started on Port 8888:

17:35:58 TCP: Starting TCP server on port 8888

17:35:58 RSL: stat/tasmota_7FC5B0/RESULT = {“TCPStart”:“Done”}

Last but not least, while we are here, let’s set the update URL to the Zigbee Bridge variant. This will prevent your future self from breaking your ZHA integration with an upgrade of the wrong bin file. Enter the following on the Tasmota console.

otaurl http://ota.tasmota.com/tasmota/tasmota-zbbridge.bin.gz

permit_join: true is not generally recommended. I’d be surprised if it’s actually required for the gateway.