mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Revert add power_on_value to gpio switch (#78)
This commit is contained in:
parent
fbf1e039e8
commit
6bcabc1d9c
@ -23,12 +23,17 @@ Configuration variables:
|
||||
- **pin** (**Required**, :ref:`Pin Schema <config-pin_schema>`): The
|
||||
GPIO pin to use for the switch.
|
||||
- **name** (**Required**, string): The name for the switch.
|
||||
- **power_on_value** (*Optional*, boolean): The state this switch should be initialized with on boot.
|
||||
Please note that certain pins can have pull-up/down resistors that activate/deactivate a pin before
|
||||
esphomelib can initialize them. Please check with a multimeter and use another pin if necessary.
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- All other options from :ref:`Switch <config-switch>` and :ref:`MQTT Component <config-mqtt-component>`.
|
||||
|
||||
.. note::
|
||||
|
||||
esphomelib will attempt to restore the state of the switch on boot-up and write the value
|
||||
very early in the boot process.
|
||||
|
||||
Please note that certain pins can have pull-up/down resistors that activate/deactivate a pin before
|
||||
esphomelib can initialize them. Please check with a multimeter and use another pin if necessary.
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user