You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there's a watchdog/reboot failsafe in ESPHome where a reboot is forced by default if there isn't a native API connection that's made within 15 minutes. I'd like the watchdog/reboot failsafe to reset the timer if there's a connection to the ESPHome web APIs (EventSource or RESTful) as well. Some applications choose, for a variety of reasons, to access / control ESPHome devices through the terrific web APIs instead of the native one and they shouldn't be "penalized" by default to have to go through additional configuration hoops in order to prevent the watchdog/reboot failsafe from triggering.
Additionally, the watchdog/reboot failsafe serves an important function, and disabling it is far less preferable an option to ensuring that web API calls count toward resetting the reboot timer. That allows the failsafe to perform it's intended function while correctly interpreting connectivity from the various API clients.
Please describe your use case for this integration and alternatives you've tried:
Without explicitly setting the reboot_timeout configuration variable under the api block to 0s, an ESPHome device will always reboot every 15 minutes regardless of whether or not it's actually functioning correctly and being accessed through one of the other API mechanisms ESPHome provides (namely the web API in this case). Reboots can be disruptive/unnecessary for devices and can potentially provide gaps in functionality in between reboot cycles.
Additional context
While a workaround like:
api:
reboot_timeout: 0s
does work, it also disables the reboot watchdog failsafe function, which is valuable. I believe a more comprehensive view of what ESPHome considers connecting to the API will provide a more complete functional experience for the end user where reboots related to the API watchdog are only triggered when there's truly no connection happening to any of the ESPHome API endpoints (native or web).
The text was updated successfully, but these errors were encountered:
Currently there's a watchdog/reboot failsafe in ESPHome where a reboot is forced by default if there isn't a native API connection that's made within 15 minutes. I'd like the watchdog/reboot failsafe to reset the timer if there's a connection to the ESPHome web APIs (EventSource or RESTful) as well. Some applications choose, for a variety of reasons, to access / control ESPHome devices through the terrific web APIs instead of the native one and they shouldn't be "penalized" by default to have to go through additional configuration hoops in order to prevent the watchdog/reboot failsafe from triggering.
Additionally, the watchdog/reboot failsafe serves an important function, and disabling it is far less preferable an option to ensuring that web API calls count toward resetting the reboot timer. That allows the failsafe to perform it's intended function while correctly interpreting connectivity from the various API clients.
Please describe your use case for this integration and alternatives you've tried:
Without explicitly setting the
reboot_timeout
configuration variable under theapi
block to0s
, an ESPHome device will always reboot every 15 minutes regardless of whether or not it's actually functioning correctly and being accessed through one of the other API mechanisms ESPHome provides (namely the web API in this case). Reboots can be disruptive/unnecessary for devices and can potentially provide gaps in functionality in between reboot cycles.Additional context
While a workaround like:
does work, it also disables the reboot watchdog failsafe function, which is valuable. I believe a more comprehensive view of what ESPHome considers connecting to the API will provide a more complete functional experience for the end user where reboots related to the API watchdog are only triggered when there's truly no connection happening to any of the ESPHome API endpoints (native or web).
The text was updated successfully, but these errors were encountered: