Your HA gateway can support zigbee2mqtt add-on, but I have encountered error when I try to add it in.
Please make sure that you are setting the correct port: dev/ttyUSB1, also make sure your repository is GitHub - Zengzisheng/hassio-zigbee2mqtt-1: Official Zigbee2MQTT Home Assistant add-on and try it again.
I am having the same issue. When I start I get an error saying No such file or directory, cannot open /dev/ttyUSB1
.
When I list the serial devices I only see one:
admin@Zigbee2MQTT:/opt/zigbee2mqtt$ ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Dec 12 23:33 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
I think this is the USB port on the back of the machine, but I would have expected a second USB device for the coordinator as well. Should it not appear here? Or I need to configure it in a different way?
My hardware is a DSGW-210-F18 HA.
I did not even finish the installation of HA. I don’t want to use HA.
DSGW-210-F-18 doesn’t have bluetooth module
you can try to use /dev/ttyUSB0 as the zigbee serial port.
I am not planning to use Bluetooth, but Zigbee.
I tried /dev/ttyUSB0
as well, but it does not work either:
admin@Zigbee2MQTT:~$ cd /opt/zigbee2mqtt
admin@Zigbee2MQTT:/opt/zigbee2mqtt$ npm start
> zigbee2mqtt@1.34.0 start
> node index.js
Zigbee2MQTT:info 2023-12-13 12:30:39: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-12-13.12-30-39' filename: log.txt
Zigbee2MQTT:info 2023-12-13 12:30:39: Starting Zigbee2MQTT version 1.34.0 (commit #56589dc)
Zigbee2MQTT:info 2023-12-13 12:30:39: Starting zigbee-herdsman (0.25.0)
Zigbee2MQTT:error 2023-12-13 12:31:01: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-12-13 12:31:01: Failed to start zigbee
Zigbee2MQTT:error 2023-12-13 12:31:01: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-12-13 12:31:01: Exiting...
Zigbee2MQTT:error 2023-12-13 12:31:01: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:60:27)
at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:101:27)
at start (/opt/zigbee2mqtt/index.js:107:5)
I used user admin to set up MQTT and Zigbee2MQTT, I added admin user to the group to access serial port. Therefore I don’t think this is an access issue.
try to add the following to your configuration.yaml
serial:
adapter: ezsp
@Dusun_Yan Thanks a lot. It is working now.
For those who join to this later, this is the configuration.yaml
I ended up using:
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost
user: YOUR_MQTT_USERID
password: YOUR_MQTT_PASSWORD
serial:
port: /dev/ttyUSB0
adapter: ezsp
frontend:
port: 8085
advanced:
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
As mentioned above the /dev/ttyUSB0
is the port, and adapter:ezsp
was required as wel. I added the frontend section, so I can access the Zigbee2MQTT webGUI for management.
EDIT: I made a small change to the configuration.yaml
. I read that it is better to configure USB devices by ID instead of ttyUSB0, or ttyUSB1. It looks like for Dusun, it is /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
. I replaced that and it is working as well.
And also I set permit_join: false
, not to allow devices to join the network automatically.