Can a switch do an Action on itself?

I has been created an automation to turn a switch, or a plug itself after an amount of time. I can also control a plug by a switch for an amount of time, like: when double press a switch, turn on a plug for 5 mins.
But today, when I tried to do this, I failed:
When double press Switch A, turn Switch A on for 5 mins.
Anyone know how to do this, or even a work around? Or is there any plan for this featured. Please help.
Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.