I sent the following help request to Shelly technical support:
I wired a Shelly 1 to an electrical cord and plugged it in. I connected my phone to the WiFi network created by the device and changed the device’s internet settings so that it would connect to my local LAN. I was then able to access the device from my desktop computer. Thus far, no issues.
I then tried to ‘connect’ the device to my Home Assistant system. I added the Shelly integration and it asked for a host. I entered the host IP of the device, clicked submit, but was shown the error ‘Failed to connect’ (which is odd since I can access the device via a browser). I figured that the firmware on the device could be old and that it needs to be updated.
On the device’s webpage, I clicked on Settings->Firmware Update and saw the message "The current Firmware version of your Shelly device is 20191217-140757/1047-long-id-for-shelly-devices@a0661583 No newer firmware available. " This firmware is more than two years old and needs to be updated. I found this site http://archive.shelly-tools.de/, entered SHSW-1 as the type and generated the the needed URL. When I put this in the address bar of the browser, I saw this: {"status":"updating","has_update":false,"new_version":"","old_version":"20191217-140757/1047-long-id-for-shelly-devices@a0661583"} which means that the device did not update.
Shelly tech support replied: do a factory reset of the device from the webUI, then connect again the device to the WiFi, connect the with the cloud and update the firmware. I was able to reset the device, but when I tried to update, I had the same issue.
They also said: If this doesn't work, then re-flashing the firmware of the device will help. Okay, but no information was provided about how to re-flash the firmware! I was able to download a zip file with the .bin file, but now what?