Refusing to start because configuration is not valid

Hi everyone,

Im brand new to this Home Assistant topic and now after 4 Weeks of trouble shooting I just dont know what to do.

It worked for about 1 Day without any issue. Installed multiple Door sensors to my Home and all good.

My setup:
Then I had to reconnect my dongle:
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231214201423-if00
I also installed the embar version on my dongle

Installed version: Home assistant on my Rasipi

2024.7.2
Latest version

2024.7.3

I also installed the embar version on my dongle

I though a restart would bring the magic back but now I get every time I try to start the “Zigbee2MQTT” this message:

!!!

[11:18:05] INFO: Preparing to start…
[11:18:06] INFO: Socat not enabled
[11:18:08] INFO: Starting Zigbee2MQTT…
Starting Zigbee2MQTT without watchdog.

!!!

  •        READ THIS CAREFULLY*
    

Refusing to start because configuration is not valid, found the following errors:
- devices/0x0017880108301d57/homeassistant/name must be string

If you don’t know how to solve this, read Configuration | Zigbee2MQTT

!!!

I have tried to change the path in many different ways but it somehow got trouble with the path where my Dongle is. Also changed the account name multiple times.

With the mqtt user, which I created, I struggle a bit or just dont know if its normal.

When I create a new User like = mqtt_user + password it gives me the tipical

"Success!

Options successfully saved. "

screen, but when I click on “reconfigure MQTT” to check if the password and everything is correct, I only see in the PW section = “password_not_changed”

I dont know if this has something to do with it. When I first experienced this issue the solution was to take the Owner account instead new created one, for whatever reason.

This is my config:

 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:
  server: mqtt://core-mosquito:1883
  user: user_mqtt
  password: Y<2qd:\E;)M6q2?Z
serial:
  port: /dev/ttyACM0
  adapter: ember
  baudrate: 115200
  rtscts: false

/homeassistant/zigbee2mqtt/configuration.yaml

homeassistant: true
advanced:
  network_key:
    - 252
    - 27
    - 136
    - 1
    - 56
    - 210
    - 46
    - 238
    - 255
    - 204
    - 124
    - 86
    - 32
    - 41
    - 152
    - 66
  pan_id: 39543
  ext_pan_id:
    - 181
    - 205
    - 31
    - 251
    - 231
    - 129
    - 104
    - 117
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: marv
  password: 2"2@5qf["Agg_~*R
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231214201423-if00
  adapter: ember
frontend:
  port: 8099
device_options:
  legacy: false
devices:
  '0x048727fffe4a3fa4':
    friendly_name: Dachfenster Mitte
  '0x048727fffe52b45e':
    friendly_name: Briefkasten
    identify_timeout: 12
  '0x048727fffe4a091b':
    friendly_name: '0x048727fffe4a091b'
  '0xb0c7defffe8d2d03':
    friendly_name: Schalter BĂźro
    simulated_brightness:
      delta: 20
      interval: 500
  '0x0017880109ba8bfe':
    friendly_name: LED-Streifen BĂźro
  '0x0017880108301d57':
    friendly_name: Stehlampe BĂźro
    homeassistant:
      name: null
    optimistic: true
  '0x1c34f1fffec3bad4':
    friendly_name: Tischlampe BĂźro
  '0x048727fffe4a8763':
    friendly_name: Sensor Dachfester KĂźche akku
  '0x048727fffe4a82f8':
    friendly_name: Sensor Dachfenster Wohnzimmer akku
permit_join: true

Please let me know if you need more informations.

Best,
User1990

*I also dont know how to post a code proparly and couldn´t find anything in the edit functions, sorry

Start by reading this: How to help us help you - or How to ask a good question

Can you show the contents of your configuration.yaml and devices.yaml (under the zigbee2mqtt folder)

1 Like

I don’t think this is a valid configuration, it must be something like this:

devices:
  '0x000d6ffffea93230':
    friendly_name: ikeaoutlet3
    retain: false
  '0x000d6ffffefd3bf8':
    friendly_name: ikeaoutlet4
    retain: false
1 Like

Okay there you go

hm okay, I just entered what people show in their videos. Can you give a link where I can read through, why it has to be like that?

Thanks!

No, you haven’t posted the contents of the files…?

See here:

there is no ‘name’ under the homeassistant key.

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:
  server: mqtt://core-mosquito:1883
  user: marv
  password: Y<2qd:\E;)M6q2?Z
serial:
  port: /dev/ttyACM0
  adapter: ember
  baudrate: 115200
  rtscts: false

