logo elektroda
logo elektroda
X
logo elektroda

[Solved] LED controller H801 with ESPHome firmware memorising settings

unky 1185 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19672116
    unky
    Level 18  
    Hello
    I have uploaded the ESPHome software to a cheap Chinese H801 controller bought on Ali in order to integrate the controller with the Home Assistant. Everything seems to be OK except for the fact that I expected the controller to behave in such a way that after switching on it would remember the last colour settings. Unfortunately, it does not remember and each time I have to set the required colour, which is pointless, because when switching off the LED, I simply cut off power to it using a wall switch, and I do not switch it off electronically from the Home level. If you still have an electronic switch, you could make some kind of logic with the Home Assistant, but connecting it to a manual switch makes no sense as you have to set the colour again after switching it on.

    Has anyone played with this controller and the programming of ESPHome to it?
  • ADVERTISEMENT
  • #2 19673057
    xury
    Automation specialist
    I must admit that I haven't played with ESPHome or H801 yet. I don't know if it is possible to do something like retain messages with MQTT. Possibly if the entity reports then service send the settings somehow.
    P.S You should have bought the Milight controllers. They remember the settings after powering down. For this, build a milighthub wifi gateway for around £15.
  • ADVERTISEMENT
  • #3 19673127
    unky
    Level 18  
    I've also considered your idea but it won't work for practical reasons. You turn on the LED, the defsult light comes on, then it takes a few seconds before the device connects to the wifi, is controlled by the mqtt etc.
    Not a very neat solution, high light inertia basically annoying after a while. It needs to work at the snap of a button and not take a few seconds to tune up each time.
  • ADVERTISEMENT
  • #4 19673223
    xury
    Automation specialist
    Have you tried on Tasmota?
  • #5 19674712
    unky
    Level 18  
    I tried Supla, it works as expected in the Supla Cloud Wednesday but I can't connect it to Home Assistant. Biby is integrating Supla with Home Assistant, unfortunately I cannot configure this.
    I will still have to check Tasmota therefore.
  • ADVERTISEMENT
  • #6 19674806
    bhtom
    Level 38  
    Welcome,

    xury wrote:
    You should have purchased Milight controllers. They remember the settings after powering off.


    Maybe these RGB ones remember the settings, but certainly not the single-channel (single-colour) controllers. The downside of the Milight controllers (at least the ones I have) is that they turn the controlled circuit on when the power returns....

    Regards.
  • #7 19674814
    xury
    Automation specialist
    This is how they switch on the circuit when power is applied. I think that for the author this is not a problem, because he just cuts the power with a switch and they are just supposed to light up when switched on. I have exactly the Milight boxer RGBCCT controllers.
  • #8 19674826
    bhtom
    Level 38  
    Welcome,

    In that case, how do you have resolved the issue of lights turning on automatically after an AC power failure in the house?
    The question of course relates to circuits with Milight controllers....

    Regards.
  • #9 19677688
    xury
    Automation specialist
    And that's what I've got going for me. I cut the current with the Sonoff T2 switch and the light goes out. I switch it on and the light shines on the last setting before switching it off. I don't use the remote control as everything is operated for me by Nodered and Smartnora by voice via google home. I also don't use the software switch off because I don't need it.
  • #10 19679815
    unky
    Level 18  
    xury wrote:
    And that's what I have in mind for me. I cut the current with the Sonoff T2 switch and the light goes out. I switch on and the light shines on the last setting before switching off. I don't use the remote control as everything is operated for me by Nodered and Smartnora by voice via google home. I also don't use the software shutdown because I don't need it.

    That's exactly how I see it with me too, but that's what I'm missing functionality for in the H801 with ESPHome software.
    A question about your led driver: when voltage is applied, does the strip flash white and only drive the correct colour or does it immediately light up the correct colour?
  • #11 19679861
    xury
    Automation specialist
    It immediately lights up with the colour it was before it was switched off. Except that the controller does not have wifi but is radio controlled on 2.4GHz. It needs either the original wifi gateway or the way I did it: https://github.com/sidoh/esp8266_milight_hub
    In the first video, after a minute or so, I turn on the led over the table, which is just on a programme of flashing colours, but normally I usually use a warm colour. And then it immediately switches to that colour.
    https://www.elektroda.pl/rtvforum/topic3629852.html#18266796
  • #12 19793180
    unky
    Level 18  
    I have solved the problem of remembering colours when power is restored.
    In ESPHome you need to add the following. Unfortunately there is still the effect of the white light flashing on power up but this is probably a hardware problem as I have tested the H801 controller with different firmware - Supla, Tasmota etc and there is always this white light flashing on power up.


    Code to add to make it remember the colour settings:

    esphome:
    esp8266_restore_from_flash: true
    preferences:
    flash_write_interval: 0s
    light:
    restore_mode: RESTORE_DEFAULT_ON

Topic summary

The discussion revolves around the H801 LED controller, which has been flashed with ESPHome firmware to integrate with Home Assistant. The main issue raised is the controller's inability to remember the last color settings after being powered off, requiring users to reset the color each time. Various users suggest alternatives, including Milight controllers, which retain settings after power loss. Some participants mention trying other firmware options like Tasmota and Supla, with mixed results. A solution is proposed involving specific ESPHome code to enable color memory, although a white light flash on power-up remains a hardware issue.
Summary generated by the language model.
ADVERTISEMENT