Stable release for ESPHome 2022.12.0+
Note: This release requires ESPHome 2022.12.0 and Home Assistant 2021.8.0 or newer.
Fixes: failing device when upgrading to ESPHome 2022.12.0
ESPHome 2022.12.0 upgraded the ESP-IDF framework to 4.4.2. Changes were required to make the bslamp2 firmware compatible with this version. Without these changes, the upgrade could render the device non-functional (a.k.a. "bricked").
This release of the firmware fixes this issue, by explicitly reverting the used framework version to 4.3.2 (i.e. the previous version that was working correctly). This is a stop gap work-around at best. I am working on fully supporting the new framework version in my next release.
Do I need to upgrade the lamp?
Basically, no. Based on user reports, there are still ways to break the operations of the lamp, depending on the exact configuration file that you use. There are no security issues, nor new functionality to enjoy, so my general recommendation for now would be to simply keep your lamp at the pre-2022.12.0 firmware.
I am in the process of getting things fixed in a future-proof way, but that depends on cooperation of the Espressif ESP-IDF team. I did a proposal for a change, as from what I see, it is going to be implemented. Once that change is in place, I can implement a new version of the firmware that should be rock solid.
You already flashed your lamp and it ended up bricked? Then no worries!
Unfortunately, simply flashing the device with never firmware over a serial connection does not bring it back into working state. Things can be fixed though with a little flashing dance. Check out the instructions from the related GitHub issue report:
Fix recipe from issue #104
How to upgrade your device
The basic steps for upgrading are:
- Upgrade ESPHome to 2022.12.0 or later;
- Update your device configuration (see below);
- Compile and upload the new firmware.
If you have used the example.yaml
to create your configuration, then update the configuration package ref:
to point to release/2022.12.0
.
packages:
bslamp2:
url: https://github.com/mmakaay/esphome-xiaomi_bslamp2
ref: release/2022.12.0 <--- update this one
files:
...
...
If you use a different configuration method, then make sure that the external_component:
and esp32:
sections match the ones from the example.yaml
for this release.