Simple light script help

HI all,

Ive been playing around with hass.io on my Raspberry pi 3 for the last week and am slowly getting use to it, although I still am struggling with a couple of basic things.

I’m trying to create a script to turn off selected lights and turn on some lights, also specifying brightness and colour.

Here is what I am playing around with, I have no idea if this is anywhere near right! Any help would be much appreciated.

movie:
  alias: Movie Time
  sequence:
    - service: light.turn_on
      data:
        entity_id: group.living_room
        brightness: 100
	    rgb_color: 179,255,251
        entity_id: group.kitchen
        brightness: 100
	    rgb_color: 179,255,251
    - service: light.turn_off
      data:
        entity_id: group.bedroom

Thanks

I believe you can specify multiple entity_ids on one line, so tell me if this works:

movie:
  alias: Movie Time
  sequence:
    - service: light.turn_on
      data:
        entity_id: group.living_room, group.kitchen
        brightness: 100
        rgb_color: 179,255,251
    - service: light.turn_off
      data:
        entity_id: group.bedroom

Hmm for some reason its not working when I activate the script. I have checked to make sure the entity names are correct (also also changed them to a single light) with no luck.

Not getting any errors either.

EDIT: figured out what was stopping it from working. Had to add [ ] to the rgb colour.

Thanks

Glad you got it figured out, and thanks for reporting back with your solution.