I have a lot of timers that I use in my kitchen, I would like to prevent a timer from restarting if you click on it while it is in use, here is my idea of a script, what is wrong
alias: timertest
sequence:
- if:
- condition: template
value_template: "{{ state(\"thetimer\",\"Idle\") }}"
then:
- service: timer.start
data: {}
target:
entity_id: "{{ thetimer }}"
mode: single