I try to use a input_number (input_number.temps_remplissage) to set up a delay in automation, to keep possibility to quick change de value on the dashboard…
I try something like this in template…
alias: test
- id: '1122334459999'
alias: delaytest
description: ''
trigger:
- entity_id: switch.relay_pression
for:
seconds: "{{ states('input_number.temps_remplissage') | int(0) }}"
platform: state
to: 'off'
I probably completly wrong but if someone have any clue…