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.
|
2018-11-19 18:32:16 +01:00
|
|
|
:image: restart.png
|
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`
|
|
|
|
- :doc:`template`
|
2019-02-07 13:54:45 +01:00
|
|
|
- :apiref:`switch_/restart_switch.h`
|
|
|
|
- :ghedit:`Edit`
|