Is there a process to revert to a prior release of ESPHome? I could restore my Home Assistant to a couple of days ago, but I don’t recall what minor changes I’ve made. Mostly in the dashboards.
Here’s my problem. I upgraded ESPHome yesterday and upgraded a few of my devices as well. But one would not come online again. Fortunately it was a Sonoff Basic that was easy to reach. I plugged in a UART to manually flash the latest bin file. When I restarted the device, the WiFi would not connect. I tried flashing the bin file to a Wemos D1 Mini and it connected to WiFi. I flashed an Arduino sketch to the Sonoff, and it too connectd to WiFi.
I also made a new device, new Sonoff Basic, new ESPHome code and it also would not connect to WiFi.
To summarize:
Sonoff Basic, ESPHome .bin file, no WiFi.
Wemos D1 Mini, same .bin file, WiFi connects OK.
Sonoff Basic, flashed with an Arduino Sketch, WiFi connects OK.
I tried flashing the same .bin file to a new Sonoff Basic- no WiFi.
So, it looks like everything I tried connects the ESP to WiFi except the .bin file from ESPHome. My thought is that I should try an earlier version of ESPHome.
I’m using this you can install older ESPHOME next to latest one. For me best solution because of wifi issues all the time with latest one. Everytime update devices and if not work update them.back with the older ESPHOME version.
I’ll just throw one more idea out there for future viewers. I’ve found it’s much more convenient to run ESPHome natively on my laptop, rather than as an add-on in HA. I still have the add-on, just in case, but I never use it for developing or updating my ESP devices.
For one thing, my laptop has more horsepower than my poor little RPi running HA. For another, I’m reducing the writes to the SD card running HA. I’m generally sitting at my laptop when doing ESPHome work anyway.
Oh, and I always un-check the partial backup option. When writing to an SD card, yes, you can have too many backups. I copy my config folder to my NAS on a regular schedule, and only use the HA full backup before making major changes.
Similar here, have esphome running on a separate Pi4, on my desk, USB-Cable attached in case OTA does not work, no impact on my “Production” HA System from development work
Also HA doesn’t know about the EspHome version installed and does not yell at me because I’m again a couple releases behind
Edit: and downgrading to a specific version is as simple as sudo pip3 install -U esphome==202x.y.z
Thanks, but the github describes how to install ESPHome. Are you saying that I just install the older version as if I didn’t have ESPHome currently installed?
You can install a older version of esphome next to the latest one. That’s the great thing about this github build. I have 2 versions installed in HA as addon
That’s the question. How did you install a second version and how do you select the desired version? As you can see from my original question, compiling a configuration using ESPHome 2024.4 results in a device (Sonoff Basic) that won’t connect to the network. The revert to 2024.3 fixed that but 2024.4 worked fine with all other ESP devices
Go to you Home Assistant’s Add-on Store and add this as repository. Check for updates (and if needed, refresh), and you should be able to install any of these versions.
Add this link:
Then you see " Legacy ESPHome versions repository" with 15 different esphome versions can install
I have 2 ESPhome versions as Addon in HA. When latest version give issues I use the other one to update the devices again back with a older esphome firmware