zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on

Home Page:https://www.zigbee2mqtt.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can no longer set serial port option in the configuration to 'null' for autodetect

deveon95 opened this issue · comments

Description of the issue

In the past, I set the 'serial' option to port: null to get it to autodetect which port the Sonoff serial dongle is on according to the instructions:

To autodetect the USB port, set 'port: null'.

This worked perfectly for several months.

One day after installing an update (don't know which one specifically), I noticed that my Zigbee devices weren't working, and the setting had suddenly changed to something like port: /dev/ttyUSB2. Of course I can correct that to the right port and it will work, but only until Home Assistant reboots because the port allocation changes on every boot despite not having any other USB serial device connected, which is why I used the auto detect feature originally.

When I try to change it back to port: null, I get the following error:

Failed to save add-on configuration, Missing required option 'port' in Zigbee2MQTT (45df7312_zigbee2mqtt). Got {'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': {}, 'serial': {'port': None}}

Addon version

v1.36.1-1

Platform

Core 2024.3.0
Supervisor 2024.03.1
Operating System 12.1

Logs of the issue (if applicable)

No response