Trouble configuring scene

Hello,
New to the forums, RP and home assistant. I have spent a large part of the morning working on scenes and cannot get past the config check. I have tried dozens of variations. Any help would be appreciated.
Version info: Home Assistant 0.61.1 on RP3

  - name: Test
    entities:
      light.hue_color_lamp_1:
      state: off
      brightness: 120
      xy_color: [ 0.33, 0.66 ]

Current error
2018-01-27 12:51:41 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
Failed config
scene:
- entities: [source /config/configuration.yaml:166]
brightness: 120
light.hue_color_lamp_1: None
state: False
xy_color: [source /config/configuration.yaml:169]
- 0.33
- 0.66
name: Test

Successful config (partial)
scene:

Move the last three lines right two spaces.

I think you have two problems:

  • spacing as mentioned by @anon43302295
  • in the 4th line the state should be “on” instead of “off”, as off is really just off and you can’t put parameters to it.

if that still doesn’t work I would start as small as possible by commenting lines out, and then gradually add one line at a time, that way you can see where the error starts.

Thank you for the response. The spacing worked. I should have known better. I had tried so many variations that I lost track. I tried toggling the on off and they both validated.
here is the valid config.

  - name: Test
    entities:
      light.hue_color_lamp_1:
        state: on
        brightness: 120
        xy_color: [ 0.33, 0.66 ]