M8-R17: allocate thermal standing costs by service

This commit is contained in:
2026-08-28 14:24:57 +02:00
parent 6e197d7808
commit 5e1545efad
4 changed files with 90 additions and 4 deletions
+7 -1
View File
@@ -77,7 +77,13 @@ docker compose -f docker-compose.yml run --rm migration
成本页的 15 分钟 ledger 分开显示 heating 与 hot-water 三项 variable breakdownfixed 费只在合同级 summary 按本地自然日计提一次,all-in = variable + fixed。用显式 recompute 来验证测试时间窗时,应手算并核对 Decimal 金额,保留原有 electricity 合同和数字不变。
在 Config 的 HA Expose 中只开启需要的 source、Meter 与 thermal entities。核对 unit、state class、availability、today reset 和换表后 identity;关闭 toggle 后应用会清理 retained discovery。不要把 source secret、设备 identity 或合同金额放进 HA entity 名称、日志或截图。
在 Config 的 HA Expose 中只开启需要的 source、Meter 与 thermal entities。`Thermal Heating Total/Today`
显示 heating variable 加上 heating network、metering、delivery set 与 other 固定费;`Thermal Hot Water
Total/Today` 显示 hot-water heating、water、water tax variable 加上 hot-water network 固定费。两条合计
恰好等于 `Thermal All-in Total/Today`component entities 仍仅显示各自 variable`Fixed` 仍显示全部
standing,避免重复计费。数值仍来自在 01:05 后结算的 summary。核对 unit、state class、availability、today
reset 和换表后 identity;关闭 toggle 后应用会清理 retained discovery。不要把 source secret、设备 identity
或合同金额放进 HA entity 名称、日志或截图。
## 安全回滚