Trouble with light groups config

Sorry been trying to get the following to work but something is formatted wrong, I cant for the life of me figure out what:

Light:
- platform: hue
  allow_hue_groups: false
- platform: group
  - name: Outdoor lights
    entities:
    - light.frontdoor
    - light.fronthouse_left
    - light.fronthouse_right
    - light.fronthouse_top
  - name: Garden lights
    entities:
    - light.sidehouse
    - light.backhouse_left
    - light.backhouse_right
  - name: Garden spots
    entities:  
    - light.outside_spot_1
    - light.outside_spot_2

3 things:

  1. You capitalized light. Thats not correct.
  2. Spacing was off
  3. Nothing in the documentation points to the fact that you can have multiple names under the singular platform. I do not know if that is correct, but going off the documentation, I would assume that only 1 group per platform. Otherwise the documentation would specify it with a ‘groups’ section or something of the like.

With all that being said, this should work for you:

light:
  - platform: hue
    allow_hue_groups: false
  - platform: group
    name: Outdoor lights
    entities:
      - light.frontdoor
      - light.fronthouse_left
      - light.fronthouse_right
      - light.fronthouse_top
  - platform: group
    name: Garden lights
    entities:
      - light.sidehouse
      - light.backhouse_left
      - light.backhouse_right
  - platform: group
    name: Garden spots
    entities:  
      - light.outside_spot_1
      - light.outside_spot_2