LVGL Sensor
The lvgl sensor platform creates a sensor component from an LVGL widget
and requires LVGL to be configured.
Supported widgets are arc, bar, slider and spinbox. 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 variables
Section titled “Configuration variables”- widget (Required): The ID of a supported widget configured in LVGL, which will reflect the state of the sensor.
- trigger (Optional, string): Specifies which events will cause the sensor to be updated with the widget’s value. One of
on_change,on_update,on_value,on_release. Defaults toon_value.on_change: Update only when the user interacts with the widget.on_update: Update only when the value is changed programmatically (e.g. via anlvgl.*.updateaction).on_value: Update on both user interaction and programmatic changes.on_release: Update only when the user releases the widget after interaction.
- All other variables from Sensor.
Example:
sensor: - platform: lvgl widget: slider_id name: LVGL SliderNOTE
Widget-specific actions (lvgl.arc.update, lvgl.bar.update, lvgl.slider.update, lvgl.spinbox.update, lvgl.spinbox.decrement, lvgl.spinbox.increment )
will trigger corresponding component updates to be sent to Home Assistant if the trigger is set to on_value (the default) or on_update.