Enable for 3 minutes on long press with 1PM

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. My first post here , so hello everyone!

    I have a 1PM connected with momentary switch. Simple on/off for garage lights. All working fine.

    Now I would like to use LONG PRESS to enable it just for 3 minutes.

    Tried to do it with long press url.

    URL is working - tested from chrome

    long press action is working - I can turn on other shelly , but I can't use it on the same device.

    What's the best way to do it ? Is it even possible ?

  • Zur hilfreichsten Antwort springen
  • Hello Daniel,

    sorry for the delay - I did some tests to figure out how to solve your idea.

    I was not succesful.

    To control another Shelly with short/longpress by using URLs is no problem.

    These URLs run perfect:

    http://IP-of-shelly/relay/0?turn=toggle (short)

    http://IP-of-shelly/relay/0?turn=on&timer=180 (long)

    The same shelly (independent if the configuration is momentary or detached) shows no reaction.

    It seems, the actual firmware does not support sending an URL-command to itself and receive/response corresponding.

    Have you already tested with scenes?

    Viele Grüße,

    Wolfgang

    • Hilfreichste Antwort
    • Offizieller Beitrag

    For adressing the own ip, you have to use "localhost".

    -->

    Code
    http://localhost/relay/0?turn=toggle 

    Welcome to the forum @Daniel Czechowski :)

  • Have you already tested with scenes?

    Well . I did now , after your comment ! Not sure why I was fixed on this URL and did not try it earlier.

    Thank you!

    Working without any problems.

    Action are:

    If light is OFF and long press => turn on AND turn off after 5 min

    second one

    If Light is ON and long press = > turn off after 5 min

  • Dieses Thema enthält einen weiteren Beitrag, der nur für registrierte Benutzer sichtbar ist.