ZHA additional property error YAML

Hello, i’m new here!
I’m trying to setup up ZHA changing the YAML configuration adding the following:

zha:
zigpy_config:
network:
channel: 15
channels: [15, 20, 25]

But when i go to execute the following command:

docker compose up -d

I have always the same error:
Additional property zigpy_config is not allowed

Where is the problem? Help me please!

According to the documentation, it should appear like this (the indentation is required).

zha:
  zigpy_config:
    network:
      channel: 15
      channels: [15, 20, 25]

Thank you Taras but i’ve used the right indentation :frowning: here my yaml file:

version: '3.9'
services:
  home-assistant:
    container_name: home-assistant
    image: ghcr.io/home-assistant/home-assistant:stable
    volumes:
    - /home/daniele/homeassistant:/config
    - /run/dbus:/run/dbus:ro
    devices:
    - /dev/ttyUSB0:/dev/ttyUSB0
    environment:
    - TZ=Europe/Rome
    network_mode: host
    restart: always


  mosquitto:
    container_name: mosquitto
    image: eclipse-mosquitto
    volumes:
    - "/srv/mosquitto/config:/mosquitto/config"
    - "/srv/mosquitto/log:/mosquitto/log"
    - "/srv/mosquitto/data/:/mosquitto/data"
    restart: always
    ports:
    - "1883:1883"

  zha:
    zigpy_config:
      network:
         channel: 15
         channels: [15, 20, 25]

Any other ideas? :frowning:

The information shown in ZHA’s documentation is meant to be entered in Home Assistant’s configuration.yaml file.

You appear to have put it into your docker-compose file.

damn… why am i so stupid? :smiley: Thank you very much Taras.

You’re welcome!

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.

For more information about the Solution tag, refer to guideline 21 in the FAQ.