esphome-docs/esphomeyaml/components/output/gpio.rst

41 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
GPIO Output
===========
The GPIO output component is quite simple: It exposes a single GPIO pin
as an output component. Note that output components are **not** switches and
2018-06-01 18:10:00 +02:00
will not show up in Home Assistant. See :doc:`GPIO Switch <gpio>`.
2018-05-13 11:37:02 +02:00
.. code:: yaml
# Example configuration entry
output:
- platform: gpio
pin: D1
2018-06-01 18:10:00 +02:00
id: gpio_d1
2018-05-13 11:37:02 +02:00
Configuration variables:
~~~~~~~~~~~~~~~~~~~~~~~~
2018-06-01 18:10:00 +02:00
- **pin** (**Required**, :ref:`Pin Schema <config-pin_schema>`): The pin to use PWM on.
- **id** (**Required**, :ref:`config-id`): The id to use for this output component.
- All other options from :ref:`Output <config-output>`.
.. warning::
This is an **output component** and will not visible from the frontend. Output components are intermediary
components that can be attached to for example lights. To have a GPIO pin in the Home Assistant frontend, please
see the :doc:`/esphomeyaml/components/switch/gpio`.
See Also
^^^^^^^^
- :doc:`/esphomeyaml/components/switch/gpio`
- :doc:`/esphomeyaml/components/output/index`
- :doc:`/esphomeyaml/components/output/esp8266_pwm`
- :doc:`/esphomeyaml/components/output/ledc`
- :doc:`/esphomeyaml/components/light/binary`
- :doc:`/esphomeyaml/components/fan/binary`
- :doc:`/esphomeyaml/components/power_supply`
- :doc:`API Reference </api/output/gpio-binary>`
2018-06-04 08:17:22 +02:00
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/output/gpio.rst>`__