options > variables
This commit is contained in:
parent
ba89b56ddc
commit
66fde5080a
|
@ -12,11 +12,11 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widget is :ref:`lvgl-wgt-btn`. 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 options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the binary sensor.
|
||||
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
|
||||
- All other variables from :ref:`Binary Sensor <config-binary_sensor>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ Some widgets integrate also as native ESPHome components:
|
|||
- ESPHome component
|
||||
|
||||
* - ``btn``
|
||||
- :doc:`Binary Sensor </components/binary_sensor/lvgl>`, :doc:`Switch </components/switch/lvgl>`
|
||||
- :doc:`Switch </components/switch/lvgl>`, :doc:`Binary Sensor </components/binary_sensor/lvgl>`
|
||||
|
||||
* - ``switch``, ``checkbox``
|
||||
- :doc:`Switch </components/switch/lvgl>`
|
||||
|
@ -52,12 +52,11 @@ Some widgets integrate also as native ESPHome components:
|
|||
* - ``dropdown``, ``roller``
|
||||
- :doc:`Select </components/select/lvgl>`
|
||||
|
||||
* - ``led``
|
||||
- :doc:`Light </components/light/lvgl>`
|
||||
|
||||
* - ``textarea``
|
||||
- :doc:`Text </components/text/lvgl>`, :doc:`Text Sensor </components/text_sensor/lvgl>`
|
||||
|
||||
* - ``led``
|
||||
- :doc:`Light </components/light/lvgl>`
|
||||
|
||||
These are useful to make :ref:`automations <automation>` triggered by actions performed at the screen.
|
||||
|
||||
|
|
|
@ -12,12 +12,12 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widgets are :ref:`lvgl-wgt-arc`, :ref:`lvgl-wgt-bar`, :ref:`lvgl-wgt-sli` and :ref:`lvgl-wgt-spb`. A single number supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome number component.
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the number.
|
||||
- **animated** (*Optional*, boolean): Whether to set the value of the widget with an animation (if supported by the widget). Defaults to ``true``.
|
||||
- All other options from :ref:`Number <config-number>`.
|
||||
- All other variables from :ref:`Number <config-number>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -12,11 +12,11 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widgets are :ref:`lvgl-wgt-drp` and :ref:`lvgl-wgt-rol`. A single select supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome select component.
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the select.
|
||||
- All other options from :ref:`Select <config-select>`.
|
||||
- All other variables from :ref:`Select <config-select>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -12,11 +12,11 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widgets are :ref:`lvgl-wgt-arc`, :ref:`lvgl-wgt-bar`, :ref:`lvgl-wgt-sli` and :ref:`lvgl-wgt-spb`. A single sensor supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome sensor.
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the sensor.
|
||||
- All other options from :ref:`Sensor <config-sensor>`.
|
||||
- All other variables from :ref:`Sensor <config-sensor>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -12,12 +12,12 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widgets are :ref:`lvgl-wgt-btn` (with ``checkable`` option enabled), :ref:`lvgl-wgt-swi` and :ref:`lvgl-wgt-chk`. A single switch supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome switch component.
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a supported widget configured in LVGL, which will reflect the state of the switch.
|
||||
- **output_id** (*Optional*, :ref:`config-id`): The ID of a **binary** output to drive in sync with the ``checked`` state of the configured widget.
|
||||
- All other options from :ref:`Switch <config-switch>`.
|
||||
- All other variables from :ref:`Switch <config-switch>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -7,17 +7,15 @@ LVGL Text
|
|||
:description: Instructions for setting up an LVGL textarea Text component.
|
||||
:image: ../images/lvgl_c_txt.png
|
||||
|
||||
The ``lvgl`` text platform creates an editable text component from an LVGL textarea widget
|
||||
and requires :ref:`LVGL <lvgl-main>` to be configured.
|
||||
The ``lvgl`` text platform creates an editable text component from an LVGL textarea widget and requires :ref:`LVGL <lvgl-main>` to be configured.
|
||||
|
||||
Supported widget is :ref:`lvgl-wgt-txt`. A single text supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome text component.
|
||||
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a ``textarea`` widget configured in LVGL, which will reflect the state of the text component.
|
||||
- All other options from :ref:`Text <config-text>`.
|
||||
- All other variables from :ref:`Text <config-text>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -12,11 +12,11 @@ and requires :ref:`LVGL <lvgl-main>` to be configured.
|
|||
|
||||
Supported widget is :ref:`lvgl-wgt-txt`. A single text sensor supports only a single widget; in other words, it's not possible to have multiple widgets associated with a single ESPHome text sensor component.
|
||||
|
||||
Configuration options:
|
||||
----------------------
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **widget** (**Required**): The ID of a ``textarea`` widget configured in LVGL, which will reflect the state of the text sensor.
|
||||
- All other options from :ref:`Text Sensor <config-text_sensor>`.
|
||||
- All other variables from :ref:`Text Sensor <config-text_sensor>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
Loading…
Reference in New Issue