Hi guys, I need help please.
I would like to set the duration of a timer from one input_select. It’s possible?
I have manually set 15 minutes (00:15:00) to my timer, but I wanted to be able to choose the time the switch stays on
Like this.
- alias: garden
initial_state: true
trigger:
- platform: state
entity_id: switch.buttonwater
to: 'on'
for: "{{ states('input_select.temporiza') | int }}"
action:
- service: switch.turn_off
entity_id: switch.rega_jardim
- alias: Timer stop
description: ''
trigger:
- platform: state
entity_id: switch.rega_jardim
from: 'on'
to: 'off'
condition: []
action:
- service: timer.finish
target:
entity_id: timer.tempo_rega
I’m doing something wrong but I don’t know what.
Many thanks from help