Create Group -Mapping Values Not Found

  LightDownstairs
    - name: Downstairs 
        entities:
          - light.1f_kitchen_stove_east
          - light.1f_lc_living_room_south
          - light.1f_lc_living_room_east
          - light.1f_lc_living_room_hallway
          - light.1f_livingroom_3_head_lamp_bot
          - light.1f_livingroom_3_head_lamp_top
          - light.1f_livingroom_3_head_lamp_mid
    
   LightUpstairs
     - name: Upstairs
         entities:
           - light.2f_bedroom_lamp
           - light.2f_bedroom_lamp_mid
           - light.2f_bedroom_lamp_top
           - light.2f_bedroom_mini_lamp
           - light.2f_lc_bedroom_bay_window
           - light.2f_lc_living_room_east
           - light.2f_lc_living_room_se
           - light.2f_lc_work_area_north
           - light.2f_work_overhead_area

Getting this error.

General Errors:
- Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 6, column 11

Are the hyphens in the right place? Only thing Ican think of is wrong but every example I’ve seen online seems to follow this format.

Entities should be inline with name. There should be no dash in front of name.

Look at the examples:

Oooof. Man that’s an oversight. Thanks!

So I fixed that and now I’m getting this error code

  group: 
    - Invalid config for [group]: value should be a string for dictionary value @ data['group']['lightdownstairs']['entities']. Got None
value should be a string for dictionary value @ data['group']['lightupstairs']['entities']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 4). Please check the docs at https://home-assistant.io/components/group/
    - default_config: ?
      group: [source /home/homeassistant/.homeassistant/configuration.yaml:4]
        lightdownstairs: [source /home/homeassistant/.homeassistant/configuration.yaml:5]
          - entities: [source /home/homeassistant/.homeassistant/configuration.yaml:7]
              - light.1f_kitchen_stove_east
              - light.1f_lc_living_room_south
              - light.1f_lc_living_room_east
              - light.1f_lc_living_room_hallway
              - light.1f_livingroom_3_head_lamp_bot
              - light.1f_livingroom_3_head_lamp_top
              - light.1f_livingroom_3_head_lamp_mid
            name: Downstairs
        lightupstairs: [source /home/homeassistant/.homeassistant/configuration.yaml:16]
          - entities: [source /home/homeassistant/.homeassistant/configuration.yaml:18]
              - light.2f_bedroom_lamp
              - light.2f_bedroom_lamp_mid
              - light.2f_bedroom_lamp_top
              - light.2f_bedroom_mini_lamp
              - light.2f_lc_bedroom_bay_window
              - light.2f_lc_living_room_east
              - light.2f_lc_living_room_se
              - light.2f_lc_work_area_north
              - light.2f_work_overhead_area
            name: Upstairs
      script: ?

Here’s the modified script compensating for the misaligned entities

That still looks nothing like the example.

Whoops. Pasted the error message when I meant to paste the code.

group:
  lightdownstairs:
    - name: Downstairs 
      entities:
        - light.1f_kitchen_stove_east
        - light.1f_lc_living_room_south
        - light.1f_lc_living_room_east
        - light.1f_lc_living_room_hallway
        - light.1f_livingroom_3_head_lamp_bot
        - light.1f_livingroom_3_head_lamp_top
        - light.1f_livingroom_3_head_lamp_mid
    
  lightupstairs:
    - name: Upstairs
      entities:
        - light.2f_bedroom_lamp
        - light.2f_bedroom_lamp_mid
        - light.2f_bedroom_lamp_top
        - light.2f_bedroom_mini_lamp
        - light.2f_lc_bedroom_bay_window
        - light.2f_lc_living_room_east
        - light.2f_lc_living_room_se 
        - light.2f_lc_work_area_north
        - light.2f_work_overhead_area

That’s the edited code. The above post is the error code

I guess I’ll try…

Here is yours:

group:
  lightdownstairs:
    - name: Downstairs 
      entities:
        - light.1f_kitchen_stove_east
        - light.1f_lc_living_room_south
        - light.1f_lc_living_room_east
        .
        .
  lightupstairs:
    - name: Upstairs
      entities:
        - light.2f_bedroom_lamp
        - light.2f_bedroom_lamp_mid
..
..

Here is how it looks in the example ion the docs that Tom linked to above:

group:
  kitchen:
    name: Kitchen
    entities:
      - switch.kitchen_pin_3
  climate:
    name: Climate
    entities:
      - sensor.bedroom_temp
      - sensor.porch_temp

hopefully you can see the difference.

Yes! I do.

Thanks so much. Fixed!

Sorry, I’ve been known to rush thing when I"m excited about new projects. Need to remember to slow down…