Plug-S how to configure multiple WiFi SSID

  • I have just bought a Shelly Plug S for use at home and at my cottage LANs.

    These LAN:s are connected via VPN so every device on both LAN's can reach each other.

    I plan on moving the plug between the two locations to be able to switch on/off a Linux server.

    The plug will NOT be connected to any cloud service and I will just use the URL for on and off to control the switch from a shellscript.

    Code
    wget -q -O/dev/null http://shellyplug/relay/0?turn=on
    wget -q -O/dev/null http://shellyplug/relay/0?turn=off

    I have entered the shellyplug host in my /etc/hosts file on the device which will issue the commands, so when moving the Shelly between LANs I just have to edit this file and it will work.

    Question:

    Is there a way to specify two possible WiFi SSID to connect to when the Plug-S powers up?

    On a regular Linux machine one can enter several SSID into the /etc/wpa_supplicant/wpa_supplicant.conf file and it will connect to whichever of these SSID is present on the location it is powered up.

    How can this be done on a Shelly Plug S?

  • Hi,

    did you already configure this?

    Screenshot_20220228_225542.jpg

    Viele Grüße,

    Wolfgang

    .Nach einem Job mit viel Kurzarbeit, dann Corona bin ich seit einiger Zeit wieder in meinem erlernten Beruf als Elektriker in der boomenden PV-Branche gelandet. Da bleibt kaum noch Zeit mich um die eigenen Smarthome-Ideen zu kümmern... Naja - nicht mehr lange... der Ruhestand winkt schon am Ende des Jahres 2025...

  • It's a "backup" in case the first WIFI is not available or down. That's why Allterco chose this name.

    In your case it will do what you desire. Enter your second WIFI there and you can use the plug in both locations.

    Just being curious: is there a reason why you use different SSIDs in both locations? Different network addresses, sure. Otherwise VPN wouldn't work. But using the same SSID does not do any harm and you can take your mobile devices with just one configuration to either location.

  • It's a "backup" in case the first WIFI is not available or down. That's why Allterco chose this name.

    In your case it will do what you desire. Enter your second WIFI there and you can use the plug in both locations.

    Thanks, that is what I need to know. I will pre-configure it with the remote site's SSID.

    I hope it does not require it to actually connect when setting up since that will not work...

    Just being curious: is there a reason why you use different SSIDs in both locations? Different network addresses, sure. Otherwise VPN wouldn't work. But using the same SSID does not do any harm and you can take your mobile devices with just one configuration to either location.

    Well, it is an old configuration from when I started having Internet access on the cottage site years ago...

    But I am going to replace the router next time I travel there anyway (need a newer model to increase VPN throughput now that we got fiber installed) and I might then change the SSID to the same as at home.

    But having a different SSID now makes it possible to configure the router at home by connecting to the remote SSID from my PC and then setting it up properly in advance of going there. I will have access to the remote router via Ethernet so I can view the configs and copy over all of the settings.

    BTW:

    Is there a way to get email alert on replies to my posts here?

    On other forums I usually can subscribe to a topic and get email when there are replies, but I cannot find such a setting here.