mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 01:06:52 +01:00
The display runs the ptaru/nspanel-terminal TFT and ESPHome draws the UI with LVGL (component from a local checkout for now, see PR ptaru/nspanel-terminal#1). Pages: home (clock, weather, forecast, temperatures), lights, outside, irrigation, thermostat, gate, status/boot screen; light detail with brightness, colour temperature or hue on long press. Grid tiles come from packages in common/nspanel_terminal/ that add themselves to a page. Unavailable entities are greyed out, OTA progress shows on the status page, sleep dim and the notify/show_info actions match the other panels.
15 lines
615 B
YAML
15 lines
615 B
YAML
# Package: tile on a grid page that calls a Home Assistant action on an entity (e.g. button.press).
|
|
# Its checked/disabled states are up to the owner (e.g. gate.yaml). Tiles fill the page in package order.
|
|
# vars: page, id, name, icon (MDI glyph, must be in icon_s), action, entity
|
|
lvgl:
|
|
pages:
|
|
- id: !extend ${page}
|
|
widgets:
|
|
- button:
|
|
<<: !include {file: tile.yaml, vars: {id: "${id}", name: "${name}", icon: "${icon}"}}
|
|
on_click:
|
|
- homeassistant.action:
|
|
action: ${action}
|
|
data:
|
|
entity_id: ${entity}
|