Skip to content

Commit 444f29a

Browse files
committed
chore: dashboard restore-defaults chip and CI action bump
- the dashboard chips card gained a 'restore defaults' chip: confirmation, then script.ems_set_defaults - actions/setup-python v5 -> v7 (v5 still targeted Node.js 20 and warned on every run) - CHANGELOG: new Unreleased section; the duplicated Documentation heading inside 1.6.0 merged
1 parent d8c223f commit 444f29a

5 files changed

Lines changed: 37 additions & 5 deletions

File tree

‎.github/workflows/validate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v5
1515

16-
- uses: actions/setup-python@v5
16+
- uses: actions/setup-python@v7
1717
with:
1818
python-version: "3.12"
1919

‎CHANGELOG.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- the dashboard gained a *restore defaults* chip (tap → confirmation → `script.ems_set_defaults`).
13+
14+
### Changed
15+
16+
- CI: `actions/setup-python` v5 → v7. v5 still targeted Node.js 20 and produced a deprecation
17+
warning on every run.
18+
819
## [1.6.0] - 2026-09-23
920

1021
### Added
@@ -50,9 +61,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5061
- `docs/CONFIGURATION.md`: the mode table, the design-decision formula and the
5162
`binary_sensor.ems_degraded` description corrected; the helper tables now state where the
5263
defaults come from.
53-
54-
### Documentation
55-
5664
- **Wiki published** (https://github.com/acdcnow/opendtu-ems/wiki) with a landing page that
5765
serves the current line *and* the superseded one:
5866
[Architecture Concept Document](https://github.com/acdcnow/opendtu-ems/wiki/Architecture-Concept-Document)

‎custom_components/opendtu_ems/bundle/ems-overview.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@ cards:
163163
{{ 'red' if is_state('binary_sensor.ems_degraded', 'on') else 'green' }}
164164
tap_action:
165165
action: more-info
166+
# the documented tuning defaults, in one action: confirmation first, then
167+
# script.ems_set_defaults writes all 16 helpers (see the README section
168+
# "Settings: what every value does")
169+
- type: template
170+
icon: mdi:backup-restore
171+
content: restore defaults
172+
icon_color: red
173+
tap_action:
174+
action: perform-action
175+
perform_action: script.ems_set_defaults
176+
confirmation:
177+
text: Reset all 16 EMS tuning helpers to the documented defaults?
166178

167179
# ---------------------------------------------------------------------------
168180
# 3) trends: PV, house load, grid, battery (W) and the EMS limit (%)

‎dashboards/ems-overview.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@ cards:
163163
{{ 'red' if is_state('binary_sensor.ems_degraded', 'on') else 'green' }}
164164
tap_action:
165165
action: more-info
166+
# the documented tuning defaults, in one action: confirmation first, then
167+
# script.ems_set_defaults writes all 16 helpers (see the README section
168+
# "Settings: what every value does")
169+
- type: template
170+
icon: mdi:backup-restore
171+
content: restore defaults
172+
icon_color: red
173+
tap_action:
174+
action: perform-action
175+
perform_action: script.ems_set_defaults
176+
confirmation:
177+
text: Reset all 16 EMS tuning helpers to the documented defaults?
166178

167179
# ---------------------------------------------------------------------------
168180
# 3) trends: PV, house load, grid, battery (W) and the EMS limit (%)

‎docs/DASHBOARD.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Both are marked `EDIT` in the file and degrade gracefully if you leave them alon
8080
| Chips | `sensor.ems_mode` (+ Victron stage), `sensor.ems_limit_target`, **charge offer / push** (`allowance` and `charge_push` attributes of `sensor.ems_limit_target`), `sensor.ems_inverter_capacity` (`active`, W), `sensor.ems_pv_delivery`, `binary_sensor.ems_degraded` |
8181
| Trends | `sensor.solarleistung_gesamt`, `sensor.ems_house_load`, `sensor.ems_grid_power` (green below 0 = export, red above = import), `sensor.serialbattery_seplos_leistung`, `sensor.ems_limit_target` (%) |
8282
| SoC graph | `sensor.serialbattery_seplos_ladestand` |
83-
| Controls | `input_boolean.ems_enabled`, `input_number.ems_manual_pct`, `input_boolean.ems_simulate_battery_loss`, bias / settle / step / hysteresis / fail-safe, SoC stop, export tolerance / grace, charge re-probe, `input_datetime.ems_last_apply` |
83+
| Controls | `input_boolean.ems_enabled`, `input_number.ems_manual_pct`, `input_boolean.ems_simulate_battery_loss`, bias / settle / step / hysteresis / fail-safe, SoC stop, export tolerance / grace, charge re-probe, `input_datetime.ems_last_apply`, and the *restore defaults* chip (`script.ems_set_defaults`, with a confirmation) |
8484
| Diagnostics | `sensor.ems_pv_delivery` attributes, `sensor.ems_inverter_capacity` attributes, `input_datetime.ems_started_at`, `input_number.ems_charge_allowance`, `input_number.ems_export_ticks` |
8585

8686
### The charge offer chip

0 commit comments

Comments
 (0)