Edit esp-reterminal-e1001.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-30 21:25:26 +12:00
parent beb900e32e
commit 884393688f
+15 -16
View File
@@ -6,8 +6,8 @@
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-reterminal-e1001.yaml
#:########################################################################################:#
# VERSIONS:
# V0.9.0 2026-07-30 Nine-job 3x3 grid layout with laundry Once jobs; elapsed
# Complete display text; dryer and washing-machine icons.
# V0.9.1 2026-07-30 Redesigned job tiles: big icon in left quarter, title and
# status text left-aligned in right three-quarters.
# V0.8.0 2026-07-30 Removed the Appliances page and page-selection state; both white
# buttons now show and check the single seven-job Jobs page.
# V0.7.0 2026-07-30 4+3 job layout with plant watering jobs; smaller 190 px tiles
@@ -747,39 +747,38 @@ display:
const Color foreground = inverse ? COLOR_OFF : COLOR_ON;
const Color background = inverse ? COLOR_ON : COLOR_OFF;
// Main job icon, centred near the top of the tile.
draw_job_icon(icon_type, x + ((w - 50) / 2), y + 6, foreground, background);
// Big job icon in the left quarter of the tile.
draw_job_icon(icon_type, x + 6, y + 41, foreground, background);
// Small state icon in the upper-right corner.
draw_state_icon(state, x + w - 42, y + 10, foreground, background);
// Two-line job title and status, left-aligned in the right 3/4.
const int text_x = x + 71;
// Two-line job title and one large status line.
it.printf(
x + (w / 2),
y + 72,
text_x,
y + 40,
id(font_job_title),
foreground,
TextAlign::CENTER,
TextAlign::CENTER_LEFT,
"%s",
title_line_1
);
it.printf(
x + (w / 2),
y + 100,
text_x,
y + 70,
id(font_job_title),
foreground,
TextAlign::CENTER,
TextAlign::CENTER_LEFT,
"%s",
title_line_2
);
it.printf(
x + (w / 2),
y + 150,
text_x,
y + 100,
id(font_job_status),
foreground,
TextAlign::CENTER,
TextAlign::CENTER_LEFT,
"%s",
status.c_str()
);