Hello,
I would like to use timers (the value of the duration) as input for my lights transition. As such, I can have visual feedback with one of the multiple cards in the GUI of the time my Automation will still be running.
The challenge is that the timer.duration has the format H:MM:SS while the Lights Transition requires a value in seconds (integer).
I can easily capture the value of the Timer in a variable with:
{% set var_timerduration = state_attr('timer.sleep_routine_living_room_duration_timer','duration') %}
but can seem to use this value in the Light Turn of Transition.
- service: light.turn_off
data:
transition: var_timerduration
target:
entity_id:
- light.living_room_lights
Anybody a tip to transform this variable in seconds?
