#ZBT-2 with z2M : Failed to init port with error Error

1 messages · Page 1 of 1 (latest)

sly sequoia
#

Hey all,

I'm just in the process of migrating from my zStack based zigbee coordinator over to ZBT-2.
I'm currently using Z2M as Zigbee solution running as addon on my HA-instance.

As per the documentation on the Z2M homepage I successfully flashed the ieee adress of my previous coordinator over to my ZBT-2.
the ZBT-2 is on FW 7.4.4.6 and plugged in via USB directly into my HA. It is recognized in HA and the device is set up.

I can find the ZBT in System--> Hardware as /dev/serial/by-id/usb-Nabu_Casa_ZBT-2_XXXXXXXXXXXX-if00

in the config page of the Z2M addon I setup the serial adapter as follows:

serial:
adapter: ember
port: /dev/serial/by-id/usb-Nabu_Casa_ZBT-2_XXXXREDACTEDXXXX-if00-port0
baudrate: 460800
rtscts: true

the previous coordinator is powered off
the LED of the ZBT-2 are off (whis is strange to me)
as per the migration docu on the z2m I deleted (renamed) the coordinator_backup.json

When I start Z2M I get the following error in the logs

zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_ZBT-2_XXXXXXXXXXXX-if00-port0

does anyone have an idea on how to fix this issue?

proven mountain
#

The name you said showed up in system -> hardware isn't the one you put in the config

sonic scarab
#

That, and you don't need to redact any part of the path

sly sequoia
#

Thanks for looking into this, appreciate your help! Apparently all the configuration was set up correctly. What’s in the end seemed to have been the issue is that the native HA-integration was still active and thus blocking the serial port of the TBT-2. Once I deactivated it Z2M could connect successfully.

I found the respective hint in the docu but from a novice users perspective its quite counter unintuitive to have a setup process which specifically asks for Z2M but then ends up in a status where Z2M is not working. Maybe an opportunity to improve