#group lights YAML

1 messages · Page 1 of 1 (latest)

sage trail
#

@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"

warm steppe
#

that means you have multiple group: keys

sage trail
#

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?

warm steppe
#

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
sage trail
#

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!

warm steppe
#

yes, I have that in configuration.yaml and the above content in lights.yaml

sage trail
#

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
``` ??
warm steppe
#

no

#

compare with mine above

#

it's not that

sage trail
#

oh, i see, the source was multiple references to group: in my configuration.yaml file. All square now!

warm steppe
#

ok