FAQ
TL;DR: To make an H801 with ESPHome remember color, set flash_write_interval to 0 s and enable restore_from_flash; "I have solved the problem of remembering colours when power is restored." [Elektroda, unky, post #19793180]
Why it matters: This helps H801 + ESPHome users who cut power via wall switches get instant last‑color restore.
Quick Facts
- ESPHome fix: esp8266_restore_from_flash: true; preferences.flash_write_interval: 0s; light.restore_mode: RESTORE_DEFAULT_ON. [Elektroda, unky, post #19793180]
- Brief white flash on H801 power‑up persists across Supla, Tasmota, ESPHome; it’s hardware‑linked. [Elektroda, unky, post #19793180]
- Milight RGBCCT resumes last color instantly and uses 2.4 GHz radio; needs a gateway. [Elektroda, xury, post #19679861]
- DIY milighthub Wi‑Fi gateway budget: around £15. [Elektroda, xury, post #19673057]
- Single‑channel Milight turns lights on after AC power returns; plan for outages. [Elektroda, bhtom, post #19674806]
How do I make my H801 with ESPHome remember the last color after a power cut?
Use ESPHome flash‑restore and light restore settings. How‑To:
- Enable esp8266_restore_from_flash: true.
- Set preferences: flash_write_interval: 0s.
- Under light:, set restore_mode: RESTORE_DEFAULT_ON.
This combination restores your last color and brightness after power returns. [Elektroda, unky, post #19793180]
Why do my LEDs flash white briefly when the H801 powers up?
The brief white flash appears at power‑on before control firmware settles PWM outputs. Users saw it on Supla, Tasmota, and ESPHome, pointing to hardware behavior on the H801. It cannot be eliminated in software on that unit. [Elektroda, unky, post #19793180]
Will Tasmota remove the H801 power‑up white flash?
No. Testing the same H801 with Tasmota still produced a white flash during power‑up. The effect remained across firmwares and indicates a hardware characteristic rather than a firmware bug. [Elektroda, unky, post #19793180]
Is MQTT retain a good workaround if I cut power with a wall switch?
Not great. After powering up, the device takes a few seconds to reconnect to Wi‑Fi and MQTT. During that time, default lighting may appear before your retained settings apply. That delay is annoying for instant‑on use. [Elektroda, unky, post #19673127]
Does Supla firmware remember the last color on the H801?
Yes, Supla worked as expected for state memory on the H801. However, integrating Supla with Home Assistant proved difficult for the user and was not successfully configured in that case. [Elektroda, unky, post #19674712]
Do Milight RGBCCT controllers resume the last color instantly?
Yes. "It immediately lights up with the colour it was before it was switched off." These controllers use 2.4 GHz radio and require an original gateway or an ESP8266 milight hub. [Elektroda, xury, post #19679861]
Do single‑channel Milight controllers remember the last state?
No. Single‑channel Milight controllers do not remember the last state. A noted downside is that they turn the circuit on automatically when AC power returns after an outage. [Elektroda, bhtom, post #19674806]
How can I prevent lights from turning on after a power outage with Milight?
Control the mains with an upstream smart wall switch, such as a Sonoff T2. Users cut power at the switch, then re‑energize on demand. They also drive control via Node‑RED and Smartnora for voice. [Elektroda, xury, post #19677688]
Can Home Assistant restore my lighting state if I avoid cutting power?
Yes. If you use an electronic switch and keep the controller powered, Home Assistant can apply logic to restore preferred settings. Cutting power with a manual switch bypasses that control path. [Elektroda, unky, post #19672116]
What does RESTORE_DEFAULT_ON do for ESPHome lights on H801?
It returns the light to an on state using stored values after power restoration. Combine it with flash restore settings to persist color and brightness between power cycles for wall‑switch control. [Elektroda, unky, post #19793180]
Are radio‑only controllers faster to resume than Wi‑Fi controlled ones?
Yes. Milight RGBCCT uses 2.4 GHz radio and resumes instantly with the last color. Radio control avoids Wi‑Fi connection delays at power‑up, helping with instant‑on scenarios. [Elektroda, xury, post #19679861]
How much does it cost to build a MilightHub for Milight control?
About £15. A user recommended building a milighthub Wi‑Fi gateway at roughly that cost. It enables control of 2.4 GHz Milight controllers without relying on proprietary bridges. [Elektroda, xury, post #19673057]
If I only use a wall switch, can I still get instant last‑color restore on H801?
Yes. Use ESPHome’s flash restore and light restore_mode as shown. This gives instant last‑color on power return, even when you cut power with a wall switch. White flash may still occur at boot. [Elektroda, unky, post #19793180]
Is there any way to remove the white flash entirely on H801?
No reliable software fix has been confirmed. Users observed the flash across multiple firmwares on the same H801 hardware, suggesting it is a device‑level behavior. Consider different controllers if flash‑free startup is critical. [Elektroda, unky, post #19793180]