VPS-90: record CSG dashboard v4 rollout
This commit is contained in:
+36
-1
@@ -305,6 +305,41 @@ supervisor 代理 WS 被拒(loop prevention),用
|
||||
0.589 元/kWh、15 个 csg_* 数值齐全、回归值不变(14.09/198.65/331.22/
|
||||
304.99/181.89)、automations on、`ha core check` OK、日志无 template 错误。
|
||||
|
||||
**CSG 面板 Sections 重构 2026-09-22(VPS-90 v4):**
|
||||
`dashboard-unknown/power-monitor` 从单列 Masonry 改为原生 Sections(最多 2 列、
|
||||
关闭 dense placement),并新增子视图 `power-details`。主页按「本月概览 → 阶梯
|
||||
电价 → 最新数据/季节累计 → 近 30 日趋势」组织:概览只保留本月用电/阶梯电费
|
||||
与明确标为「预计」的用电/电费;余额因口径未独立验证不展示;欠费仅在
|
||||
`sensor.0800041935246530_arrears > 0` 时显示。详情页承载上月、近 30 日、月日均、
|
||||
环比及本年/去年账单统计;移除无决策价值的 `csg_prediction_progress` 展示。
|
||||
趋势图使用 `custom:apexcharts-card` 读取 `sensor.csg_history.history_data` 最近 30 条
|
||||
(该属性来源是上月 + 本月逐日明细),画日柱和 30 日均线,不接 Timescale reader;
|
||||
两条 series 均显式覆盖 `unit: kWh`,避免继承 `sensor.csg_history` 的记录数单位
|
||||
「条」。用户首轮目视反馈后,「最新数据与本月进度」改为跨两栏:最新日用电与
|
||||
本月日均各占桌面半栏,当前季节 gauge 全宽,窄屏由 Sections 自动回落堆叠。
|
||||
|
||||
季节 gauge 由 UI Template Helper 自动切换:配置入口
|
||||
`01M337A71HTAEBF8AB769J02WF`(domain `template`,title
|
||||
`CSG Summer Tariff`,source `user`,state `loaded`),实体
|
||||
`binary_sensor.csg_summer_tariff`,状态模板
|
||||
`{{ 5 <= now().month <= 10 }}`。`on` 显示夏季 `max 650 / 260 / 600`,`off`
|
||||
显示冬季 `max 450 / 200 / 400`;状态既非 on 也非 off 时显示警告。现有 4-25 /
|
||||
10-25 Matrix 提醒保留,不改 automation;该 helper 当前只被此 dashboard 引用。
|
||||
|
||||
写入前 WS 快照:
|
||||
`/homeassistant/.lovelace-backups/dashboard-unknown-power-monitor-20260922-0815-pre-sections-v4.json`
|
||||
(4953 bytes,SHA-256
|
||||
`f5e3e05ab29a4c13b870547b0a189e95b793d85e82c85c61190dedf66811a874`)。
|
||||
首轮 v4 到布局/单位修正前的第二快照:
|
||||
`/homeassistant/.lovelace-backups/dashboard-unknown-power-monitor-20260922-0825-pre-layout-unit-fix.json`
|
||||
(SHA-256 `8b56e1303572405d7c850305ffd435cc5c7ca583330160fdd3f8b213473e1fcd`)。
|
||||
验证:`lovelace/config/save` 后规范化 JSON 哈希与 payload 一致;22 个引用实体全部
|
||||
存在且无 unknown/unavailable;夏季 helper=`on`;图表 30 条为 2026-08-22 至
|
||||
2026-09-20,重算均值 9.15 kWh 与 `sensor.csg_30d_avg` 一致。浏览器没有 HA
|
||||
登录态,390/768/桌面三宽度视觉验收仍待人工登录后完成。回滚时先把上述 JSON
|
||||
经 WS `lovelace/config/save` 写回;再扫描 helper 引用,确认无消费者后才可删除
|
||||
配置入口,勿直改 `.storage/`。
|
||||
|
||||
**CSG 长期归档(W1N-243, 2026-08-29;任务改号 2026-09-21):** scribe 库新增
|
||||
`csg_history` 表(逐日 usage/cost/ladder/balance + 逐月累计;2026-07-01 起回填,
|
||||
永久),由 TimescaleDB 每日任务 **1010**(原 1008,2026-09-21 重建)
|
||||
@@ -907,4 +942,4 @@ curl -s -X POST -H "Authorization: Bearer $SUPERVISOR_TOKEN" \
|
||||
|
||||
- [runbooks/home-assistant-maintenance.md](../runbooks/home-assistant-maintenance.md) — `ha` CLI maintenance runbook + [script](../runbooks/scripts/ha-maintenance.sh); custom-component zip install is §7
|
||||
- [docs/lan-overview.md](../docs/lan-overview.md) — LAN map and gw port-forward
|
||||
- [hosts/dns.windy.lan.md](dns.windy.lan.md) — `hass.windy.lan` / `hass.local` rewrites
|
||||
- [hosts/dns.windy.lan.md](dns.windy.lan.md) — `hass.windy.lan` / `hass.local` rewrites
|
||||
|
||||
Reference in New Issue
Block a user