mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
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.
This commit is contained in:
1 parent
0e7dc6591f
commit
53c427e99c
17 files changed
+1789
-426
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Grid page (list item of lvgl pages): title and arrows; the 2x3 tiles come from the *_tile.yaml packages
|
||||
# vars: id, title, prev, next (page ids for the arrows), skip (hidden page: out of the page cycle, no next arrow)
|
||||
id: ${id}
|
||||
skip: ${skip}
|
||||
styles: page_style
|
||||
layout:
|
||||
type: FLEX
|
||||
flex_flow: ROW_WRAP
|
||||
widgets:
|
||||
- label:
|
||||
text: "${title}"
|
||||
text_font: font_s
|
||||
text_color: 0xB4B4BA
|
||||
width: 100%
|
||||
text_align: CENTER
|
||||
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0141", align: TOP_LEFT, x: -16, to: "${prev}", hidden: false}}
|
||||
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0142", align: TOP_RIGHT, x: 16, to: "${next}", hidden: "${skip}"}}
|
||||
Reference in new issue
Block a user