Shelly 2PM - Sunrise/Sunset not working with favorite positions

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.

  • Hello,

    I'm missing "Select roller position" in the Shelly 2PM.

    Fixed it with a script on my Shelly 4PM (Id:3) as day/night logic.

    let userdata = null;

    function eventcallback(userdata) {

    print(JSON.stringify(userdata));

    if ( userdata.info.id===3) {

    if (userdata.info.output===false) {

    Shelly.call("HTTP.GET", {url: "http://<IP Shelly 2PM>/roller/0/state?go=to_pos&roller_pos=15"})

    }

    if (userdata.info.output===true) {

    Shelly.call("HTTP.GET", {url: "http://<IP Shelly 2PM>/roller/0/state?go=to_pos&roller_pos=16"})

    }

    }

    }

    Shelly.addEventHandler(eventcallback, userdata);

    Are there other solutions without losing 1output on my 4PM?

    Kind regards, Marc.