c0ntax
(Martin)
August 29, 2020, 9:59pm
1
I’m wanting to create a group of power points that I have and have tried to follow the guidance here:
HA Groups
However, I get as far as typing in “group::” in configuration.yaml and the file editor shows an error.
Can someone please offer some guidance on this?
Yes, because you have two times a “:”
Can you please show your full configuration.yaml file? Is it possible that you have group:
already somewhere else in configuration.yaml? What error do you get?
c0ntax
(Martin)
August 29, 2020, 10:35pm
3
Hi. The double “::” was a typo in the post.
My config file is currently this:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
config:
frontend:
themes: !include_dir_merge_named themes
device_tracker:
- platform: bt_smarthub
smarthub_model: 2
homeassistant:
customize: !include customize.yaml
camera:
- platform: ffmpeg
name: Kitchen Cam
input: rtsp://[email protected] :[email protected] :554/stream1
light:
- platform: group
name: Kitchen Spots
entities:
- light.spot_1
- light.spot_2
- light.spot_3
- light.spot_4
- light.spot_5
- light.spot_6
- light.spot_7
- light.spot_8
- light.spot_recess
- light.spot_litter
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
nickrout
(Nick Rout)
August 29, 2020, 10:41pm
4
In groups.yaml
you don’t type groups:
again.
2 Likes
c0ntax
(Martin)
August 29, 2020, 10:45pm
5
Ah, so I need to place it in groups.yaml not configuration.yaml? Makes sense.
Thanks.
nickrout
(Nick Rout)
August 29, 2020, 10:57pm
6
You can either delete the !include line from configuration.yaml, and put groups in configuration.yaml, or you can keep the !include line and have a groups.yaml. The latter is preferable IMHO.
1 Like