Error when splitting up configuration

Hi everyone,

I’m getting errors when splitting up the configuration:

ERROR (MainThread) [homeassistant.config] Invalid config for [zone]: required key not provided @ data[‘latitude’]. Got None
required key not provided @ data[‘longitude’]. Got None. (See /config/configuration.yaml, line 112). Please check the docs at https://home-assistant.io/components/zone/

  • configuration.yaml has this entry as per the instructions on https://home-assistant.io/docs/configuration/splitting_configuration/

    group: !include groups.yaml
    automation: !include automations.yaml
    zone: !include zones.yaml

  • zones.yaml has only one zone as per sample:

    zone:
    name: Home
    latitude: 32.8793367
    longitude: -117.2474053
    radius: 100
    icon: mdi:account-multiple

What am I doing wrong?

you already have the definition for ZONE in your configuration.yaml, so you don’t re-specify it in zones.yzml

Just take out the zone: line. (i’m assuming all your other spacing is correct, but it’s impossible to say without formatting)

2 Likes

Thanks! it’s working now.

I was defining zone again in zones.yaml

Thanks again!