Files
esphome-configs/common/nspanel_terminal/forecast_day.yaml
T
randy 53c427e99c nspanel-dev: LVGL UI on nspanel-terminal instead of nspanel_lovelace
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.
2026-10-30 17:20:44 +01:00

50 lines
1.2 KiB
YAML

# One forecast row: day, icon, day/night temperature on two lines, all centred vertically.
# Not clickable, so a tap falls through to the home page.
obj:
clickable: false
width: SIZE_CONTENT
height: SIZE_CONTENT
bg_opa: TRANSP
border_width: 0
pad_all: 0
layout:
type: FLEX
flex_flow: ROW
flex_align_cross: CENTER
pad_column: 10
widgets:
- label:
id: forecast_day_${i}
text: ""
text_font: font_s
text_color: 0xB4B4BA
width: 26
text_align: RIGHT
- label:
id: forecast_icon_${i}
text: ""
text_font: icon_s
text_color: 0xFFFFFF
- obj:
clickable: false
width: SIZE_CONTENT
height: SIZE_CONTENT
bg_opa: TRANSP
border_width: 0
pad_all: 0
layout:
type: FLEX
flex_flow: COLUMN
pad_row: 0
widgets:
- label:
id: forecast_high_${i}
text: ""
text_font: font_s
text_color: 0xFFFFFF
- label:
id: forecast_low_${i}
text: ""
text_font: font_s
text_color: 0x8E8E93