I have an automation, but the service “light.turn_on” does not work here
alias: Slaapkamer_Xwekker
description: >-
De nachtverlichting van X gaat op een bepaald tijdstip groen, oranje en
rood branden
trigger:
- platform: time
at: input_datetime.X_nachtverlichting_wekker
condition:
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
action:
- service: light.turn_on
data:
rgb_color:
- 181
- 30
- 30
color_name: red
target:
entity_id: light.slaapkamer_X_bed
Why is the action not working ?
It does not set the light on…
Result:
params:
domain: light
service: turn_on
service_data:
rgb_color:
- 181
- 30
- 30
color_name: red
entity_id:
- light.slaapkamer_X_bed
target:
entity_id:
- light.slaapkamer_X_bed
running_script: false