I have this configuration error , however i cannot see anything in my config file on line 8 as it suggest ?
Can anyone place any light on the error please.
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homeassistant:
name: Home
latitude: 53.6314196
#Longitude: -2.326150
elevation: -163
unit_system: metric
time_zone: "Europe/London"
#external_url: "http://www.example.com"
internal_url: "http://192.168.0.73:8123"
You don’t define a Light Group within a group domain (which is what you have done by inserting it in groups.yaml ).
A Light Group is part of the light domain. Therefore it’s defined in configuration.yaml under the light: domain or in lights.yaml if you are using light: !include lights.yaml.
Move it out of groups.yaml to wherever all your other lights are currently defined.
Thanks you all for your input and advice , I have placed the group information in configuration .yaml. I will take note of all your suggestion and advice.
Yes the Light Groups i placed in configuration.yaml and all appears to OK. I am a newbie so learning all the time ??. I’ll leave a copy of the Light Group in Group.yaml. Yes . and read up more on groups and create a lights.yaml ?
It is the custom of this community forum to mark the post that answers your question with the Solution tag. Please consider marking my post (above) with the Solution tag. Only you, the author of this topic, can select one post to mark that you believe correctly identifies the source of the problem and offers a solution.
By marking it with the Solution tag, it will automatically place a check-mark next the topic’s title which signals to other users that this topic is resolved. It also automatically places a link below your first post that leads to the Solution post. All of this helps users find answers to similar questions.
To learn more about community guidelines, you can read the FAQ section.