New to scripting

Hello, I’ve just started up again with IPS.
And just to get some start help on scripting:
Running Xcomfort, I have two actuators with binary inputs.
I want a switch in app that sends switchingcommand to the actuator if input1=true, the command stays high untill the input goes false. If the input is false it will send switchingcommand for 2seconds.
Pretty sure it is an easy task, and it will help me get started on the scripting.

Thanks in advance.

You can attach two events to the actuator, which will react on the input variable. I am not sure about the 2 seconds delay. What is the delay for?


The control is for garagegate, 2sec pulse to open if it has stoped inbetween the endpoints.