From 54ba8436cdfad5ff8899b1dee6c31e126002f91f Mon Sep 17 00:00:00 2001 From: Sterling Archer Date: Wed, 12 Aug 2026 15:41:34 -0700 Subject: [PATCH] Show serial number next to Anker device name on the monitor page --- solixauto/monitor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solixauto/monitor.py b/solixauto/monitor.py index a699c8f..e4a6104 100644 --- a/solixauto/monitor.py +++ b/solixauto/monitor.py @@ -1114,6 +1114,11 @@ function nameCell(d, kind, cls) { return '' + esc(d.name) + ''; } +function serialTag(d) { + if (!d.serial) return ''; + return '(' + esc(d.serial) + ')'; +} + function startEdit(span) { if (span.dataset.editing) return; span.dataset.editing = '1'; @@ -1226,6 +1231,7 @@ function renderAnker(devices) { if (!d.live) { return '
' + nameCell(d, 'anker', 'device-name') + + serialTag(d) + '
' + '

No live readings. Live data comes from a running ' + 'automation.
Start one with solixauto service <profile>.

'; @@ -1233,6 +1239,7 @@ function renderAnker(devices) { return '
' + '
' + nameCell(d, 'anker', 'device-name') + + serialTag(d) + (d.floor_latched ? 'FLOOR LATCHED' : '') + '
' + '
'