Skip to content

Commit 6532e7e

Browse files
committed
fix: support fan p5c fan-level
1 parent 664787c commit 6532e7e

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

custom_components/xiaomi_home/miot/specs/spec_add.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,23 @@
242242
}
243243
]
244244
}
245+
],
246+
"urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1": [
247+
{
248+
"iid": 8,
249+
"type": "urn:miot-spec-v2:service:fan:00007802:dmaker-p5c:1",
250+
"description": "Fan",
251+
"properties": [
252+
{
253+
"iid": 1,
254+
"type": "urn:miot-spec-v2:property:fan-level:00000001:dmaker-p5c:1",
255+
"description": "Fan Level",
256+
"format": "uint8",
257+
"access": ["read", "notify", "write"],
258+
"value-range": [1, 100, 1],
259+
"gatt-access": []
260+
}
261+
]
262+
}
245263
]
246264
}

custom_components/xiaomi_home/miot/specs/spec_filter.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:
5151
services:
5252
- '2'
5353
- '4'
54+
urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1:
55+
services:
56+
- '8'

custom_components/xiaomi_home/miot/specs/spec_modify.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ urn:miot-spec-v2:device:fan:0000A005:dmaker-p33:1:
8787
urn:miot-spec-v2:device:fan:0000A005:dmaker-p5:1:
8888
prop.2.4:
8989
name: fan-level-a
90+
urn:miot-spec-v2:device:fan:0000A005:dmaker-p5c:1:
91+
prop.2.2:
92+
name: fan-level-a
9093
urn:miot-spec-v2:device:fan:0000A005:xiaomi-p43:1:
9194
prop.2.2:
9295
name: fan-level-a

0 commit comments

Comments
 (0)