How to make Action URL on my Shelly Plug S work on LAN?

  • I have managed to get my Shelly Plug S working on my LAN and I have created a Linux script to control it.

    So now I can easily automate it using the script to switch on and of and also to pulse it on/off or off/on.

    The next thing I want to do is to activate Action URL for both ON and OFF operations.

    The problem is that no matter what I do it will not stick on my Shelly Plug S!

    I enter the URL like this and hit the SAVE button.

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

    Next I switch the plug On and then Off expecting to get a hit on my webserver on the indicated URL, but nothing reaches it!

    What is the problem with this? The domain (which I blanked out for security here) is a valid domain and if I use the URL in a web browser then I get a call to the pho script and it can take action on the switch change.

    So why is the Shelly not using the action URL?

    Also it seems like it is not saving the URL when I hit the SAVE button!

    If I refresh the page from the Shelly and navigate to the actions page my entered URL:s are gone (not shown).

    Notice that I have not attached the Shelly to any cloud service, I only want it to work inside my own LAN environment.

    Question about this forum:

    How do I get email alert if/when someone replies to this thread?

  • Does your AP allow this traffic for the Shelly? Are local Wifi clients allowed to connect to other members of the LAN? Is the webserver on your LAN? Have you tried entering the server URL with the IP address instead of the hostname?

    And most importantly: which firmware are you using with the device? I don't have issues saving an URL with Current version: 20210727-201754/v1.11.2-g25b6953


    PS: check Account Management: Settings - Notifications

    Einmal editiert, zuletzt von biomass (16. März 2022 um 17:12)

  • FOLLOW-UP QUESTION:

    It seems like the URL I enter is NOT saved on the device!!!

    If I go back to its config page then the URL:s are not visible, so I assume they are not saved even though I have hit the SAVE button.

    Is there some special method one has to do in order to actually save the action URL:s on the device so they will be used?

    This device is not attached to the Cloud but is supposed to run on the local LAN hitting a server on the LAN itself in the final installation. No Internet available.

  • Does your AP allow this traffic for the Shelly? Are local Wifi clients allowed to connect to other members of the LAN? Is the webserver on your LAN? Have you tried entering the server URL with the IP address instead of the hostname?

    And most importantly: which firmware are you using with the device? I don't have issues saving an URL with Current version: 20210727-201754/v1.11.2-g25b6953


    PS: check Account Management: Settings - Notifications

    1) All traffic from all devices on my LAN is allowed. There is no blocking rule anywhere.

    2) The Webserver in this case is not on my LAN, but it will be when I finally install on the remote location.

    3) I have not used the IP address instead of the domain name since IP will change. It is a DDNS system with a subdomain to my main domain in use. It points to my ISP at the moment.

    4) This is what mt Shelly Plug-S says about firmware:

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

    It is what it came with when I bought it recently. I have checked several times and found the same message about no more recent f/w. :(

    HOW can I update it when it says that there is no new version????

    Finally:

    HOW can I make this forum send me a message when there is a reply to my post?

    I did not see your reply because there was no message even though I have set it up to be watched!!!!

  • UPDATE:

    I have now found a way to update the firmware using the page at:

    Shelly F/W archive

    With this I could send the 1.11.2 f/w to my Shelly Plug S

    After that was done I could also update the f/w directly in the ShellyPlugS Settings page so I now have the latest f/w:

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

    Now:

    - I check the Enabled checkbox

    - I enter the action url in the edit box and hit SAVE

    - Now the URL is shown in the box and I can set the other (OFF) action URL too and hit SAVE

    - Now both Action URL:s are shown

    - I command the switch to operate ON and OFF in the Shelly UI

    - Now I get the report triggered by the URL

    - I command the switch via the web to change state

    - Now I also get the report!

    At first I used the "ADD" button to add the URL but apparently this is NOT what one is supposed to do, instead just enter the URL and hit SAVE.

    And: DO NOT FORGET to check the Enabled box!!!

    Seems like the issue is now solved

    PS:

    I also tested to remove the plug from the mains outlet and then insert it back.

    This also resulted in an action URL report! :) :)

    2 Mal editiert, zuletzt von BobSwede (17. März 2022 um 11:02)

  • Dieses Thema enthält 7 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.