mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-12-02 18:36:28 +01:00
fix(config): migrate Home Assistant config paths with device list positions
Device collections were lists before they became maps keyed by device id, so a Home Assistant config path such as devices/batteries/0/min_soc_percentage addressed the first battery. The migration moved the battery to its device id but kept the list position in the path. The adapter then reported the path as no existing setting on every run and no longer applied the Home Assistant value. Paths with a list position now get the key the device migrates to, for batteries, electric vehicles, inverters and home appliances. Paths of collections that are maps already are kept. A list position without a device is kept and logged as warning. If the same setting is also mapped by device id, the list position wins, as only it addressed a device in a list. Additional changes The device key prefixes and the key rule are shared with the device list migration The upgrade guide says that the Home Assistant config paths follow the device ids Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
committed by
Bobby Noelte
co-authored by
Claude Opus 5.5
parent
aad5db46e9
commit
12527597b1
@@ -30,9 +30,10 @@ Device collections now use stable names. For example, `devices.batteries.0` beco
|
||||
your migrated configuration; do not assume the example name. An explicit `device_id`
|
||||
must match its map key, and the inverter must refer to the correct battery ID.
|
||||
|
||||
Supported old device lists migrate automatically. External configuration paths in
|
||||
automations and scripts do not. Check those paths and the saved configuration after
|
||||
migration. Battery wear cost is named `levelized_cost_of_storage_amt_kwh`.
|
||||
Supported old device lists migrate automatically. The configuration paths of the Home
|
||||
Assistant adapter (`adapter.homeassistant.config_entity_ids`) follow the device IDs.
|
||||
External configuration paths in automations and scripts do not. Check those paths and the
|
||||
saved configuration after migration. Battery wear cost is named `levelized_cost_of_storage_amt_kwh`.
|
||||
|
||||
The new GENETIC currently supports one inverter, one stationary battery, one EV and
|
||||
multiple household appliances. Surplus devices and a battery not linked to the inverter are
|
||||
|
||||
Reference in New Issue
Block a user