mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09: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.
22 lines
434 B
YAML
22 lines
434 B
YAML
# Page switch arrow in a top corner; floats over the page's flex layout
|
|
# vars: icon, align, x, to (page id), hidden
|
|
obj:
|
|
floating: true
|
|
hidden: ${hidden}
|
|
align: ${align}
|
|
x: ${x}
|
|
y: -16
|
|
width: 72
|
|
height: 52
|
|
bg_opa: TRANSP
|
|
border_width: 0
|
|
pad_all: 0
|
|
on_click:
|
|
- lvgl.page.show: ${to}
|
|
widgets:
|
|
- label:
|
|
text: "${icon}"
|
|
text_font: icon_s
|
|
text_color: 0xB4B4BA
|
|
align: CENTER
|