Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions content/components/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,32 @@ sensor:
update_interval: 10s
```

LVGL-style configuration hierarchies are also supported:

```yaml
# In interface.yaml
lvgl:
pages:
- id: main_page
widgets:
- label:
id: title_label
text: "Main Page"
```

```yaml
packages:
- !include interface.yaml
lvgl:
pages:
- id: !extend main_page
widgets:
- label:
id: !extend title_label
text: "New Title"
text_color: red
```

`!extend` also works with substitutions and jinja:

```yaml
Expand Down Expand Up @@ -235,6 +261,19 @@ sensor:
- id: !remove uptime_sensor
```

Remove an item in a LVGL-style configuration:

```yaml
packages:
- !include interface.yaml # see above
lvgl:
pages:
- id: !extend main_page
widgets:
- label:
id: !remove title_label
```

To remove captive portal for a specific device:

```yaml
Expand Down