Beiträge von baletak

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 succesfully wired Shelly plus 1 to dummy garage doors and i am able to get input state from magnetic contact to see whether garage is open or closed in shelly app. All works well.

    I am not touched by scripts so far and have tried for good few hours without success.

    Does someone have script available which would generate push messages to phone “garage open” and “garage closed” based on shelly input state please?

    Appreciate your help

    EDIT1

    I have pulled sample script from shelly as per below and it does what it is supposed. Have no idea how to combine with script for push notifications.

    Code
    Shelly.addEventHandler(function (event) {  //check if the event source is an input  //and if the id of the input is 0  if (event.name === "input" && event.id === 0) {    //use event.info.state to determine the input state    //true - input on    //false - input off    print("Garage is ", event.info.state ? "Closed" : "Open");  }
    });