Hello I would need some help configuring Zigbee2MQTT because it doesn’t detect my RaspbeeII shield; i’m using a Raspberry 4B
It cannot connect to your adapter. Please provide your /zigbee2mqtt/configuration.yaml and details about your installation.
Please don’t use pictures, post the code formatted correctly. You have not shared details about your installation and you are showing the wrong configuration.yaml (notice the one I asked about is located in the zigbee2mqtt folder).
I don’t have any configuration.yaml in the zigbee2MQTT folder
# Indicates the configuration version (used by configuration migrations)
version: 4
# Home Assistant integration (MQTT discovery)
homeassistant:
enabled: false
# Enable the frontend, runs on port 8080 by default
frontend:
enabled: true
# port: 8080
# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: capteurs/température
# MQTT server URL
server: 'mqtt://'
# MQTT server authentication, uncomment if required:
# user: my_user
# password: my_password
# Serial settings, only required when Zigbee2MQTT fails to start with:
# USB adapter discovery error (No valid USB adapter found).
# Specify valid 'adapter' and 'port' in your configuration.
# serial:
# # Location of the adapter
# # USB adapters - use format "port: /dev/serial/by-id/XXX"
# # Ethernet adapters - use format "port: tcp://192.168.1.12:6638"
port: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED3DDF-if00
# # Adapter type, allowed values: `zstack`, `ember`, `deconz`, `zigate` or `zboss`
adapter: deconz
# Periodically check whether devices are online/offline
# availability:
# enabled: false
# Advanced settings
advanced:
# channel: 11
# Let Zigbee2MQTT generate a network key on first start
network_key: GENERATE
# Let Zigbee2MQTT generate a pan_id on first start
pan_id: GENERATE
# Let Zigbee2MQTT generate a ext_pan_id on first start
ext_pan_id: GENERATE
That’s the only config file i got
Could it be that you miss the Baud rate? It is specified that for RaspBee2 it is 38400
deCONZ (Dresden Elektronik) | Zigbee2MQTT
Is this the first setup? you did not have it working before?
nope it’s the first setup i tried for the baudrate but it ain’t working either with or without the baud
You haven’t defined a mqtt server, you have homeassistant
set to false
, you have a CC2531 adapter and defined that as a Deconz adapter.
I suggest you start over, and read the installation instructions carefully.
Is your shield even recognized by your OS at least?
Have you followed installation of dependencies etc from the manufacturer?
Have you looked up the deCONZ (Dresden Elektronik) | Zigbee2MQTT part what needs to be configured?
i haven’t here because it contains an ip address but it’s there on my side and the shield works just fine with just deconz but as i need to send it over MQTT to another raspberry i need to use zigbee2MQTT
I don’t have that one, i got a raspbee 2
Then why have you defined this?
dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED3DDF-if00
it was on the example and i think the correct one is on /dev/gpiochip0 but i haven’t modified it yet
Did you disable the bluetooth pins as per (link: Zha can't connect to freshly installed RaspBee II on RPi 4B / RaspBee II seems not available)
still nothing
Starting Zigbee2MQTT without watchdog.
[2025-01-16 13:26:00] debug: z2m: Removing old log directory '/opt/zigbee2mqtt/data/log/2025-01-16.11-50-56'
[2025-01-16 13:26:00] info: z2m: Logging to console, file (filename: log.log)
[2025-01-16 13:26:00] debug: z2m: Loaded state from file /opt/zigbee2mqtt/data/state.json
[2025-01-16 13:26:00] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #060ae99)
[2025-01-16 13:26:00] debug: z2m: sd-notify loaded
[2025-01-16 13:26:00] info: z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-16 13:26:00] debug: z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":58878,\"extendedPanID\":[174,147,72,6,40,26,82,139],\"channelList\":[11],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/opt/zigbee2mqtt/data/database.db\",\"databaseBackupPath\":\"/opt/zigbee2mqtt/data/database.db.backup\",\"backupPath\":\"/opt/zigbee2mqtt/data/coordinator_backup.json\",\"serialPort\":{\"baudRate\":9600,\"path\":\"/dev/gpiochip0\",\"adapter\":\"deconz\"},\"adapter\":{\"disableLED\":false}}"'
[2025-01-16 13:26:00] debug: zh:adapter:discovery: Connected devices: [{"path":"/dev/ttyS0"}]
[2025-01-16 13:26:00] debug: zh:adapter:discovery: Unable to match USB adapter: deconz | /dev/gpiochip0
[2025-01-16 13:26:00] debug: zh:deconz:driver: Set delay to 0
[2025-01-16 13:26:00] debug: zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":58878,"extendedPanID":[174,147,72,6,40,26,82,139],"channelList":[11]},"serialPort":{"baudRate":9600,"path":"/dev/gpiochip0","adapter":"deconz"},"adapter":{"disableLED":false},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json"}'
[2025-01-16 13:26:00] debug: zh:deconz:driver: Opening with /dev/gpiochip0
[2025-01-16 13:26:00] error: z2m: Error while starting zigbee-herdsman
[2025-01-16 13:26:00] error: z2m: Failed to start zigbee-herdsman
[2025-01-16 13:26:00] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-16 13:26:00] error: z2m: Exiting...
[2025-01-16 13:26:00] error: z2m: Error: Error while opening serialport 'Error: Error: Invalid argument setting custom baud rate of 9600'
at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:208:28)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/.pnpm/@[email protected]/node_modules/@serialport/stream/dist/index.js:82:22)
at /opt/zigbee2mqtt/node_modules/.pnpm/@[email protected]/node_modules/@serialport/stream/dist/index.js:118:18
ELIFECYCLE Command failed with exit code 1.
You have to use the right one. I don´t know your install, but you can likely find it in Settings > System > Hardware > All Hardware. In my case it shows like this and that long path is the one I use in mine: