When I try to create a group in the groups.yaml file I get the following error:
Invalid config for [group]: [jonandsheila] is an invalid option for [group]. Check: group->group->group->jonandsheila. (See /config/configuration.yaml, line 8).
Below is my entry in the groups.yaml file and below that is my configuration.yaml file.
# Example groups.yaml entry
group:
jonandsheila:
name: Jon and Sheila
entities:
- device_tracker.life360_jon
- device_tracker.life360_sheila
I don’t understand the error as line 8 in my configuration.yaml file is a blank line
Below is a cut and paste of pertinent section of my configuration.yaml file:
You’re pointing to the group in your configuration.yaml, but then in group.yaml you’re also using group:, this is one group: too much.
Try:
configuration.yaml:
I was under the impression that I have put a bunch of different entities under one group and call that group in the code to automate something. In this case, I want to turn on all the lights at a certain time for all the lights in the group.
- id: basementLightsOffTest
alias: Family Room Lift Turned On At Sunset
trigger:
- platform: time
at: "17:25:00"
action:
# Turn on the lights
- service: light.turn_on
entity_id: group.basement_lights
But I still suspect you have / had some other issues. The original group should have worked. Go to developer tools, services, choose light.turn_on service and as the entity your light.kitchen_lights, call the service. What happens?