Hi All - I really hope somebody can help me…
I am new to HA and pretty new to programming.
I want to group 5 lights above a dining table into a light group - they are dimmable and you can change the white tone…
Research shows that Light Group is my best option.
I have tried 2 methods to program using file editor:
Directly in configuration.yaml and in a new file called Light_Groups.yaml. content is the same - i reboot the server but I am getting no new entity - can anybody check if I am doing something wrong?
light:
platform: group
name: “Dining Table Lights”
entities:
Did you restart after the change? Because the error says that it’s still uppercase. Can you show the whole code again please? And please highlight the code and press the button </> at the top here in the forum.
Then paste this directly into your configuration.yaml with the first line aligned completely to the left of the page, and preserving the indentation of the lines below exactly.
I think it might help to add a little more here for those new…
Read through this article:
For those in a hurry, scroll down to Nesting !includes.
I’m going to place those examples here as well:
light:
- platform: group
name: "Bedside Lights"
entities:
- light.left_bedside_light
- light.right_bedside_light
# define more light groups in a separate file
light groups: !include light-groups.yaml
# define some light switch mappings in a different file
light switches: !include light-switches.yaml
The above snippet, is directly in our configuration.yaml file. Please note the light in front of the groups part where we bring switches and groups in. That is important, because that means our next YAML files should not have a “light” object in them, but in fact, everything inside of them should be 1 level lower.