Is there a way to program somekind of cooldown into a switch? So when I turn it on it can’t get clicked like for 5 seconds and a little loading circle appears? I have some really sensible switches (like WoL) that desperately need that cooldown so nobody can trigger them on/off by accident multiple times.
This may not be ideal, but you could perhaps turn on an input_boolean instead of the switch. That input_boolean would be used as an automation trigger that turns on or off the switch, but only if the cooldown has already elapsed.
Take a look at this doozy of a condition, as written by @Danielhiversen. It checks to make sure that the automation has not been fired in the past 2 seconds (I think seconds).