Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Automation timer to turn off with input_number

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>