I need to determine how long a timer is active . I’m using automation for it but it never fires.
- id: '1551212087751'
alias: test
trigger:
- hours: ''
minutes: ''
platform: time_pattern
seconds: /1
condition:
- condition: state
entity_id: timer.scherm_timer
state: active
action:
- data:
entity_id: input_number.scherm_test
service: input_number.increment
Has anyone an idea what i’m doing wrong
petro
(Petro)
February 27, 2019, 1:22pm
2
Don’t use the automation editor for the time pattern. It removes the necessary quotes around your time pattern. Adding that should cause it to fire.
- id: '1551212087751'
alias: test
trigger:
- hours: ''
minutes: ''
platform: time_pattern
seconds: '/1'
condition:
- condition: state
entity_id: timer.scherm_timer
state: active
action:
- data:
entity_id: input_number.scherm_test
service: input_number.increment
Just a question… Why are you doing this? This will bog down your machine with so many triggers. What is your goal, there could be a better way.
I need the count to determine an approx position of my shutter. This code has worked untill now but broke with the introduction of the trigger type time_pattern. I had not updated my version of home assistant fo a while