I’m looking for how I can avoid mistakenly pressed toggle switch of my AC, I mean if I just turned on the AC and mistakenly pressed it twice, it will turn on the AC and immediately turn it off. Not exactly the best practice for heavy load devices such as AC/Boiler/heater and etc…
Do you know how I can add some “graceful idle timeout” to my switches? Maybe something like climate component has min_cycle_duration
You could still create template switch or input boolean that acts like a switch and passes it on to trigger the mqtt switch turn_on/turn_off with the condition as mentioned above (state has to be on/off for xx seconds)
Maybe someone else knows a more elegant way to do it
oh yes, thanks for pointing me on it, i’ve complete forgot about template switch, definitely can use the value_template something like {{as_timestamp(now()) - as_timestamp(states.switch.ac.last_changed) > 10}}