If you remove the delay, does the script operate the garage door correctly? The real-world delay between the two commands (turning the switch on then off) will be less than a second but maybe that’s still sufficient to trigger the door.
@swiftlyfalling Yes the two script strategy works perfectly, don’t like the double script but I will sort it out in the future when interface will be finalized.
@123 thank you for the tip, unfortunately the on-off call sometimes is too fast, so it doesn’t always switch the relay, and my garage door button needs at least some tenths of seconds to do a proper work
If after turning switch_sh1_02 to on you always want it automatically return to off (after a 1-second delay) then this behavior can be achieved with an automation.
you’re right, I think this will work as the two script method.
Since the relay is a shelly (probably a sonoff sv in the future) and I’m using esphome right now, I’m trying to see if I can get the same result programming the esphome to just get ahold of the impulse process, and then fire a single script to ‘open the door’
now I just fire the script with a service: switch.turn_on call and the device does the rest.
I like this solution as the device itself takes care of the job and hass.io just tells it to do it