d76461d774
The two board profiles (5,000 lines each, 87 % the same text) become packages/core.yaml and one file per board under packages/boards/: the hardware, a table of 84 sizes and font sizes, 18 hooks with the lines of C++ only that board adds inside a shared lambda, and the board's own sections. packages/cyd.yaml and packages/guition.yaml keep their names and places (a screen installed from ESP Screens builds as before); home-like-2432s028.yaml and guition-4848s040.yaml become the same entries for a checkout. The firmware stays 0.2.70: the C++ ESPHome generates for each board, through the checkout profile and through the GitHub package route, was compared line by line with the old profiles' (docs/TEST_RESULTS_0284.md). tools/check_packages.py replaces tools/generate_packages.py; tools/profiles.py gives the tests and tools the three files as one; docs/PROFILES.md says how the files fit together and how a board is added. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
# ESP Screens - a Guition ESP32-S3-4848S040 (4-inch EU wallbox) built from this checkout: the bench and the
|
|
# manual route (README_EXTENDED.md, docs/GUITION.md).
|
|
#
|
|
# The screen is two packages: packages/core.yaml, which every board shares (the LVGL tree, the cards, the
|
|
# scripts, the entities), and packages/boards/guition-4848s040.yaml with this board's hardware and sizes.
|
|
# docs/PROFILES.md says how the files fit together. A screen installed from ESP Screens builds the same two
|
|
# files over GitHub through packages/guition.yaml; this file only adds what a build from a checkout needs:
|
|
# the secrets (api_encryption_key, ota_password, Wi-Fi) from secrets.yaml and the components of this checkout.
|
|
substitutions:
|
|
FONT_DIR: "fonts" # the fonts next to this file
|
|
|
|
packages:
|
|
core: !include packages/core.yaml
|
|
board: !include packages/boards/guition-4848s040.yaml
|
|
|
|
# The components of this checkout; packages/guition.yaml takes them from GitHub.
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: components
|
|
components: [smart_display]
|
|
|
|
api:
|
|
encryption:
|
|
key: !secret api_encryption_key
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret ota_password
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
# Mains-powered panel: no modem sleep, so HA updates and OTA arrive without beacon latency.
|
|
power_save_mode: none
|
|
ap:
|
|
ssid: "Smartdisplay Fallback Hotspot"
|
|
password: !secret ap_password
|
|
|
|
captive_portal:
|