Get an ESPHome device's LVGL pages
esphome_lvgl_get_pagesList LVGL pages configured on an ESPHome device, including the default page, page IDs, background colors, and widget counts.
Instructions
Get the LVGL pages configured on an ESPHome device.
Parses the device's YAML and reads the lvgl: section's pages and
displays[0].default_page.
Use when: getting page IDs, background colors and widget counts before
drilling into one page with esphome_lvgl_get_page_widgets.
Not for: the widgets on one specific page — use
esphome_lvgl_get_page_widgets.
Returns: {"device": ..., "default_page": ..., "pages": [{"id", "bg_color", "widget_count"}, ...]}.
Errors: {"error": "..."} when the file can't be found/parsed, or when
there is no lvgl: section in the device config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes | Device name, with or without the '.yaml' suffix, e.g. 'kitchen_display'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||