docs(hass): Quick dashboard round-2 state — badges, total-power helper, span-2 power pair, fill/colors (W1N-231)

Sync Quick dashboard section with live config: 2x2 mushroom light grid,
kong_diao AC entity fix, heading badges (env temps / AC / PC / total power),
min_max sum helper sensor.dang_qian_zong_gong_lu (fail-closed), selective
tozeroy fill on base-load chart, power charts paired as span-2 sections with
card titles removed, motion per-entity colors.
This commit is contained in:
windyboy
2026-08-29 19:54:35 +08:00
parent e58283210a
commit 908ff5412a
+27 -15
View File
@@ -384,21 +384,33 @@ manual copies): reader `remmob/timescale_database_reader` **v1.1.0** (main
- Scribe stores numeric sensor values in `states_raw.value` with `state` NULL, - Scribe stores numeric sensor values in `states_raw.value` with `state` NULL,
so `sensor_minute.state` shows `'0'` for numeric sensors; the card plots so `sensor_minute.state` shows `'0'` for numeric sensors; the card plots
`avg_state` (from `value`) — expected, not a bug. `avg_state` (from `value`) — expected, not a bug.
- **Quick 仪表盘(`dashboard-quick`)图表套件**2026-08-29,经 WS - **Quick 仪表盘(`dashboard-quick`)图表套件**2026-08-29 创建,经 WS
`lovelace/config/save` 写入):5 张 timescale 卡——大功率电器/常驻负载 `lovelace/config/save` 写入W1N-230 修复 + W1N-231 round-2 改进):
功率(按量级拆两张图,避免 1100 W 尖峰压扁 <70 W 基线)、按插座用电量 5 张 timescale 卡——大功率电器/常驻负载功率(按量级拆图,避免尖峰压扁
`energy_mode` + cumulative/diff,数据质量前提见 pgdb 的 refresh 过程补丁)、 <70 W 基线)、按插座用电量`energy_mode` + cumulative/diff,数据质量前提
室内外温湿度(温度左轴/湿度右轴,4 位置同色配对)、人体感应活动状态 见 pgdb 的 refresh 过程补丁)、室内外温湿度(温度左轴/湿度右轴,4 位置同色
3 个 `motion_state`banded `state_map` none/small/medium/large → 0-11)。 配对)、人体感应活动状态3 个 `motion_state`banded `state_map`
布局:全部分区显式 `column_span: 4`(视图 `type: sections` + `max_columns: 4`), none/small/medium/large → 0-11per-entity `line_color` 红/蓝/绿)。
灯区 4 张控制卡横排一行。**分区/卡片是两套尺寸键,不可混用**: 空调实体引用为 `kong_diao_*``kong_tiao` 是笔误,W1N-230 修复;`grep -c
分区宽 = `column_span``hui-sections-view.ts` 缺省按 1 列渲染,绝不省略); kong_tiao` 应为 0)。灯区:2×2 嵌套 grid(`grid_options: {columns: "full"}`
卡片宽 = `grid_options: {columns: <n|"full">}``hui-card.ts` 只读 内层 `columns: 2`+ 4 卡统一 `mushroom-light-card`(显式 name、
`config.grid_options`,写在卡片上的 `column_span` 被静默忽略;缺省 12 列, `use_light_color: false`、内联亮度/色温控制),heading icon
分区内格 = 12 × 分区 span,故 span-4 分区里缺省卡片只有 1/4 宽)。另外 `mdi:lightbulb-group`。heading badges:环境 4 温度(迷你/mini数显/数显/广州)、
图表卡固定外壳(标题/时间按钮/状态行 ≈125px)使整卡最低 ~300px,与矮 大功率电器 空调/电脑当前功率、常驻负载 总功率
控制区并排必然留白,故不做半宽并排。 `sensor.dang_qian_zong_gong_lu`min_max **sum** helper`round_digits: 0`
修改前备份:`/homeassistant/.lovelace-backups/dashboard-quick-*.json` 任一源掉线 fail-closed → unknown)。常驻负载图卡级 `fill: 'tozeroy'` +
冰箱/主网络 per-entity `fill_color`(线色 20% 透明)+ 其余 5 条 `fill: false`
per-entity fill 逐系列退出,卡 JS `seriesConfig.fill !== false`)。
布局:视图 `type: sections` + `max_columns: 4`;灯/用电/环境/人体感应
`column_span: 4`,功率两图拆两个 `column_span: 2` 分区**并排**(等高 280px
桌面并排、手机回落堆叠;去卡内 title 省半宽图垂直空间)。
**分区/卡片是两套尺寸键,不可混用**:分区宽 = `column_span`
`hui-sections-view.ts` 缺省按 1 列渲染,绝不省略);卡片宽 =
`grid_options: {columns: <n|"full">}``hui-card.ts` 只读 `config.grid_options`
写在卡片上的 `column_span` 被静默忽略;缺省 12 列,分区内格 = 12 × 分区
span,故 span-4 分区里缺省卡片只有 1/4 宽)。
修改前备份:`/homeassistant/.lovelace-backups/dashboard-quick-*.json`
W1N-230 修复: `20260829-190256`round-2 改进: `20260829-194040`)。
## Known issues ## Known issues