mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
db2fda75c3
Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
40 lines
1.2 KiB
ReStructuredText
40 lines
1.2 KiB
ReStructuredText
LVGL Binary Sensor
|
|
==================
|
|
|
|
.. seo::
|
|
:description: Instructions for setting up an LVGL widget binary sensor.
|
|
:image: ../images/lvgl_c_bns.png
|
|
|
|
The ``lvgl`` binary sensor platform creates a binary sensor from an LVGL widget
|
|
and requires :doc:`LVGL </components/lvgl/index>` to be configured.
|
|
|
|
Supported widget is :ref:`lvgl-widget-button`. A single binary sensor supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome binary sensor component.
|
|
|
|
Configuration variables:
|
|
------------------------
|
|
|
|
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the binary sensor.
|
|
- All other variables from :ref:`Binary Sensor <config-binary_sensor>`.
|
|
|
|
Example:
|
|
|
|
.. code-block:: yaml
|
|
|
|
binary_sensor:
|
|
- platform: lvgl
|
|
widget: btn_id
|
|
name: LVGL push button
|
|
|
|
See Also
|
|
--------
|
|
- :doc:`LVGL Main component </components/lvgl/index>`
|
|
- :ref:`Button widget <lvgl-widget-button>`
|
|
- :doc:`/components/sensor/lvgl`
|
|
- :doc:`/components/number/lvgl`
|
|
- :doc:`/components/switch/lvgl`
|
|
- :doc:`/components/select/lvgl`
|
|
- :doc:`/components/light/lvgl`
|
|
- :doc:`/components/text/lvgl`
|
|
- :doc:`/components/text_sensor/lvgl`
|
|
- :ghedit:`Edit`
|