Athom mini switch ESPHome wireless flashing

Hi,

I bought an Athom mini switch, which comes with ESPHome preflashed. Out of the box everything worked fine. But I need to change the configuration of the switch. The configuration is actually stored on GitHub.

I copied it from GitHub, used it as the switch configuration, compiled and flased it on the switch. Everything worked as expected. Of coursed nothing changed in the switch behavior. Then I made the changes I needed to the configuration and wanted to try it out.

But the wireless flash is not working anymore. I get this error after compilation:

======================== [SUCCESS] Took 112.03 seconds ========================
INFO Successfully compiled program.
INFO Resolving IP address of athom-mini-switch.local in mDNS
INFO Resolving IP address of athom-mini-switch.local
ERROR Error resolving IP address of athom-mini-switch.local. Is it connected to WiFi?
ERROR (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
ERROR Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname

What went wrong and how do I flash the switch now? Does anybody have an idea? Thank you.

You need to check the device is on the network. Do a search and find out the ip address. If you find it, use the web page to reflash. I would use a fixed ip address, which is what the error message is recommending

1 Like

Using the web UI of the Athom mini switch to flash the FW did the trick. Now I set the static IP and I can flash it from HA directly again. Many thanks.

1 Like