mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-15 20:31:55 +01:00
31 lines
822 B
ReStructuredText
31 lines
822 B
ReStructuredText
Restart Switch
|
|
==============
|
|
|
|
The ``restart`` switch platform allows you to restart your node remotely
|
|
through Home Assistant.
|
|
|
|
|image0|
|
|
|
|
.. code:: yaml
|
|
|
|
# Example configuration entry
|
|
switch:
|
|
- platform: restart
|
|
name: "Living Room Restart"
|
|
|
|
Configuration variables:
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
- **name** (**Required**, string): The name for the switch.
|
|
- **id** (*Optional*,
|
|
`id </esphomeyaml/configuration-types.html#id>`__): Manually specify
|
|
the ID used for code generation.
|
|
- All other options from
|
|
`Switch </esphomeyaml/components/switch/index.html#base-switch-configuration>`__
|
|
and `MQTT
|
|
Component </esphomeyaml/components/mqtt.html#mqtt-component-base-configuration>`__.
|
|
|
|
.. |image0| image:: /esphomeyaml/components/switch/restart.png
|
|
:class: align-center
|
|
:width: 80.0%
|