@ResinChem wrote:
I’m trying to determine the best way to handle changing my WiFi password. I currently have 60+ devices from a variety of flavors (ESP8266, Lutron, Wink, Hues, Shelly, Sonoff (Tasmotized and not) ESPHome, RaspPis, etc. etc. etc… Some have fallback APs, some don’t. If I change my home WiFi and these devices drop off the WiFi due to the password change, how can I access them to update to the new password? The last thing I want to do is have to perform factory resets or delete and re-add the devices, as some like the Shellys are not readily accessible. In addition, if the device is reset/recreated, there is a strong possibility that the entity or device name will change/be rediscovered in HA, leading to a plethora of broken scripts, automations, etc. Obviously, devices like smart TVs, game consoles, etc. are not a problem because they have a local display interface to update the password. But for devices that are only accessible via WiFi, what is the best way to handle changing the WiFi password (and/or the SSID)? The semi-good news is that nearly all my devices are assigned static IP addresses and I have also recorded all MAC addresses… if that’s helpful. And my HA server is on a wired connection, so no changes have to be made for the HA or MQTT server connections.
I’ve come up with two possible routes…
First move all the devices, one by one, to a secondary guest network (different SSID). This will require all sorts of script updates and reflashing (but hopefully OTA in most cases like Tasmota, WLED and ESPHome). Each device will temporary drop off the current Wifi upon reboot, but should (hopefully) still be accessible via the guest WiFi. Once all devices are moved to the guest wifi then change the original SSID password and move each device back again (once again reflashing/rebooting).
On the current WiFi (still old password), access each device and change the password to a new password (again, reflashing where needed). Each will drop off the Wifi and will temporarily be unreachable via normal WiFi. Once that is done, the WiFi password can be changed, each device rebooted and “hope” that everything comes back online. This has the advantage of only updating/reflashing devices once, but runs the risk of leaving a device inaccessible if it doesn’t come back online, requiring a potential factory reset, reflash, changing entity name in HA, etc.
So, are there other options here? Again, I don’t need to worry about HA itself since it is on a wire connection. It is just the best way to approach a WiFi password/SSID change with a large number of various edge devices without a method of accessing other than WiFi and without breaking all the scripts, automations, etc. in HA.
Any advice greatly appreciated!
Posts: 3
Participants: 3