38 lines
1021 B
ReStructuredText
38 lines
1021 B
ReStructuredText
Safe Mode Switch
|
|
================
|
|
|
|
.. seo::
|
|
:description: Instructions for setting up switches that can remotely reboot the ESP in ESPHome into safe mode.
|
|
:image: restart.svg
|
|
|
|
The ``safe_mode`` switch allows you to remotely reboot your node into :doc:`/components/safe_mode`. This is useful in certain situations where a misbehaving component, or low memory state is preventing Over-The-Air updates from completing successfully.
|
|
|
|
This component requires :doc:`/components/safe_mode` to be configured.
|
|
|
|
.. figure:: images/safemode-ui.png
|
|
:align: center
|
|
:width: 80.0%
|
|
|
|
.. code-block:: yaml
|
|
|
|
# Example configuration entry
|
|
switch:
|
|
- platform: safe_mode
|
|
name: "Living Room Restart (Safe Mode)"
|
|
|
|
Configuration variables:
|
|
------------------------
|
|
|
|
- All options from :ref:`Switch <config-switch>`.
|
|
|
|
See Also
|
|
--------
|
|
|
|
- :doc:`shutdown`
|
|
- :doc:`restart`
|
|
- :doc:`factory_reset`
|
|
- :doc:`/components/button/safe_mode`
|
|
- :doc:`template`
|
|
- :apiref:`safe_mode/safe_mode_switch.h`
|
|
- :ghedit:`Edit`
|