Hello,
I’ve simple automation that turn on/off a light :
- alias: Light HUE RDC
description: ''
trigger:
- platform: state
entity_id: switch.din_rail_dimmer
action:
- service: "light.turn_{{ trigger.to_state.state }}"
target:
entity_id: light.entree_entree
data:
# brightness: 255
transition: 1
I would like to set specific data value for turn_on (brightness = 255 and transition = 1) and other data for turn_off (transition = 5).
What is the best way to do that ?
Thank you very much.
1 post - 1 participant