Edit esp-reterminal-e1001.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-20 15:17:25 +12:00
parent cb95ceacea
commit bffcda38d9
+19 -42
View File
@@ -6,6 +6,8 @@
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-reterminal-e1001.yaml # https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-reterminal-e1001.yaml
#:########################################################################################:# #:########################################################################################:#
# VERSIONS: # VERSIONS:
# V0.2 2026-07-20 Enabled ESP-IDF experimental features required by ESPHome
# 2026.7.0 for OTA support with 32MB flash.
# V0.1 2026-07-20 Initial ESPHome bring-up, Home Assistant API connection, # V0.1 2026-07-20 Initial ESPHome bring-up, Home Assistant API connection,
# E1001 e-paper display test matrix and physical button setup. # E1001 e-paper display test matrix and physical button setup.
#:########################################################################################:# #:########################################################################################:#
@@ -51,7 +53,7 @@ substitutions:
# Project Naming # Project Naming
project_name: "SeeedStudio.reTerminal-E1001" project_name: "SeeedStudio.reTerminal-E1001"
project_version: "v0.1" project_version: "v0.2"
# Passwords and Secrets # Passwords and Secrets
api_key: !secret esp-api_key api_key: !secret esp-api_key
@@ -125,6 +127,8 @@ esp32:
flash_size: 32MB flash_size: 32MB
framework: framework:
type: arduino type: arduino
advanced:
enable_idf_experimental_features: true
#:########################################################################################:# #:########################################################################################:#
# PSRAM: # PSRAM:
@@ -211,7 +215,9 @@ display:
// Tile matrix geometry: 4 columns x 3 rows. // Tile matrix geometry: 4 columns x 3 rows.
const int columns = 4; const int columns = 4;
const int rows = 3;
const int margin_x = 10; const int margin_x = 10;
const int margin_bottom = 10;
const int gap_x = 8; const int gap_x = 8;
const int gap_y = 8; const int gap_y = 8;
const int grid_top = 72; const int grid_top = 72;
@@ -233,32 +239,15 @@ display:
// Outer screen border and header. // Outer screen border and header.
it.rectangle(0, 0, screen_width - 1, screen_height - 1); it.rectangle(0, 0, screen_width - 1, screen_height - 1);
it.line(0, header_height, screen_width - 1, header_height); it.line(0, header_height, screen_width - 1, header_height);
it.print(16, 31, id(font_title), TextAlign::CENTER_LEFT,
it.print( "Home Status");
16,
31,
id(font_title),
TextAlign::CENTER_LEFT,
"Home Status"
);
if (id(wifi_ip_address).has_state()) { if (id(wifi_ip_address).has_state()) {
it.printf( it.printf(784, 31, id(font_small), TextAlign::CENTER_RIGHT,
784, "ESPHome | %s", id(wifi_ip_address).state.c_str());
31,
id(font_small),
TextAlign::CENTER_RIGHT,
"ESPHome | %s",
id(wifi_ip_address).state.c_str()
);
} else { } else {
it.print( it.print(784, 31, id(font_small), TextAlign::CENTER_RIGHT,
784, "ESPHome | Connecting...");
31,
id(font_small),
TextAlign::CENTER_RIGHT,
"ESPHome | Connecting..."
);
} }
// Draw the twelve initial placeholder tiles. // Draw the twelve initial placeholder tiles.
@@ -269,24 +258,12 @@ display:
const int y = grid_top + row * (tile_height + gap_y); const int y = grid_top + row * (tile_height + gap_y);
it.rectangle(x, y, tile_width, tile_height); it.rectangle(x, y, tile_width, tile_height);
it.printf(x + (tile_width / 2), y + 46,
it.printf( id(font_tile), TextAlign::CENTER,
x + (tile_width / 2), "%s", tile_line_1[tile]);
y + 46, it.printf(x + (tile_width / 2), y + 82,
id(font_tile), id(font_small), TextAlign::CENTER,
TextAlign::CENTER, "%s", tile_line_2[tile]);
"%s",
tile_line_1[tile]
);
it.printf(
x + (tile_width / 2),
y + 82,
id(font_small),
TextAlign::CENTER,
"%s",
tile_line_2[tile]
);
} }
#:########################################################################################:# #:########################################################################################:#