thats whats inside my config under Zigbee2MQTT config

does this:

devices:
  '0x000d6ffffea93230':
    friendly_name: ikeaoutlet3
    retain: false
  '0x000d6ffffefd3bf8':
    friendly_name: ikeaoutlet4
    retain: false

mean that I have to give my dongle a name? Sorry Im just lost ^^

No, that looks correct. Try changing the password to something without all the special characters, see if that helps. also please check the configuration.yaml like I’ve asked (not the config in the GUI). It’s located in the same folder as the devices.yaml file.

image

1 Like

I have updated my notes, Thanks

Try removing this from configuration.yaml:

devices:
  '0x048727fffe4a3fa4':
    friendly_name: Dachfenster Mitte
  '0x048727fffe52b45e':
    friendly_name: Briefkasten
    identify_timeout: 12
  '0x048727fffe4a091b':
    friendly_name: '0x048727fffe4a091b'
  '0xb0c7defffe8d2d03':
    friendly_name: Schalter BĂźro
    simulated_brightness:
      delta: 20
      interval: 500
  '0x0017880109ba8bfe':
    friendly_name: LED-Streifen BĂźro
  '0x0017880108301d57':
    friendly_name: Stehlampe BĂźro
    homeassistant:
      name: null
    optimistic: true
  '0x1c34f1fffec3bad4':
    friendly_name: Tischlampe BĂźro
  '0x048727fffe4a8763':
    friendly_name: Sensor Dachfester KĂźche akku
  '0x048727fffe4a82f8':
    friendly_name: Sensor Dachfenster Wohnzimmer akku

When I try to add a new User and I enter the credentials it shows the following:

"## Broker options

Please enter the connection information of your MQTT broker.

Failed to connect"

Yeah, the issue is that you have manually defined the devices in a messy way. Add this to configuration.yaml and re-pair your devices, after you have deleted the section I pasted earlier.

devices:
  - devices.yaml

The problem part is this I think:

    homeassistant:
      name: null
    optimistic: true

Zigbee2MQTT LOG

