Smlight SLZB-06M with zigbee2mqtt

smlight SLZB-06M with zigbee2mqtt
I mention the coordinator, because it explains why i try to use mqtt instead of zha, im not sure my problem has anything to do with the coordinator. Zha is connected to a usb coordinator, but i need a networked coordinator to control a remote part of my home. Im running 2 Home Assistant servers, but would like to use only one…

When i installed mosquito and tried to reconfigure the integration, with a new user/password, i got the connection failed error message. But when i run with the default user: “homeassistant” and password, it seems to work.

Starting zigbee2mqtt fails with this logmessages:

[11],"extendedPanID":[158,24,138,111,245,59,153,124],"networkKey":"HIDDEN","panID":26756},"serialPort":{}}'
2024-01-20T15:07:02.851Z zigbee-herdsman:adapter No path provided, auto detecting path
Zigbee2MQTT:error 2024-01-20 16:07:02: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-01-20 16:07:02: Failed to start zigbee
Zigbee2MQTT:error 2024-01-20 16:07:02: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2024-01-20 16:07:02: Exiting...
Zigbee2MQTT:error 2024-01-20 16:07:02: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

Hos do i solve this? Is it the herdsman problem which make it refuse to start?

It looks like you are not providing any configuration to Z2M as to where to find your coordinator device, so it’s trying to auto-detect it but doesn’t find anything.

EDIT: The actual error you are seeing is due to udevadm failing to launch, which is part of the auto-detection process which happens because no coordinator path is configured.

1 Like

In the serial section of z2m i have:

serial:
  port: tcp://192.168.0.90:6638
  baudrate: 115200
  adapter: ezsp
  disable_led: false
advanced:
  transmit_power: 20

Isnt that enough? The guys from Smlight say that its better to paste above into the configuration.yaml file, which could suggest that the ui for zigbee2mqtt doesnt necessary work… So the next i will do, is to check the content of the yaml file!

Is it possible to copy text from the nano editor in the terrminal, alt and ctrl+6 only seems to copy, inside the terminal, but i want to copy it to this page, but cant find a way!!??

have come a little further. This is the content of the configuration.yaml file:

homeassistant: true
advanced:
  network_key:
    - 164
    - 7
    - 169
    - 81
    - 246
    - 231
    - 149
    - 53
    - 83
    - 112
    - 113
    - 51
    - 243
    - 65
    - 174
    - 235
  pan_id: 26756
  ext_pan_id:
    - 158
    - 24
    - 138
    - 111
    - 245
    - 59
    - 153
    - 124

mqtt:
  server: mqtt://core-mosquitto:1883
  user: Something
  password: Something else
frontend:
  port: 8099
serial:
# Location of SLZB-06M
  port: tcp://192.168.0.90:6638
  baudrate: 115200
  adapter: ezsp
# Disable green led?
  disable_led: false
# Set output power to max 20
  advanced:
    transmit_power: 20

I dont know what the homeassistant; True and alle the keys are - should i delete these? I tried to dele everything but the mqtt section, but the errors in the log seems to be the same:

