hi, I have yeelight lamps and I would like to create a scene that I would then call an automation to create a disc effect when I listen to music. this is code for scene
- name: Livingroom disco
entities:
light.cucina_1:
state: on
effect_list: Disco
# transition: 2
brightness: 50
light.cucina_2:
state: on
effect_list: Disco
# transition: 2
brightness: 50
light.cucina_3:
state: on
effect_list: Disco
# transition: 2
brightness: 50
and this is the automation but not work
- id: 'Google Home player playing'
alias: Google Home player playing
trigger:
- platform: state
entity_id: media_player.cucina_home_mini
to: 'playing'
from: 'idle'
- platform: state
entity_id: media_player.cucina_home_mini
to: 'playing'
from: 'paused'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: scene.turn_on
entity_id: scene.livingroom_disco
any idea?