Validate an ESPHome device's LVGL structure
esphome_lvgl_validateCheck an ESPHome device's LVGL structure locally for duplicate page or widget IDs and missing default_page references before running a full config validation.
Instructions
Validate an ESPHome device's LVGL structure client-side, without the dashboard.
Checks for duplicate page/widget IDs and default_page references that
don't exist among the parsed pages. This is a structural check only —
it does not validate widget properties or ESPHome component
correctness.
Use when: a quick local pre-check after editing LVGL pages/widgets,
before a full esphome_validate_config or esphome_compile_device.
Not for: full component/property validation — use
esphome_validate_config.
Returns: {"device", "valid": <bool>, "pages": <count>, "widgets": <count>, "issues": [...]}.
Errors: {"error": "...", "valid": False} 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 | |||