[2024-07-28 15:30:33] info: 	z2m: 0x1c34f1fffec3bad4 (0x1c34f1fffec3bad4): LED1925G6 - IKEA TRADFRI bulb E12/E14/E17, color/white spectrum, globe, opal, 440/450/470 lm (Router)
[2024-07-28 15:30:33] info: 	z2m: Zigbee: disabling joining new devices.
[2024-07-28 15:30:33] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquito:1883
[2024-07-28 15:30:37] error: 	z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquito
[2024-07-28 15:30:37] error: 	z2m: MQTT failed to connect, exiting...
[2024-07-28 15:30:37] info: 	z2m: Stopping zigbee-herdsman...
[2024-07-28 15:30:37] info: 	zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'
[2024-07-28 15:30:37] info: 	zh:ember:queue: Request dispatching stopped; queue=0 priorityQueue=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Total frames: RX=68, TX=131
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   DATA frames : RX=67, TX=62
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   DATA bytes  : RX=657, TX=645
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=68
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash: Port closed.
[2024-07-28 15:30:37] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2024-07-28 15:30:37] info: 	zh:ember:ezsp: ======== EZSP stopped ========
[2024-07-28 15:30:37] info: 	zh:ember: ======== Ember Adapter Stopped ========
[2024-07-28 15:30:37] info: 	z2m: Stopped zigbee-herdsman
[15:34:43] INFO: Preparing to start...
[15:34:43] INFO: Socat not enabled
[15:34:46] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-28 15:34:52] info: 	z2m: Logging to console, file (filename: log.log)
[2024-07-28 15:34:52] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-07-28 15:34:52] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-28 15:34:52] info: 	zh:ember: Using default stack config.
[2024-07-28 15:34:52] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-07-28 15:34:52] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-07-28 15:34:52] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-07-28 15:34:52] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-07-28 15:34:52] info: 	zh:ember:uart:ash: Serial port opened
[2024-07-28 15:34:52] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-07-28 15:34:54] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-07-28 15:34:54] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-07-28 15:34:54] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-07-28 15:34:54] warning: 	zh:ember: [EzspConfigId] Failed to SET "ADDRESS_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-07-28 15:34:54] warning: 	zh:ember: [EzspConfigId] Failed to SET "SOURCE_ROUTE_TABLE_SIZE" TO "200" with status=ERROR_INVALID_VALUE. Firmware value will be used instead.
[2024-07-28 15:34:54] warning: 	zh:ember: [EzspConfigId] Failed to SET "MULTICAST_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-07-28 15:34:54] info: 	zh:ember: [STACK STATUS] Network up.
[2024-07-28 15:34:54] info: 	zh:ember: [INIT TC] NCP network matches config.
[2024-07-28 15:34:54] info: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2024-07-28 15:34:54] info: 	zh:ember:queue: Request dispatching started.
[2024-07-28 15:34:54] info: 	z2m: zigbee-herdsman started (resumed)
[2024-07-28 15:34:54] info: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":3,"revision":"7.4.3 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-07-28 15:34:54] info: 	z2m: Currently 9 devices are joined:
[2024-07-28 15:34:54] info: 	z2m: 0x048727fffe4a8763 (0x048727fffe4a8763): E2013 - IKEA PARASOLL door/window sensor (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0x048727fffe4a82f8 (0x048727fffe4a82f8): E2013 - IKEA PARASOLL door/window sensor (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0x048727fffe4a3fa4 (0x048727fffe4a3fa4): E2013 - IKEA PARASOLL door/window sensor (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0x048727fffe52b45e (0x048727fffe52b45e): E2013 - IKEA PARASOLL door/window sensor (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0x048727fffe4a091b (0x048727fffe4a091b): E2013 - IKEA PARASOLL door/window sensor (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0xb0c7defffe8d2d03 (0xb0c7defffe8d2d03): E2001/E2002 - IKEA STYRBAR remote control (EndDevice)
[2024-07-28 15:34:54] info: 	z2m: 0x0017880109ba8bfe (0x0017880109ba8bfe): 8718699703424 - Philips Hue white and color ambiance LightStrip plus (Router)
[2024-07-28 15:34:54] info: 	z2m: 0x0017880108301d57 (0x0017880108301d57): 9290022166 - Philips Hue white and color ambiance E26/E27 (Router)
[2024-07-28 15:34:54] info: 	z2m: 0x1c34f1fffec3bad4 (0x1c34f1fffec3bad4): LED1925G6 - IKEA TRADFRI bulb E12/E14/E17, color/white spectrum, globe, opal, 440/450/470 lm (Router)
[2024-07-28 15:34:54] info: 	z2m: Zigbee: disabling joining new devices.
[2024-07-28 15:34:54] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquito:1883
[2024-07-28 15:34:59] error: 	z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquito
[2024-07-28 15:34:59] error: 	z2m: MQTT failed to connect, exiting...
[2024-07-28 15:34:59] info: 	z2m: Stopping zigbee-herdsman...
[2024-07-28 15:34:59] info: 	zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'
[2024-07-28 15:34:59] info: 	zh:ember:queue: Request dispatching stopped; queue=0 priorityQueue=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Total frames: RX=68, TX=131
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   DATA frames : RX=67, TX=62
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   DATA bytes  : RX=657, TX=645
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=68
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash: Port closed.
[2024-07-28 15:34:59] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2024-07-28 15:34:59] info: 	zh:ember:ezsp: ======== EZSP stopped ========
[2024-07-28 15:34:59] info: 	zh:ember: ======== Ember Adapter Stopped ========
[2024-07-28 15:34:59] info: 	z2m: Stopped zigbee-herdsman

homeassistant/zigbee2mqtt/configuration.yaml

homeassistant: true
advanced:
  network_key:
    - 252
    - 27
    - 136
    - 1
    - 56
    - 210
    - 46
    - 238
    - 255
    - 204
    - 124
    - 86
    - 32
    - 41
    - 152
    - 66
  pan_id: 39543
  ext_pan_id:
    - 181
    - 205
    - 31
    - 251
    - 231
    - 129
    - 104
    - 117
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquito:1883
  user: mqtt_user
  password: password1234
serial:
  port: /dev/ttyACM0
  adapter: ember
  baudrate: 115200
  rtscts: false
frontend:
  port: 8099
device_options:
  legacy: false
devices:
  - devices.yaml


So now we are a step further, but still shuts down after a while

*user name and password updated

It can’t connect to your MQTT broker.

1 Like

after I type in the password its says sucessfull but if I click on it to double check I always get this at the password:

I just dont know why it wont take my PW but still gives me an ok

You have listed a user as marv in the configuration.yaml, and a user called mqtt_user in the screenshot.

1 Like

That has been fixed, I just took the screenshot too early.

user = mqtt_user
password = password1234

found it “mosquiTTo” not “mosquito”

Thanks you so much for your help on a holy sunday! You are a beast :slight_smile:

Have a nice one!

1 Like

Nice! Glad you found it and are up and running, have a great day you too :slight_smile: