I am trying to create an automation to keep my gate open for a longer period of time.
Background: I have a gate opener that closes automatically after 120seconds (no way to turn it off). I have a UBNT mPort connected to it, and the mPort acts as switch on both the HomeAssistant AND Alexa. the mPort is pretty much a relay in a sense, but because it is a switch on the interface, I have to keep turning it on, and then turning the “switch” off. If I leave the switch “on” it wont have any affect as to how long the gate stays open, but regardless if i want to open the gate again i have to ensure it is off and then turn it on to give the power for the relay to run the gate opening circuit.
Bottom line: I want to set up a automation where if I press a button or tell alexa to “turn on Open Gate”, it will turn the gate “switch” on, off, and on again. This way the gate stays open without it closing automatically after 120s.
Hi @treno, I did set up the scripts and booleans like you stated, now the only problem is that the automation on the frontend shows up as a toggle thats on, and me pressing it on or off does nothing unless I actually press the word “trigger”.
How could I make it so that the automation runs when I press the on/off toggle, and once it is done, the toggle reverts to the off position?