Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions changelog/highlights/303.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"de": {
"*": "Fehler im Monitoring und im Medium-Modus behoben",
"dashboard": "Monitoring nennt die Werte ohne Rolle und führt zu den Lernfunktionen",
"installer": "Eine eingetippte IP-Adresse in Schritt 5 meldet kein fremdes Gerät mehr"
},
"en": {
"*": "Monitoring names values without a role and links to the learning settings",
"installer": "A typed IP address in medium step 5 no longer reports a foreign device"
}
}
10 changes: 8 additions & 2 deletions dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v0.11.22-pre.39 (2026-11-06)
## v0.11.22-pre.40 (2026-11-06)

### Features

Expand Down Expand Up @@ -367,6 +367,10 @@
- **storage:** wipe old file system signatures before formatting a stick (#245) (aeafa63)
- **storage:** set up, back up and replug the additional drive reliably (#247) (b668394)
- **automations:** correct the learning feature after the full review (#296) (88f3c75)
- **monitoring:** add the text for the learning settings button (50b5e84)
- **monitoring:** name the values of the role notice (9462d1f)
- **monitoring:** open the learning settings from the learned values (a07ed43)
- Monitoring names values without a role and links to the learning settings (#303)
- **backup:** A restore stays in place even when the battery state cannot be written (#288) (e5c5437)
- **webui:** mark rules adopted from the suggestions band (6e20041)
- **autolearn:** accept baseline weeks with five days of data (fbbda8c)
Expand Down Expand Up @@ -571,6 +575,8 @@

### Chores

- **energy:** drop the styles and getter of the old energy notices (a864af2)
- **monitoring:** drop the old notice keys, bump the changed assets, describe the button (c99833b)
- **webui:** bump the cache marks of the changed automation assets (fa93e53)
- **dashboard:** bump the cache-bust marks for the system card (31ecbb8)
- **dashboard:** move the cache history rows to the current pre-release (8a60da5)
Expand Down Expand Up @@ -609,7 +615,7 @@

### CI

- parallelize the smoke test and run the macOS media check (#302)
- parallelize the smoke test and run the macOS media check (#302) (30421b0)

## v0.11.20 (2026-11-16)

Expand Down
2 changes: 1 addition & 1 deletion dashboard/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.11.22-pre.39
v0.11.22-pre.40
28 changes: 27 additions & 1 deletion dashboard/internal/monitoring/notice.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ func energyNotices(in Input) []Notice {
if len(in.Config.RoleNeeded) > 0 {
ids := append([]string{}, in.Config.RoleNeeded...)
sort.Strings(ids)
labels := roleNeededLabels(snap, ids)
out = append(out, Notice{
ID: "energy:role_needed",
Source: "energy",
Severity: "info",
Code: "role_needed",
Params: map[string]any{"ids": ids},
Params: map[string]any{"ids": ids, "labels": labels},
Steps: []Step{
{Code: "set_role", Target: "energy.focus", IDs: ids},
{Code: "role_keep", Target: "action.role_keep", IDs: ids},
Expand All @@ -156,6 +157,31 @@ func energyNotices(in Input) []Notice {
return out
}

// roleNeededLabels names the values in ids in the same order: the label of the
// resolved entity, else the name of the unassigned value, else the entity ID.
func roleNeededLabels(snap energy.Snapshot, ids []string) []string {
names := map[string]string{}
for _, e := range snap.Unassigned {
if e.Name != "" {
names[e.EntityID] = e.Name
}
}
for _, e := range snap.Entities {
if e.Label != "" {
names[e.EntityID] = e.Label
}
}
labels := make([]string, 0, len(ids))
for _, id := range ids {
if name := names[id]; name != "" {
labels = append(labels, name)
} else {
labels = append(labels, id)
}
}
return labels
}

func chainNotices(snap energy.Snapshot) []Notice {
var out []Notice
for _, chain := range snap.Chains {
Expand Down
24 changes: 24 additions & 0 deletions dashboard/internal/monitoring/notice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@ func TestCollectEnergyNotices(t *testing.T) {
}
}

func TestRoleNeededLabels(t *testing.T) {
in := Input{
Snapshot: energy.Snapshot{
Entities: []energy.ResolvedEntity{{EntityID: "x", Label: "Speicher Leistung"}},
Unassigned: []energy.UnassignedEntity{{EntityID: "y", Name: "Zähler"}},
},
Config: settings.EnergyConfig{RoleNeeded: []string{"z", "y", "x"}},
}
var rn *Notice
got := Collect(in)
for i := range got {
if got[i].ID == "energy:role_needed" {
rn = &got[i]
}
}
if rn == nil {
t.Fatal("no role_needed notice")
}
want := []string{"Speicher Leistung", "Zähler", "z"}
if !reflect.DeepEqual(rn.Params["labels"], want) {
t.Errorf("labels = %v, want %v", rn.Params["labels"], want)
}
}

func TestCollectMeasuredWithLoadRoleIsQuiet(t *testing.T) {
in := Input{Config: settings.EnergyConfig{
Interpretation: energy.Interpretation{LoadMode: energy.LoadModeMeasured},
Expand Down
5 changes: 5 additions & 0 deletions dashboard/internal/webui/cache-bust-history.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
version,date,asset,v,note
v0.11.22-pre.40,2026-11-30,css/manager.css,54,
v0.11.22-pre.40,2026-11-30,js/energy.page.js,19,
v0.11.22-pre.40,2026-11-30,js/monitoring-model.js,6,
v0.11.22-pre.40,2026-11-30,js/monitoring.page.js,5,
v0.11.22-pre.40,2026-11-30,js/settings.page.js,45,
v0.11.22-pre.38,2026-11-29,css/automations.css,26,
v0.11.22-pre.38,2026-11-29,js/automation-evidence.js,7,
v0.11.22-pre.38,2026-11-29,js/automation-suggestions.js,7,
Expand Down
5 changes: 2 additions & 3 deletions dashboard/internal/webui/catalogs/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2884,8 +2884,6 @@
"energy.page.role_option.grid_import": "Grid-Import / Netzbezug",
"energy.page.role_option.switch": "Schaltet",
"energy.page.saved": "Energie-Rollen und Interpretation gespeichert.",
"energy.page.soc_capacity_warning.one": "{n} Batterie ohne Kapazität. Sie geht nicht in den Füllstand ein.",
"energy.page.soc_capacity_warning.other": "{n} Batterien ohne Kapazität. Sie gehen nicht in den Füllstand ein.",
"energy.plant.aria": "Anlagen-Ansicht mit Energiefluss",
"energy.plant.empty": "Noch keine Geräte erkannt.",
"energy.plant.hint": "Anordnung aus der Device Map, nur lesend",
Expand Down Expand Up @@ -3856,7 +3854,8 @@
"monitoring.forecast.verdict.median": "Prognose {forecast} daneben, Median {median}. Der Median war näher.",
"monitoring.group.known": "Zur Kenntnis genommen",
"monitoring.group.new": "Neu",
"monitoring.learned.off": "Muster lernen ist aus. Einschalten unter Einstellungen, Lernfunktionen.",
"monitoring.learned.off": "Muster lernen ist aus. Es kommen keine neuen Lernwerte dazu.",
"monitoring.learned.off_open": "Lernfunktionen öffnen",
"monitoring.learned.short.pv_reserve_w": "PV-Reserve",
"monitoring.learned.short.surplus_left_wh": "Rest-Überschuss heute",
"monitoring.learned.site": "Anlage",
Expand Down
5 changes: 2 additions & 3 deletions dashboard/internal/webui/catalogs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2884,8 +2884,6 @@
"energy.page.role_option.grid_import": "Grid import",
"energy.page.role_option.switch": "Switches",
"energy.page.saved": "Energy roles and interpretation saved.",
"energy.page.soc_capacity_warning.one": "{n} battery without capacity. It is not included in the charge level.",
"energy.page.soc_capacity_warning.other": "{n} batteries without capacity. They are not included in the charge level.",
"energy.plant.aria": "Plant view with energy flow",
"energy.plant.empty": "No devices detected yet.",
"energy.plant.hint": "Arrangement from the device map, read only",
Expand Down Expand Up @@ -3856,7 +3854,8 @@
"monitoring.forecast.verdict.median": "Forecast off by {forecast}, median by {median}. The median was closer.",
"monitoring.group.known": "Acknowledged",
"monitoring.group.new": "New",
"monitoring.learned.off": "Pattern learning is off. Turn it on under settings, learning.",
"monitoring.learned.off": "Pattern learning is off. No new learned values are added.",
"monitoring.learned.off_open": "Open learning features",
"monitoring.learned.short.pv_reserve_w": "PV reserve",
"monitoring.learned.short.surplus_left_wh": "Remaining surplus today",
"monitoring.learned.site": "System",
Expand Down
30 changes: 3 additions & 27 deletions dashboard/internal/webui/static/css/manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,34 +183,10 @@ select.schema-control {
.energy-monitoring-line.is-calm .energy-monitoring-line-text { color: var(--text-muted); }
.energy-monitoring-line.is-calm .energy-monitoring-line-open { background: none; color: var(--text-muted); font-weight: 400; }

/* Hinweisstreifen: immer sichtbar, damit Zuklappen der Interpretation nie
eine Warnung verbirgt. Jede Meldung blendet einzeln ueber x-transition ein. */
/* Gruppierte Inset-Liste statt gestapelter Einzelkarten: eine Flaeche, Haarlinien
zwischen den Zeilen, ein Symbol vorne. Die Warnfarbe sitzt nur im Symbol, die
Flaeche bleibt ruhig. Ohne sichtbare Zeile verschwindet die ganze Liste. */
.energy-notices {
display: grid; margin: 1rem 0; overflow: hidden;
border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--panel);
}
.energy-notices:empty,
.energy-notices:not(:has(> .energy-notice:not([x-cloak]):not([style*="display: none"]))) { display: none; }
.energy-notice {
display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .7rem .9rem;
font-size: .88rem; line-height: 1.5; color: var(--text);
}
.energy-notice + .energy-notice { border-top: 1px solid var(--border-soft); }
.energy-notice-icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--warn-line); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.energy-notice-body { min-width: 0; }
.energy-unassigned .energy-notice-icon { color: var(--text-faint); }
.energy-unassigned p { margin: 0; }
.energy-unassigned ul { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--text-subtle); }

/* Chain findings as tiles below the notice list: one tile per chain, the title
opens the details, the details list every finding of the chain. The fold is a
grid row 0fr to 1fr and clips the padding of its inner box while closed; the
padding sits on that inner box, so an open fold shows it in full. */
.energy-chain-findings { display: grid; gap: .5rem; margin: 0 0 var(--energy-section-gap); }
.energy-chain-findings:not(:has(.energy-chain-finding)) { display: none; }
.energy-chain-finding {
min-width: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
background: var(--panel-alt); animation: energy-chain-finding-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both;
Expand Down Expand Up @@ -424,7 +400,7 @@ select.schema-control {
}
@media (prefers-contrast: more) {
.energy-roles-group, .energy-role-row, .energy-acc,
.energy-notices, .energy-role-summary div { border-color: var(--border); }
.energy-role-summary div { border-color: var(--border); }
.energy-mode-note { border-left-color: var(--border); background: var(--panel); }
}
@media (prefers-reduced-motion: reduce) {
Expand Down Expand Up @@ -1052,7 +1028,7 @@ select.schema-control {
.tiny-tuya-diagnostics { margin: .8rem 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.tiny-tuya-diagnostics summary { cursor: pointer; padding: .6rem .8rem; color: var(--warn); }
.tiny-tuya-diagnostics pre { margin: 0; padding: .8rem; overflow: auto; white-space: pre-wrap; color: var(--text); }
/* .energy-acc / .energy-unassigned: siehe den Energie-Rollen-Block weiter
/* .energy-acc: siehe den Energie-Rollen-Block weiter
oben und das Akkordeon am Dateiende (2026-10, <details> wurde .energy-acc). */

/* Mobil: einspaltiges Formularraster - stand vorher im 700px-Block von
Expand Down Expand Up @@ -1407,7 +1383,7 @@ div.devicemap-view-menu-row { cursor: default; }
/* One rhythm between the main tiles of the energy page. Each tile used to
bring its own margin (1rem, 18px, 1.2rem, and none between the role table
and the groups), so the gaps differed. */
#energy-panel > .energy-notices, #energy-panel > .energy-plant,
#energy-panel > .energy-plant,
#energy-panel > .energy-accordion { margin: 0 0 var(--energy-section-gap); }

/* Energy page settings as an exclusive accordion (energy.page.js
Expand Down
4 changes: 0 additions & 4 deletions dashboard/internal/webui/static/js/energy.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,6 @@
return this.socWithoutCapacity > 0;
},

get socCapacityWarning() {
return tn('energy.page.soc_capacity_warning', this.socWithoutCapacity);
},

customRoleOptions() {
return Object.entries(this.categories)
.sort(([, a], [, b]) => compareLabels(a.label, b.label))
Expand Down
3 changes: 3 additions & 0 deletions dashboard/internal/webui/static/js/monitoring-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
if ((p.more || 0) > 0) rows.push(['', t('monitoring.fact.more', { n: p.more })]);
return rows;
}
if (notice.code === 'role_needed') {
return (p.labels || []).map((label) => [t('monitoring.fact.value'), label]);
}
if (sourceOf(notice) === 'learn' && p.kind === 'shade') return shadeFacts(notice, p, t);
if (sourceOf(notice) === 'effect') {
const confidence = p.confidence === 'high' ? t('automations.learn.confidence.sure') : t('automations.learn.confidence.estimate');
Expand Down
8 changes: 8 additions & 0 deletions dashboard/internal/webui/static/js/monitoring.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@
openTab('automations-panel');
},

// Öffnet in den Einstellungen die Seite Lernfunktionen (general). Ist die
// Einstellungsseite noch nicht geladen, nimmt sie die Anfrage in init().
goLearningSettings() {
window.__settingsPageRequest__ = 'general';
window.dispatchEvent(new CustomEvent('settings-page-open', { detail: { page: 'general' } }));
openTab('settings-panel');
},

titleOf(notice) { return window.MonitoringModel.title(notice, t); },
rowMeta(notice) {
return [this.sourceLabel(notice.source), window.MonitoringModel.sinceText(notice.first_seen, nowSeconds(), t)].join(' · ');
Expand Down
9 changes: 9 additions & 0 deletions dashboard/internal/webui/static/js/settings.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,15 @@
init() {
const requested = new URLSearchParams(window.location.search).get('page');
if (SETTINGS_PAGES.includes(requested)) this.activeSettingsPage = requested;
// Ein Sprung von einer anderen Seite, etwa vom Monitoring zu den Lernfunktionen.
const pending = window.__settingsPageRequest__;
delete window.__settingsPageRequest__;
if (SETTINGS_PAGES.includes(pending)) this.activeSettingsPage = pending;
window.addEventListener('settings-page-open', (event) => {
delete window.__settingsPageRequest__;
const page = event.detail && event.detail.page;
if (SETTINGS_PAGES.includes(page)) this.choosePage(page);
});
this.$watch('activeSettingsPage', (page) => this.ensureSubpage(page).catch(() => {}));
this.ensureSubpage(this.activeSettingsPage).catch(() => {});
this.$nextTick(() => {
Expand Down
Loading
Loading