[18:31:27] INFO: Preparing to start...
[18:31:27] INFO: Socat enabled
[18:31:27] 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
[18:31:27] INFO: Starting socat process ...
2024/01/21 18:31:27 socat[47] N PTY is /dev/pts/0
2024/01/21 18:31:27 socat[47] N listening on AF=2 0.0.0.0:8485
[18:31:27] INFO: Zigbee Herdsman debug logging enabled
[18:31:28] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2024-01-21 18:31:30: Can't load state from file /config/zigbee2mqtt/state.json (doesn't exist)
Zigbee2MQTT:info  2024-01-21 18:31:30: Logging to console and directory: '/config/zigbee2mqtt/log/2024-01-21.18-31-30' filename: log.txt
Zigbee2MQTT:debug 2024-01-21 18:31:30: Removing old log directory '/config/zigbee2mqtt/log/2024-01-20.15-55-14'
Zigbee2MQTT:info  2024-01-21 18:31:30: Starting Zigbee2MQTT version 1.35.1 (commit #unknown)
Zigbee2MQTT:info  2024-01-21 18:31:30: Starting zigbee-herdsman (0.30.0)
Zigbee2MQTT:debug 2024-01-21 18:31:30: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"ezsp","baudRate":115200,"path":"tcp://192.168.0.90:6638"}}'
2024-01-21T17:31:30.178Z zigbee-herdsman:adapter:ezsp:debg Adapter concurrent: 8
2024-01-21T17:31:30.179Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"baudRate":115200,"path":"tcp://192.168.0.90:6638","adapter":"ezsp"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2024-01-21T17:31:30.180Z zigbee-herdsman:adapter:ezsp:uart Opening TCP socket with 192.168.0.90:6638
2024-01-21T17:31:30.185Z zigbee-herdsman:adapter:ezsp:uart Socket connected
2024-01-21T17:31:30.185Z zigbee-herdsman:adapter:ezsp:uart Socket ready
2024-01-21T17:31:30.186Z zigbee-herdsman:adapter:ezsp:uart Uart reseting
2024-01-21T17:31:30.186Z zigbee-herdsman:adapter:ezsp:uart --> Write reset
2024-01-21T17:31:30.187Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e]
2024-01-21T17:31:30.187Z zigbee-herdsman:adapter:ezsp:uart -?- waiting reset
2024-01-21T17:31:30.194Z zigbee-herdsman:adapter:ezsp:uart <-- [c038bc7e]
2024-01-21T17:31:30.195Z zigbee-herdsman:adapter:ezsp:uart <-- RST:  c038bc7e
2024-01-21T17:31:30.388Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032360d0a0d0a]
2024-01-21T17:31:30.655Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031310d0a0d0a]
2024-01-21T17:31:30.920Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031320d0a0d0a]
2024-01-21T17:31:31.187Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031330d0a0d0a]
2024-01-21T17:31:31.455Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031340d0a0d0a]
2024-01-21T17:31:31.721Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031350d0a0d0a]
2024-01-21T17:31:31.987Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031360d0a0d0a]
2024-01-21T17:31:32.254Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031370d0a0d0a]
2024-01-21T17:31:32.521Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031380d0a0d0a]
2024-01-21T17:31:32.787Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031390d0a0d0a]
2024-01-21T17:31:33.055Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032300d0a0d0a]
2024-01-21T17:31:33.322Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032310d0a0d0a]
2024-01-21T17:31:33.594Z zigbee-herdsman:adapter:ezsp:uart <-- [4e574b205374656572696e672053746174653a205363616e205072696d617279204368616e6e656c7320616e6420557365204469737472696275746564204b65790d0a0d0a]
2024-01-21T17:31:33.597Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031350d0a0d0a]
2024-01-21T17:31:33.864Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031360d0a0d0a]
2024-01-21T17:31:34.130Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031370d0a0d0a]
2024-01-21T17:31:34.398Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031380d0a0d0a]
2024-01-21T17:31:34.664Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031390d0a0d0a]
2024-01-21T17:31:34.931Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032300d0a0d0a]
2024-01-21T17:31:35.199Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032310d0a0d0a]
2024-01-21T17:31:35.465Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032320d0a0d0a]
2024-01-21T17:31:35.734Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032330d0a0d0a]
2024-01-21T17:31:36.004Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032340d0a0d0a]
2024-01-21T17:31:36.271Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032350d0a0d0a]
2024-01-21T17:31:36.536Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032360d0a0d0a]
2024-01-21T17:31:36.804Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031310d0a0d0a]
2024-01-21T17:31:37.072Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031320d0a0d0a]
2024-01-21T17:31:37.339Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031330d0a0d0a]
2024-01-21T17:31:37.607Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031340d0a0d0a]
2024-01-21T17:31:37.877Z zigbee-herdsman:adapter:ezsp:uart <-- [4e574b205374656572696e672053746174653a205363616e205365636f6e64617279204368616e6e656c7320616e6420557365204469737472696275746564204b65790d0a0d0a]
2024-01-21T17:31:37.880Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031390d0a0d0a]
2024-01-21T17:31:38.147Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032300d0a0d0a]
2024-01-21T17:31:38.415Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032310d0a0d0a]
2024-01-21T17:31:38.681Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032320d0a0d0a]
2024-01-21T17:31:38.948Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032330d0a0d0a]
2024-01-21T17:31:39.215Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032340d0a0d0a]
2024-01-21T17:31:39.482Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032350d0a0d0a]
2024-01-21T17:31:39.750Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2032360d0a0d0a]
2024-01-21T17:31:40.017Z zigbee-herdsman:adapter:ezsp:uart <-- [5374617274696e67207363616e206f6e206368616e6e656c2031310d0a0d0a]
2024-01-21T17:31:40.189Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":-1} after 10000ms
2024-01-21T17:31:40.190Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 0
2024-01-21T17:31:40.190Z zigbee-herdsman:adapter:ezsp:driv Stop driver
2024-01-21T17:31:40.191Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp
2024-01-21T17:31:40.191Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2024-01-21T17:31:40.191Z zigbee-herdsman:adapter:ezsp:driv Close driver
Error: Reset error: Error: {"sequence":-1} after 10000ms
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:299:23
    at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)

This time i trie to set socat to true, but it didnt seem to make any difference!

Hi was also getting the same error. I noticed that I had a line for " adapter: Unknown" in the yaml code. I removed this and the service started.

/homeassistant/zigbee2mqtt/configuration.yaml

example code below all default config code:

serial:
port: tcp://192.168.68.72:6638
baudrate: 115200

Did you ever resolve this ? I have the same issue and I can’t get m2t to start due to the same error.

I have tried simplifying the serial adapter config to the above but no joy

I’ve been using one of these for several months now. Here’s my config (with usernames and passwords elided):

homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  # I'm using a weird setup. I'm running zigbee2mqtt in a k8s cluster,
  # which is why this host name looks so wack.
  # I'm also using vernemq instead of mosquitto because 
  # I wanted high availability
  server: mqtt://vernemq.vernemq.svc.cluster.local
serial:
  port: tcp://zigbee.foo.net:6638
  baudrate: "115200"
  adapter: ezsp
  disable_led: false
frontend:
  port: "8080"
  url: https://zigbee2mqtt.molecule.foo.net/
availability: true
advanced:
  transmit_power: "20"
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
  log_level: debug
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 514
    protocol: udp4
    type: '5424'
  last_seen: ISO_8601
device_options:
  legacy: false

SLZB-06M has Core firmware version v2.0.18, and Zigbee coordinator firmware version 20231030.

how does the configuration gonna look like when you plan to use 2 coordinators?

You can’t have 2 coordinators. It’s strictly one coordinator per installation.

If you want to use 2 coordinators you need another instance of Z2MQTT Edge or ZHA running.

SLZB-06s support a coordinator and multiple routers. Their browser GUI allows you flash the appropriate firmware.

1 Like

Multiple Adapter Setup

thx for your feedback, the user manual gives this instructions.