Zigbee2MQTT configuration is not valid while trying to install SLZB-06U dongle

Hi, I am new to this forum and to HA so I’m not sure if this is enough information to answer my question. I am trying to install a Zigbee LAN Adapter SLZB-06U. My HA is running on a Wyse 5070 thin client. After following a few online youtube videos, I got I Zigbee2MQTT and MQTT installed. Then when trying to finish installation, I was taken to the Z2M Onboarding screen and couldn’t get past it. I deleted the line onboarding: true and still no joy.

My next step was to run the configuratrion file through the on line validator and it said I had a duplicate entry at line 22 (serial:). So I tried to comment that out and I don’t get the onboarding screen anymore, but now I am getting the error message “Zigbee2MQTT configuration is not valid”. Here is the file both as text and screenshot since I’m not sure which is preferred. BTW, I tried to use the preformatted text tool bar <> but I don’t know if I did it right. Thanks for any suggestions!

version: 4
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: addons
  password: cheiQuohxeis2oadu3quai4uvah8aeshe1thohzoabeiPaechiequajaeVa9Ohk0
serial: {}
advanced:
  transmit_power: 20
  log_level: info
  channel: 11
  network_key: GENERATE
  pan_id: GENERATE
  ext_pan_id: GENERATE
frontend:
  enabled: true
  port: 8099
homeassistant:
  enabled: true

# Pay attention, if you use the Z2M addon for HA, it is better to edit Z2M addon yaml configuration file directly (Select the 3 dot menu in the upper right corner → "Edit in YAML")
# try commenting this line out to fix error serial:
# Location of SLZB-06U
  port: tcp://192.168.1.64:6638
  baudrate: 115200
  adapter: zstack
# Disable green led?
  disable_led: false
# Set output power to max 20

Did you actually generate these, or did you leave the word GENERATE in there? Actual values are needed here, and they are like passwords so don’t show them to us.

I did not generate them, and to be honest, I don’t know how any of that code got there (lines 1 through19). The only thing I specifically added was lines 21 through 29 while going through the installation of MQTT and Z2M.

Is the network_key the same as my wifi password?
What are pan_id and ext_pan_id?

I found this discussion and it partially answered my first question, but not the pan_id and ext_pan_id and how to best change any of them.

no.
You need to read up on this if you are going to install it. I suggest you try installing ZHA which is closer to built in and gives you less gotcha’s to trip you up.

Thanks, I will go with ZHA. Before I do, is there a way to completely delete Z2M? I removed it from integrations, but it still shows up in my sidebar and the configuration.yaml file is still there. Same with MQTT. Or should I just reinstall HA and start from scratch? I’ve read some people have issues with unused integrations.

If you remove the add-on and restart, it should be gone.

Thank you. I was able to remove it, but the way I was doing it was based on older versions of HA I guess. Instead of clciking on the 3 dots in upper right, there is an uninstall option at the bottom right of the screen.

I also had to manually delete the configuration.yaml file for Z2M. I used File Editor for that. Do you think that removes all traces of Z2M and MQTT?

BTW, the configuration.yaml file changed once I deleted Z2M. It looked like this (passwords partially removed). Any idea why it still showed the line “adapter: zstack” near the bottome? I thought zstack was for USB adapters (mine is LAN).

version: 4
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: addons
  password: cheiQuohxeis2oadu3quai4uvah8aeshe1thohzoabeiPaechiequajaeVa9Ohk0
serial: {}
advanced:
  transmit_power: 20
  log_level: info
  channel: 11
  network_key:
    - xxx
    - 135
    - xxx
    - 234
    - xxx
    - xxx
    - 190
    - 85
    - xxx
    - 47
    - 229
    -xxx
    - xxx
    - xxx
    - xxx
    - 10
  pan_id: xxx
  ext_pan_id:
    - xxx
    -xxx
    - 185
    - xxx
    - xxx
    - xxx
    - 15
    - 82
frontend:
  enabled: true
  port: 8099
homeassistant:
  enabled: true
  port: tcp://192.168.1.64:6638
  baudrate: 115200
  adapter: zstack
  disable_led: false

Adapter: zstack refers to the zigbee chip (made by Texas instruments) inside a coordinator, not the connection method.

Plenty of LAN adapters use zstack zStack adapters (Texas Instruments) | Zigbee2MQTT

GENERATE is a valid config for those 3 keys. Zigbee network | Zigbee2MQTT

1 Like

Good to know, thanks.

Roger that. I should know not to trust AI.

PS- in case you wanna give it another shot. The error you got was because you removed the wrong serial: line & had port, baudrate & adapter listed under homeassistant:.

Yaml is extremely sensitive to spacing and AI doesn’t know shit. Ironically, using the onboarding page would have avoided all these issues.

In case you wanna take another stab, this is how the config file should have been written:

version: 4
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: addons
  password: cheiQuohxeis2oadu3quai4uvah8aeshe1thohzoabeiPaechiequajaeVa9Ohk0
#serial: {}  #DELETE THIS LINE. It's empty & missing the required properties.
advanced:
  transmit_power: 20
  log_level: info
  channel: 11
  network_key: GENERATE
  pan_id: GENERATE
  ext_pan_id: GENERATE
frontend:
  enabled: true
  port: 8099
homeassistant:
  enabled: true

# AI sucks. It recommended to remove the duplicate instead of the original, without noticing that all the important serial info was here. Add serial back
serial:
  port: tcp://192.168.1.64:6638
  baudrate: 115200
  adapter: zstack
  #disable_led: false    You don't need this. Default is false anyway.
1 Like

Thanks ShadowFist, it worked! I reinstalled MQTT and Z2M after deleting everthing, then corrected the configuration.yaml file per your suggestions. Then Z2M brought me back to the Onboarding screen. I took a chance and copied the coordinator path from the config file and pasted it into the onboarding drop down and bingo! Not sure why I had to do that, but happy it is running. Thanks again!!!

1 Like

Two follow up questions.

  1. Should the SLZB show up under system, hardware? I don’t see it, although I do have two lights on the dongle (organge and red) where before I only had orange.

  2. In my integrations, there are two instances of Zigbee SLZB-06 integrations discovered. Is it necessary to add them? I don’t want to do anything that will mess it up now that it is working.

Press Ignore on the last one (the one on the left). That’s ZHA - it’ll cause conflicts with Z2M if it ever runs using the same coordinator.
Hell, check if there’s a delete option in those 3 dots. If there is, go ahead & delete it.

The integration which says Smlight (the one on the right) should be safe to add. I don’t own 1 myself, but I believe that’s the interface where you can set the coordinator settings & update firmware.

You were right. I ignored the last one and added the SMlight. Below is what it looks like, if anyone else comes across this thread.

Also, I was editing my question when you replied, so I have another question. Should the SLZB show up under system, hardware? I don’t see it, although I do have two lights on the dongle (organge and red) where before I only had orange

I don’t think so. Hardware only shows directly connected hardware.
Since you’re connected to it via ethernet & not via usb, it won’t show up.

Makes sense, thanks again!