I want to create a switch (the output_switch) that mirrors an existing switch but which ignores brief on periods of that existing switch (the input_switch) - say periods shorter than 5 seconds.
So:
. If the input_switch turns on and stays on, the output_switch should turn on.
. If the input_switch turns on and 2 secnds later turns off the output_switch should stay off.
. If the input_switch turns off the output switch should turn off immediately.
I feel this aught to be possible as a template switch but I can’t think how it would be coded. Can someone help me please?