@giovanni wrote:
Hi everyone,
I am trying to turn off a switch after a certain amount of seconds (so even 200 seconds) by selecting the time using an input_number, but I’m not successful so far as the automation does not trigger.
What am I doing wrong? Are seconds limited to 60 (so I’d better switch to minutes)?many thanks!
automations.yaml:
- alias: Irrigation timer trigger: - entity_id: switch.balcony_irrigation for: 0:00:{{ states.input_number.irrigation_timer_duration }} platform: state to: 'on' action: - entity_id: switch.balcony_irrigation service: switch.turn_off initial_state: true
Posts: 5
Participants: 3