GPIO Switch add default to HIGH option

This commit is contained in:
Otto Winter 2018-06-06 22:26:25 +02:00
parent 0a69de0945
commit 3b5c945c43
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -26,6 +26,21 @@ Configuration variables:
- **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::
If you want the pin to default to HIGH on startup, you can use the inverted property
of the :ref:`Pin Schema <config-pin_schema>`:
.. code:: yaml
# Example configuration entry
switch:
- platform: gpio
pin:
number: 25
inverted: True
name: "Living Room Dehumidifier"
See Also
^^^^^^^^