Edit esp-reterminal-e1001.yaml
This commit is contained in:
@@ -6,8 +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.9.0 2026-07-30 Nine-job 3x3 grid layout with laundry Once jobs; elapsed
|
# V0.9.1 2026-07-30 Redesigned job tiles: big icon in left quarter, title and
|
||||||
# Complete display text; dryer and washing-machine icons.
|
# status text left-aligned in right three-quarters.
|
||||||
# V0.8.0 2026-07-30 Removed the Appliances page and page-selection state; both white
|
# 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.
|
# 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
|
# 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 foreground = inverse ? COLOR_OFF : COLOR_ON;
|
||||||
const Color background = inverse ? COLOR_ON : COLOR_OFF;
|
const Color background = inverse ? COLOR_ON : COLOR_OFF;
|
||||||
|
|
||||||
// Main job icon, centred near the top of the tile.
|
// Big job icon in the left quarter of the tile.
|
||||||
draw_job_icon(icon_type, x + ((w - 50) / 2), y + 6, foreground, background);
|
draw_job_icon(icon_type, x + 6, y + 41, foreground, background);
|
||||||
|
|
||||||
// Small state icon in the upper-right corner.
|
// Two-line job title and status, left-aligned in the right 3/4.
|
||||||
draw_state_icon(state, x + w - 42, y + 10, foreground, background);
|
const int text_x = x + 71;
|
||||||
|
|
||||||
// Two-line job title and one large status line.
|
|
||||||
it.printf(
|
it.printf(
|
||||||
x + (w / 2),
|
text_x,
|
||||||
y + 72,
|
y + 40,
|
||||||
id(font_job_title),
|
id(font_job_title),
|
||||||
foreground,
|
foreground,
|
||||||
TextAlign::CENTER,
|
TextAlign::CENTER_LEFT,
|
||||||
"%s",
|
"%s",
|
||||||
title_line_1
|
title_line_1
|
||||||
);
|
);
|
||||||
|
|
||||||
it.printf(
|
it.printf(
|
||||||
x + (w / 2),
|
text_x,
|
||||||
y + 100,
|
y + 70,
|
||||||
id(font_job_title),
|
id(font_job_title),
|
||||||
foreground,
|
foreground,
|
||||||
TextAlign::CENTER,
|
TextAlign::CENTER_LEFT,
|
||||||
"%s",
|
"%s",
|
||||||
title_line_2
|
title_line_2
|
||||||
);
|
);
|
||||||
|
|
||||||
it.printf(
|
it.printf(
|
||||||
x + (w / 2),
|
text_x,
|
||||||
y + 150,
|
y + 100,
|
||||||
id(font_job_status),
|
id(font_job_status),
|
||||||
foreground,
|
foreground,
|
||||||
TextAlign::CENTER,
|
TextAlign::CENTER_LEFT,
|
||||||
"%s",
|
"%s",
|
||||||
status.c_str()
|
status.c_str()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user