- 积分
- 124
- 金钱
- 109
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 124
- 金钱
- 109
- HASS币
- 0
|
发表于 2023-12-28 14:53:15
|
显示全部楼层
大佬,请教一下,我想添加一个小米的ihealth.bpm.bpx1血压计,按您说的这个文件添加的话,我不知道具体的内容怎么填写(像里面已有的设备{
# https://home.miot-spec.com/spec? ... 00A00A:linp-ks1bp:1
15895: ["Linptech", "Wireless Button KS1Pro", "KS1PBB"],
"spec": [
MiBeacon, BLEAction, BLEHumidity, BLETemperature, BLEBattery,
MathConv("temperature", mi="2.p.1001", min=-30, max=100, round=1),
MathConv("humidity", mi="2.p.1008", min=0, max=100, round=1),
Converter("battery", mi="4.p.1003"),
BLEEvent("action", mi="5.e.1012", map={
1: "button_1_single", 2: "button_2_single", 3: "button_3_single", 4: "button_4_single"
}),
BLEEvent("action", mi="5.e.1013", map={
1: "button_1_double", 2: "button_2_double", 3: "button_3_double", 4: "button_4_double"
}),
BLEEvent("action", mi="5.e.1014", map={
1: "button_1_hold", 2: "button_2_hold", 3: "button_3_hold", 4: "button_4_hold"
}),
],
"ttl": "6h" # battery every 6 hours
},
类似这种属性,我该如何去对照我血压计的属性去填写呢? |
|