- alias: Film Ende
trigger:
platform: state
entity_id: media_player.kodi_wohnzimmer, media_player.schwarzes_kastchen
to: 'idle'
condition:
- condition: state
entity_id: light.wohnzimmer_stehlampe
state: 'on'
action:
service: light.turn_on
data:
entity_id: light.wohnzimmer_stehlampe
color_temp: 400
brightness_pct: 100
transition: 4
- alias: Licht an, wenn Film schon spielt
trigger:
platform: state
entity_id: light.wohnzimmer.stehlampe
to: 'on'
condition:
- condition: state
entity_id: media_player.kodi_wohnzimmer, media_player.schwarzes_kastchen
state: 'playing'
action:
service: light.turn_on
data:
entity_id: light.wohnzimmer_stehlampe
color_temp: 453
brightness_pct: 20
transition: 3
The second alias does not work, hass complains: âInvalid configâ. It must be something obvious, but I do net see it
What I want to achieve: If a film is running, and someone turns the light on (while the film is running), then I want to set the light to a defined state (temperature, brightness)
Any help is appreciated,
What would really really help everyone to assist you here would be if instead of just saying âinvalidâ you posted the actual error message, which will tell you exactly what is wrong, and we can then help you fix it.