Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retaining state after turning power off and on #117

Open
cracrama opened this issue May 15, 2023 · 3 comments
Open

Retaining state after turning power off and on #117

cracrama opened this issue May 15, 2023 · 3 comments

Comments

@cracrama
Copy link

cracrama commented May 15, 2023

Hi
From some time I'm experiencing weird behaviour and I can't pinpoint what is causing it.
After some ESP/ HA? update device not longer remember it's state after turning power on. (complete power off and on)

Steps to reproduce the behaviour:
Set brightness/ color, later disconnect device from power - later connect again
Once device is on, and connected again, it returns to it's default state 100% brightness white mode, instead to it's previous state.

I'm using default config and applying

preferences:
  flash_write_interval: 1min

has no effect on lamp behaviour after power on.

Expected behavior
Retaining state after on off power cycle.

Please advise
Kind regards.

@mmakaay
Copy link
Owner

mmakaay commented Jul 11, 2023

Sorry the late answer. I thought I had typed something about this, but apparently not.
I have noticed the same behavior, so I think all lamps will show this behavior at this point.
It is likely that things changed in ESPHome. Possibly this might be fixed by implementing #48 , but I will have to experiment on that.

@cracrama
Copy link
Author

cracrama commented Aug 4, 2023

Many thanks for response.
Will wait for new firmware then.
Best regards.

@cracrama
Copy link
Author

cracrama commented Apr 16, 2024

Hi
Sorry I'm a bit newbie - Can you please explain how to impalement this below solution form issue no 48?

auto call = the_light.make_call();
call.from_light_color_values(id(global_var));
call.perform();

Please advise
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants