#group lights YAML
1 messages · Page 1 of 1 (latest)
@indigo comet i get an error when trying this, but the one difference on my end is my reference to light: is in my configuration.yaml as light: !include lights.yaml and in that file, i have multiple light groups as in your example but this produces an error contains duplicate key "group"
that means you have multiple group: keys
well, yes, i have groups in another file, but i thought usage of light: > group > ... was separate (no conflict) with regular groups
Can I use both regular groups (for non-lights) and light groups simultaneously?
or maybe i should ask How?
it is. I don't think that message is related to your light groups
a "key" is a technical term. It's the thing before the ":"
in any case, I just put the config above in my instance, added the entitities key that was missing, and it works fine
- platform: group
name: foo
entities:
- light.cr_closet_light
- platform: group
name: foo2
entities:
- light.cr_light
gotcha, so I can list lights within my yaml file:
light: !include lights.yaml```
still learning the ins & outs of templates. plz go easy on me!
yes, I have that in configuration.yaml and the above content in lights.yaml
so my lights.yaml file will be something like
light_group_one:
- platform: group
name: Group 1 Name
entities:
- light.a
- light.b
light_group_two:
- platform: group
name: Group 2 Name
entities:
- light.c
- light.d
``` ??
oh, i see, the source was multiple references to group: in my configuration.yaml file. All square now!
ok