Tasmota, disable button while relay is on

Hi there,

Im changing my doorbell setup and I want to to the following.

Ik have a Wemos D1 flashed with Tasmota. It has 2 inputs, button1 and button2 and 2 outputs, relay1 and relay2.
It has connected a fire alarm siren to the outputs via a transistor.

I want the the relay1 turned on for 8 seconds if button1 is pressed.
I have used the command pulseTime1 108 for that’s and that works.

But… if button1 is presses within that 8 seconds again it toggles OFF. And that’s not what I want.
Is there a way to ignore button presses within the time te relay is on?

I’ve tried setOption40, but that dos not work.

I do want this to work from the Tasmota side, so if for some reason Mqtt is not working, the doorbell still functions.

I am not familiair with rules, so if you can get me some good examples, I will appreciate that.

read up about the PulseTime in tasmota

I have used the command pulseTime1 108 for that’s and that works.

The question is: How to block inputs while the relay is on.

Did you find a solution? I need this too…
On a 4 relay tasmota I’d like to disable the switches until one of them is on (under Pulsetime).

Nope… not yet. But to be honest, I didn’t searched further.

Anyone find the answer to this? I’m also searching! For accuracy/synchronicity, I need to disable my button for one second each time it is pressed. My home assistant automation requires about one second to run, and will not keep up with multiple button presses within that time.

I also need this in another scenario. Need a property for buttons/switches where we can pause inputs for seconds of time.

I don’t need this function anymore, since 0.113 automations now use ‘mode: single’ And this solved my problem.

Automations modes 0.113