esphome_lvgl_add_widget
Add an LVGL widget to an ESPHome device page and save the configuration. Specify widget type and properties for UI customization.
Instructions
Add an LVGL widget to a page on an ESPHome device and save the config.
widget_type: LVGL widget type — label, button, slider, arc, switch, spinbox, img, line, meter, etc. properties: dict of widget properties (id, x, y, width, height, text, value, styles, ...).
Lambda callbacks (on_click, on_value_changed) are not supported here — add them manually via esphome_get_config / esphome_write_config. After adding, run esphome_validate_config then esphome_compile_device + esphome_upload_device to deploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| properties | Yes | ||
| device_name | Yes | ||
| widget_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||