Script for sequential activation of Input 1 / Input 2 / Input 3 / Input 4 / OFF

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

  • Hi, I have this need
    By pressing a button 5 times, you should sequentially activate Input 1 then Input 2 then Input 3 then Input 4 and finally turn everything off
    It's possible?
    Many thanks for your support :)

  • Welcome to the forum!

    Please have a look at the embedded script library (in each generation 2 Shelly):

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    This should meet your requirements!

    „Habt Geduld. Alle Dinge sind schwierig, bevor sie einfach werden!“ (aus Frankreich)

    „Nothing in life is to be feared, it is only to be understood.“ (Marie Curie, 1867-1934)

    „Comment is free, but facts are sacred“ (C.P. Scott, britischer Verleger)

  • Thank you very much . It was what I was looking for
    Could you just tell me how I can change this string to make it work?

    [0 1 2 3, "off"],

    I have to close the loop by turning off all inputs

    Thank you again

  • I’m a novice in scripting, but I would assume the example does the following:

    1st press of the (single) button: Turn output 1 on

    2nd press: Turn output 2 on, leaving output 1 on

    3rd press: Turn output 3 on, leaving output 1 and 2 on

    4th press: Turn output 1 to 3 off.

    You may alter each of the four lines according to your needs!

    „Habt Geduld. Alle Dinge sind schwierig, bevor sie einfach werden!“ (aus Frankreich)

    „Nothing in life is to be feared, it is only to be understood.“ (Marie Curie, 1867-1934)

    „Comment is free, but facts are sacred“ (C.P. Scott, britischer Verleger)