esphome-docs/components/switch/restart.rst

36 lines
834 B
ReStructuredText
Raw Normal View History

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.
: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
.. 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-05-12 22:44:59 +02:00
- :apiref:`restart/restart_switch.h`
- :ghedit:`Edit`