Hello,
I’ve this automation that work fine, the only problem is that the light color is white while i’d like a different color. Where i can insert the rgb color? If I put the code as in example below the light goes in on with right color but don’t turn off when close the door
```
data:
brightness: 15
rgb_color: [255, 196, 89]
service: light.turn_on
```
This my automation
- alias: Accensione/Spegnimento luce con apertura porta
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d00023ea03f
to: 'on'
- platform: state
entity_id: binary_sensor.door_window_sensor_158d00023ea03f
to: 'off'
action:
service_template: '{% if trigger.to_state.state == "on" %} homeassistant.turn_on
{% elif trigger.to_state.state == "off" %} homeassistant.turn_off {% endif %}'
entity_id: light.gateway_light_7811dce210d1