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' : '') + '
' + '
'