Its almost Christmas and i want to have light mood when playing Christmas songs but i cant get it to work. Is there anyone who can see my mistake?
- alias: "xmas_song"
trigger:
platform: state
entity_id: media_player.spotify
to: 'playing'
condition:
- condition: template
value_template: '{{ states.media_player.spotify.attributes.media_album_name == "Christmas Songs" }}'
- condition: template
value_template: '{{ states.media_player.spotify.attributes.media_album_name == "The Classic Christmas Album" }}'
action:
- service: light.turn_on
data:
entity_id: light.living_room_window_light
rgb_color: [255,0,67]
brightness: 179
transition: 10
- service: light.turn_on
data:
entity_id: light.hue_color_candle_1
rgb_color: [255,0,67]
brightness: 179
transition: 10
- service: light.turn_on
data:
entity_id: light.hue_color_candle_1_2
rgb_color: [69,255,65]
brightness: 60
transition: 10
- service: light.turn_on
data:
entity_id: light.bookshelf_color
rgb_color: [255,43,48]
brightness: 60
transition: 10
- service: light.turn_on
data:
entity_id: light.book_shelf_color_two
rgb_color: [81,255,119]
brightness: 60
transition: 10
- service: light.turn_on
data:
entity_id: light.onoff_plug_3