Connect to open WiFi network (without password)

  • Hi,

    I have a couple of Shelly 3EM devices that I would like to connect to a open WiFi network (without password). Although the devices allows leave the password blank, it refuses to connect. The log files show the following messages:

    After some digging, reason 201 is because the client is sending the password for a network without password.

    Is there any way to solve this problem?

  • With open network, the shellys don´t try to connect to the cloud. Sometimes they don´t connect to the network. Its a security feature - remember, in a open network EVERYBODY can switch your shellys, that is not a good idea...

    Most WIFI routers and APs can handle 2 or more different WIFI networks, e.g. home and guest oder in commercial environment for different workgroups. Try to set a secured WIFI for your automations...

  • I ran to this very same problem, and finally found a solution for it.

    The key is to send NULL character along the key parameter. This can be done by setting the parameter with value %00, i.e., key=%00

    Below is an example utilizing cURL, with POST method, switch -d is for application/x-www-form-urlencoded. Notes:

    • [] is optional, in the case you have set basic auth for the device
    • <> you need to set your own information in this space
    Code
    curl [--user youruser:yourpassword] -X POST -d 'ssid=<YOUR-SSID>&ipv4_method=dhcp&enabled=1&key=%00' http://<SHELLY-IP>/settings/sta