2018-05-13 11:37:02 +02:00
|
|
|
Restart Switch
|
|
|
|
==============
|
|
|
|
|
2018-11-14 22:12:27 +01:00
|
|
|
.. seo::
|
2019-02-16 23:25:23 +01:00
|
|
|
:description: Instructions for setting up switches that can remotely reboot the ESP in ESPHome.
|
2021-11-16 03:19:33 +01:00
|
|
|
:image: restart.svg
|
2018-11-14 22:12:27 +01:00
|
|
|
|
2018-05-13 11:37:02 +02:00
|
|
|
The ``restart`` switch platform allows you to restart your node remotely
|
|
|
|
through Home Assistant.
|
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
.. figure:: images/restart-ui.png
|
|
|
|
:align: center
|
|
|
|
:width: 80.0%
|
2018-05-13 11:37:02 +02:00
|
|
|
|
2018-11-19 18:32:16 +01:00
|
|
|
.. code-block:: yaml
|
2018-05-13 11:37:02 +02:00
|
|
|
|
|
|
|
# Example configuration entry
|
|
|
|
switch:
|
|
|
|
- platform: restart
|
|
|
|
name: "Living Room Restart"
|
|
|
|
|
|
|
|
Configuration variables:
|
2018-08-24 22:44:01 +02:00
|
|
|
------------------------
|
2018-05-13 11:37:02 +02:00
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
- **name** (**Required**, string): The name for the switch.
|
|
|
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
2019-02-17 12:28:17 +01:00
|
|
|
- All other options from :ref:`Switch <config-switch>`.
|
2018-06-01 18:10:00 +02:00
|
|
|
|
|
|
|
See Also
|
2018-08-24 22:44:01 +02:00
|
|
|
--------
|
2018-06-01 18:10:00 +02:00
|
|
|
|
|
|
|
- :doc:`shutdown`
|
2021-10-06 09:44:52 +02:00
|
|
|
- :doc:`safe_mode`
|
2022-09-12 00:23:55 +02:00
|
|
|
- :doc:`factory_reset`
|
|
|
|
- :doc:`/components/button/restart`
|
2018-06-01 18:10:00 +02:00
|
|
|
- :doc:`template`
|
2021-11-30 02:25:33 +01:00
|
|
|
- :apiref:`restart/switch/restart_switch.h`
|
2019-02-07 13:54:45 +01:00
|
|
|
- :ghedit:`Edit`
|