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

Light's Going Off #48

Closed
iceteaSA opened this issue Dec 21, 2024 · 2 comments
Closed

Light's Going Off #48

iceteaSA opened this issue Dec 21, 2024 · 2 comments

Comments

@iceteaSA
Copy link

iceteaSA commented Dec 21, 2024

I am getting a bit of a weird issue, where about 20 minutes after startup, but can be shorter or longer, the lights all go off.

One thing to note is that while they are connected to Wi-Fi, they are not connected to a HA instance.

This issue did not occur while the devices were connected to a HA instance, and only started happening after taking HA offline.

I believe the device crashes, perhaps from an error log filling up all the memory.

The lights are going off because the relay state is not restored to the last state, but instead all stay off after the crash.

@edwardtfn
Copy link
Owner

edwardtfn commented Dec 21, 2024

By default, ESPHome restarts after 15min without API connection (Home Assistant connection):

reboot_timeout (Optional, Time): The amount of time to wait before rebooting when no client connects to the API. This is needed because sometimes the low level ESP functions report that the ESP is connected to the network, when in fact it is not - only a full reboot fixes it. Can be disabled by setting this to 0s. Defaults to 15min.

Source: https://esphome.io/components/api.html#configuration-variables

As the light state is not saved (yet, as a solution for #47 may change that), it will be off after the restart.

You can prevent the restart by setting this reboot_timeout to a higher time or to 0s to disable it.
Just add this to your panel's yaml:

api:
  reboot_timeout: 24h  # or 0s if you wanna disable this feature completely

@iceteaSA
Copy link
Author

@edwardtfn Thanks! I'll change that

I'm still pretty new to esphome, and HA, so sorry for the rookie mistake!

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