Hi there,
I need to push a button for a small amount of time within a cover template action. As of documentation, I am allowed to configure a delay either by using the “HH:MM:SS” notation, or by setting the milliseconds, seconds, etc. attributes directly. In my current configuration I was using the milliseconds attribute to set a 50ms delay between toggling of switching a button on and off.
stop_cover:
- choose:
- conditions: >
{{ this.state == "closing" or this.state == "opening" }}
sequence:
# stop moving
- service: switch.turn_on
data:
entity_id: switch.garagentor_relay_0
- delay:
milliseconds: 50
- service: switch.turn_off
data:
entity_id: switch.garagentor_relay_0
Unfortunately, when executing this script, the log tells me, that this notion is not supported:
Garagentor: Choose at step 1: choice 2: Error rendering Garagentor: Choose at step 1: choice 2 delay template: offset milliseconds: 50 should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F'
What am I missing? Where can I find information about the ‘HH:MM:SS.F’ notation? I would assume the .F could be used for my 50ms delay, but how?
“00:00:00.05” ? or “00:00:00.02” ?
Thanks in advance,
BR, Stefan