I am using the SMLIGHT SLZB-06 Zigbee adapter that’s connected over Ethernet. Power is provided via a USB adapter.
The problem is that a few times a week, all my Zigbee network goes offline. The Zigbee2MQTT addon crashes, seemingly due to ECONNRESET
. Then, Watchdog tries to restart it, but it can’t seem to find config (Please set a value for the 'data_path' option.
). Usually when I notice it(in this case ~24 minutes later), I can just start the Zigbee2MQTT addon in Home Assistant and it boots up nicely. ZLZB-06 itself seemingly did not restart, as its web interface shows (screenshot taken at 17:56, for comparison with logs):
Zigbee2MQTT log:
[2024-11-11 17:00:51] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/Bedroom thermostat', payload '{"child_lock":null,"current_heating_setpoint":22,"deadzone_temperature":null,"heat":"OFF","linkquality":116,"local_temperature":23.5,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"program":null,"running_state":"idle","sensor":null,"system_mode":"heat"}'
[2024-11-11 17:00:51] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/Bedroom thermostat', payload '{"child_lock":null,"current_heating_setpoint":22,"deadzone_temperature":null,"heat":"OFF","linkquality":120,"local_temperature":23.5,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"program":null,"running_state":"idle","sensor":null,"system_mode":"heat"}'
[2024-11-11 17:01:07] error: zh:zstack:znp: Socket error Error: read ECONNRESET
[2024-11-11 17:01:07] info: zh:zstack:znp: Port closed
[2024-11-11 17:01:07] info: zh:zstack:znp: closing
[2024-11-11 17:01:07] error: z2m: Adapter disconnected, stopping
[2024-11-11 17:01:07] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/bridge/state', payload '{"state":"offline"}'
[2024-11-11 17:01:07] info: z2m: Disconnecting from MQTT server
[2024-11-11 17:01:07] info: z2m: Stopping zigbee-herdsman...
[2024-11-11 17:01:07] info: z2m: Stopped zigbee-herdsman
[2024-11-11 17:01:07] info: z2m: Stopped Zigbee2MQTT
[17:01:09] INFO: Preparing to start...
[17:01:09] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:09] FATAL:
[17:01:09] FATAL: A required add-on configuration option is missing!
[17:01:09] FATAL:
[17:01:09] FATAL: Please set a value for the 'data_path' option.
[17:01:09] FATAL:
[17:01:09] FATAL: If unsure, check the add-on manual for more information.
[17:01:09] FATAL:
[17:01:10] INFO: Preparing to start...
[17:01:10] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:11] FATAL:
[17:01:11] FATAL: A required add-on configuration option is missing!
[17:01:11] FATAL:
[17:01:11] FATAL: Please set a value for the 'data_path' option.
[17:01:11] FATAL:
[17:01:11] FATAL: If unsure, check the add-on manual for more information.
[17:01:11] FATAL:
[17:01:12] INFO: Preparing to start...
[17:01:12] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:12] FATAL:
[17:01:12] FATAL: A required add-on configuration option is missing!
[17:01:12] FATAL:
[17:01:12] FATAL: Please set a value for the 'data_path' option.
[17:01:12] FATAL:
[17:01:12] FATAL: If unsure, check the add-on manual for more information.
[17:01:12] FATAL:
[17:01:14] INFO: Preparing to start...
[17:01:14] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:14] FATAL:
[17:01:14] FATAL: A required add-on configuration option is missing!
[17:01:14] FATAL:
[17:01:14] FATAL: Please set a value for the 'data_path' option.
[17:01:14] FATAL:
[17:01:14] FATAL: If unsure, check the add-on manual for more information.
[17:01:14] FATAL:
[17:01:16] INFO: Preparing to start...
[17:01:16] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:16] FATAL:
[17:01:16] FATAL: A required add-on configuration option is missing!
[17:01:16] FATAL:
[17:01:16] FATAL: Please set a value for the 'data_path' option.
[17:01:16] FATAL:
[17:01:16] FATAL: If unsure, check the add-on manual for more information.
[17:01:16] FATAL:
[17:01:17] INFO: Preparing to start...
[17:01:18] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:18] FATAL:
[17:01:18] FATAL: A required add-on configuration option is missing!
[17:01:18] FATAL:
[17:01:18] FATAL: Please set a value for the 'data_path' option.
[17:01:18] FATAL:
[17:01:18] FATAL: If unsure, check the add-on manual for more information.
[17:01:18] FATAL:
[17:01:19] INFO: Preparing to start...
[17:01:19] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:19] FATAL:
[17:01:19] FATAL: A required add-on configuration option is missing!
[17:01:19] FATAL:
[17:01:19] FATAL: Please set a value for the 'data_path' option.
[17:01:19] FATAL:
[17:01:19] FATAL: If unsure, check the add-on manual for more information.
[17:01:19] FATAL:
[17:01:21] INFO: Preparing to start...
[17:01:21] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:21] FATAL:
[17:01:21] FATAL: A required add-on configuration option is missing!
[17:01:21] FATAL:
[17:01:21] FATAL: Please set a value for the 'data_path' option.
[17:01:21] FATAL:
[17:01:21] FATAL: If unsure, check the add-on manual for more information.
[17:01:21] FATAL:
[17:01:22] INFO: Preparing to start...
[17:01:22] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:22] FATAL:
[17:01:22] FATAL: A required add-on configuration option is missing!
[17:01:22] FATAL:
[17:01:22] FATAL: Please set a value for the 'data_path' option.
[17:01:22] FATAL:
[17:01:22] FATAL: If unsure, check the add-on manual for more information.
[17:01:22] FATAL:
[17:01:24] INFO: Preparing to start...
[17:01:24] ERROR: Got unexpected response from the API: System is not ready with state: setup
[17:01:24] FATAL:
[17:01:24] FATAL: A required add-on configuration option is missing!
[17:01:24] FATAL:
[17:01:24] FATAL: Please set a value for the 'data_path' option.
[17:01:24] FATAL:
[17:01:24] FATAL: If unsure, check the add-on manual for more information.
[17:01:24] FATAL:
[17:25:52] INFO: Preparing to start...
[17:25:52] INFO: Socat enabled
[17:25:52] INFO: Starting socat
Socat startup parameters:
Options: -d -d
Master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
Slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
[17:25:52] INFO: Starting socat process ...
2024/11/11 17:25:52 socat[46] N PTY is /dev/pts/0
2024/11/11 17:25:52 socat[46] N listening on AF=10 [0000:0000:0000:0000:0000:0000:0000:0000]:8485
[17:25:52] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-11-11 17:26:00] info: z2m: Logging to console, file (filename: log.log)
[2024-11-11 17:26:00] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-11 17:26:00] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-11 17:26:01] info: zh:zstack:znp: Opening TCP socket with 192.168.1.70:6638
[2024-11-11 17:26:01] info: zh:zstack:znp: Socket connected
[2024-11-11 17:26:01] info: zh:zstack:znp: Socket ready
[2024-11-11 17:26:01] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-11-11 17:26:02] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-11-11 17:26:02] info: z2m: zigbee-herdsman started (resumed)
[2024-11-11 17:26:02] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20220219,"transportrev":2},"type":"zStack3x0"}'
[2024-11-11 17:26:02] info: z2m: Bathroom Presence (0x70ac08fffe696790): ZY-M100-L - Tuya Ceiling human breathe sensor (Router)
[2024-11-11 17:26:02] info: z2m: Bathroom thermostat (0x50325ffffe28b191): BHT-002-GCLZB - Moes Moes BHT series Thermostat (Router)
[2024-11-11 17:26:02] info: z2m: Nursery thermostat (0x50325ffffe4189b4): BHT-002-GCLZB - Moes Moes BHT series Thermostat (Router)
[2024-11-11 17:26:02] info: z2m: Bedroom thermostat (0x50325ffffe4181e4): BHT-002-GCLZB - Moes Moes BHT series Thermostat (Router)
[2024-11-11 17:26:02] info: z2m: Office thermostat (0x847127fffe1dc065): BHT-002-GCLZB - Moes Moes BHT series Thermostat (Router)
[2024-11-11 17:26:02] info: z2m: Bathroom scene switch (0x60a423fffe95146b): TS004F - Tuya Wireless switch with 4 buttons (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen Light (0xcc86ecfffef3bcb5): TS0601_dimmer_2 - Tuya 2 gang smart dimmer (Router)
[2024-11-11 17:26:02] info: z2m: Living room light 2 (0x5c0272fffe229386): ZTS-EU_1gang - Moes Wall touch light switch (1 gang) (EndDevice)
[2024-11-11 17:26:02] info: z2m: Techroom light (0x60a423fffe305368): ZTS-EU_1gang - Moes Wall touch light switch (1 gang) (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen light switch (0xa4c138a2c8694b79): ZS-EUB_2gang - Moes Smart light switch - 2 gang (EndDevice)
[2024-11-11 17:26:02] info: z2m: Living room light (0x60a423fffef8d202): TS0601_dimmer_1_gang_1 - Tuya 1 gang smart dimmer (Router)
[2024-11-11 17:26:02] info: z2m: Corridor light (0x60a423fffef8d1fe): TS0601_dimmer_1_gang_1 - Tuya 1 gang smart dimmer (Router)
[2024-11-11 17:26:02] info: z2m: Sofi bed button (0xa4c138b31648f836): TS0044 - Tuya Wireless switch with 4 buttons (EndDevice)
[2024-11-11 17:26:02] info: z2m: Office presence (0x54ef44100064c731): RTCZCGQ11LM - Aqara Presence sensor FP1 (EndDevice)
[2024-11-11 17:26:02] info: z2m: Nursery floor lamp (0x003c84fffefad2b8): LED2003G10 - IKEA TRADFRI bulb E26/27, white spectrum, globe, opal, 1055/1100/1160 lm (Router)
[2024-11-11 17:26:02] info: z2m: Nursery wall button (0x00158d0007e0a18d): WXKG11LM - Aqara Wireless mini switch (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen wall plug (0xa4c1384a059c5f0d): ZK-EU - Moes Smart wallsocket (with power monitoring) (Router)
[2024-11-11 17:26:02] info: z2m: Nursery light (0x60a423fffea643d7): TS0601_dimmer_1_gang_1 - Tuya 1 gang smart dimmer (Router)
[2024-11-11 17:26:02] info: z2m: Porch Plug (0xa4c138db00acecb4): A1Z - Nous Smart plug (with power monitoring) (Router)
[2024-11-11 17:26:02] info: z2m: Doorbell Chime Plug (0xa4c138f83e80d163): A1Z - Nous Smart plug (with power monitoring) (Router)
[2024-11-11 17:26:02] info: z2m: Bathroom temperature (0x00158d000320aa0e): WSDCGQ11LM - Aqara Temperature and humidity sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Bedroom Wall Button (0x00158d0007e4ada6): WXKG11LM - Aqara Wireless mini switch (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen Rotary Switch (0x385b44fffe36afe5): ERS-10TZBVK-AA - Tuya Smart knob (EndDevice)
[2024-11-11 17:26:02] info: z2m: Nursery Door (0x00158d0008647903): MCCGQ11LM - Aqara Door and window sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Nursery Table Button (0x00158d0007e06d7e): WXKG11LM - Aqara Wireless mini switch (EndDevice)
[2024-11-11 17:26:02] info: z2m: Nursery Table Vibration (0xa4c138bfbcb67829): TS0210 - Tuya Vibration sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Nursery Window Powerstrip (0x842e14fffefcdc0e): TS0115 - Tuya Multiprise with 4 AC outlets and 2 USB super charging ports (10A or 16A) (Router)
[2024-11-11 17:26:02] info: z2m: Fridge Plug (0xa4c138f889aacfa4): A1Z - Nous Smart plug (with power monitoring) (Router)
[2024-11-11 17:26:02] info: z2m: Office Window Powerstrip (0x842e14fffefce030): TS0115 - Tuya Multiprise with 4 AC outlets and 2 USB super charging ports (10A or 16A) (Router)
[2024-11-11 17:26:02] info: z2m: Office Motion (0x00124b00245c3459): SNZB-03 - SONOFF Motion sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Techroom Motion (0x00124b00245c42c3): SNZB-03 - SONOFF Motion sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Bedroom Bed Button (0x00124b0024ce56bf): SNZB-01 - SONOFF Wireless button (EndDevice)
[2024-11-11 17:26:02] info: z2m: Bedroom Bed LED (0xa4c138fc2205128c): ZB-RGBCW - Lonsonho Zigbee 3.0 LED-bulb, RGBW LED (Router)
[2024-11-11 17:26:02] info: z2m: Bedroom Light (0x60a423fffee5924e): TS0601_dimmer_1_gang_1 - Tuya 1 gang smart dimmer (Router)
[2024-11-11 17:26:02] info: z2m: Entryway Button (0x00124b0023973606): SNZB-01 - SONOFF Wireless button (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen Light Sensor (0x04cf8cdf3c7d2da6): GZCGQ01LM - Xiaomi Mi light sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Kitchen Motion (0x00124b00245d3a1f): SNZB-03 - SONOFF Motion sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Sauna Door (0x00158d0008391766): MCCGQ11LM - Aqara Door and window sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Sauna Temperature (0x00158d0006beadb6): WSDCGQ11LM - Aqara Temperature and humidity sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Sauna Light (0xa4c138b97a566f82): TS0001_switch_module - Tuya 1 gang switch module (Router)
[2024-11-11 17:26:02] info: z2m: 0x00124b0024452332 (0x00124b0024452332): SNZB-04 - SONOFF Contact sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: A1 Mini Temperature (0x00158d0006beae45): WSDCGQ11LM - Aqara Temperature and humidity sensor (EndDevice)
[2024-11-11 17:26:02] info: z2m: Currently 42 devices are joined.
[2024-11-11 17:26:02] info: z2m: Zigbee: disabling joining new devices.
[2024-11-11 17:26:02] info: z2m: Connecting to MQTT server at mqtt://192.168.1.25:1883
[2024-11-11 17:26:03] info: z2m: Connected to MQTT server
[2024-11-11 17:26:03] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/bridge/state', payload '{"state":"online"}'
[2024-11-11 17:26:04] info: z2m: Started frontend on port 8099
[2024-11-11 17:26:05] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/bridge/state', payload '{"state":"online"}'
[2024-11-11 17:26:05] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/Bathroom Presence', payload '{"cli":" ","detection_delay":0,"fading_time":30,"illuminance_lux":3,"linkquality":76,"maximum_range":3.3,"minimum_range":0,"presence":false,"radar_sensitivity":7,"self_test":"check_success","target_distance":0}'
SLZB-06 log:
[07:44:05] ConfigHelper | write config
[07:44:05] ConfigHelper | config saved
[07:44:59] taskZB | New client: 192.168.1.25 id: 0
[17:00:58] taskZB | Client disconnected, id: 0
[17:26:01] taskZB | New client: 192.168.1.25 id: 0
[17:50:01] ConfigHelper | write config
[17:50:01] ConfigHelper | config saved
zigbee2mqtt addon config:
data_path: /config/zigbee2mqtt_eth
socat:
enabled: true
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:
server: mqtt://192.168.1.25:1883
user: hass
password: xxxxxxxxxx
base_topic: z2m_eth
serial:
port: tcp://192.168.1.70:6638
baudrate: 115200
adapter: zstack
disable_led: true
I tried changing a setting on SLZB-06, which requires a restart, and this is how a controlled restart looks from HA’s perspective:
[2024-11-11 17:55:28] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/Nursery thermostat ', payload '{"child_lock":null,"current_heating_setpoint":24,"deadzone_temperature":null,"heat":"OFF","linkquality":98,"local_temperature":23.5,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"preset":"program","preset_mode":"program","program":null,"running_state":"idle","sensor":null,"system_mode":"heat"}'
[2024-11-11 17:56:15] error: zh:zstack:znp: Socket error Error: read ECONNRESET
[2024-11-11 17:56:15] info: zh:zstack:znp: Port closed
[2024-11-11 17:56:15] info: zh:zstack:znp: closing
[2024-11-11 17:56:15] error: z2m: Adapter disconnected, stopping
[2024-11-11 17:56:15] info: z2m:mqtt: MQTT publish: topic 'z2m_eth/bridge/state', payload '{"state":"offline"}'
[2024-11-11 17:56:15] info: z2m: Disconnecting from MQTT server
[2024-11-11 17:56:15] info: z2m: Stopping zigbee-herdsman...
[2024-11-11 17:56:15] info: z2m: Stopped zigbee-herdsman
[2024-11-11 17:56:15] info: z2m: Stopped Zigbee2MQTT
[18:00:54] INFO: Preparing to start... <-- Z2M "Start" manually pressed
I’d be thankful for any thoughts on where else to look or what to try.