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.
26 lines
623 B
YAML
26 lines
623 B
YAML
# Look of a 2x3 grid tile (button body): icon top left, name bottom left; merge it into a button with <<:
|
|
# checked = on (orange), disabled = entity unavailable (grey), pressed = touch feedback
|
|
# vars: id, name, icon (MDI glyph, must be in icon_s)
|
|
id: ${id}
|
|
width: 130
|
|
height: 112
|
|
styles: tile_style
|
|
pressed:
|
|
bg_color: 0x48484A
|
|
checked:
|
|
bg_color: 0xF5B342
|
|
text_color: 0x000000
|
|
disabled:
|
|
bg_color: 0x161618
|
|
text_color: 0x48484A
|
|
widgets:
|
|
- label:
|
|
text: "${icon}"
|
|
text_font: icon_s
|
|
align: TOP_LEFT
|
|
- label:
|
|
text: "${name}"
|
|
align: BOTTOM_LEFT
|
|
long_mode: WRAP
|
|
width: 100%
|