新增米家环境监控模块 (采集/聚合/历史/前端 EnvView) + CI 挂载米家凭证目录并自动应用迁移
Docker Build and Push / build-image (push) Successful in 6m54s

This commit is contained in:
jif2.zhang
2026-09-21 11:42:58 +08:00
parent 53f63e0986
commit 8e2c6ffa35
36 changed files with 11327 additions and 428 deletions
+26
View File
@@ -0,0 +1,26 @@
// 环境设备白名单: 型号 -> 属性定义 (siid.piid), 均为调研阶段实测确认
// - temp/hum: 采集用; batt: 电量 (每天读一次, 标题展示)
// - vendorStats: 是否已实测该型号支持 /v2/user/statistics 云端聚合历史
export const ENV_MODELS = {
// 炎米智能温湿度计: 实测 stat_hour_v3/stat_day_v3 可用, 回溯到接入米家日
'ym001.sensor_ht.ymwsdj': {
temp: [2, 1001],
hum: [2, 1002],
batt: [3, 1003],
vendorStats: true,
},
// 青萍蓝牙闹钟: 云端统计返回 -8 invalid params (未开通), 只走实时采样
'cgllc.clock.dove': {
temp: [2, 1],
hum: [2, 2],
batt: [2, 3],
vendorStats: false,
},
}
export function getSpec(model) {
return ENV_MODELS[model] || null
}
export const XIAOMI_APP_UA =
'APP/com.xiaomi.mihome APPV/6.0.89 Channel/MI-COM-BD-00059-00 OSVersion/MIUI-12.0.1 Android/28'