Skip to content

Commit a11c3e2

Browse files
authored
Fix specs (#1394)
* fix: xiaomi.airc.rr0r00 swing mode (#1386) * fix: hyd.airer.lyjpro current-position (#1376) * feat: add an alongside button entity for xiaomi.wifispeaker.l05b play action (#1372) * fix: ignore the unsupported property 2.3 of 759413.aircondition.iez (#1391) * fix: ignore unsupported properties of xiaomi.wifispeaker.l15a * feat: zhimi.fan.za1 fan mode description in zh_Hans (#1424) * fix: roidmi.vacuum.v60 siid=2 aiid=3 out field format (#1437)
1 parent 7399982 commit a11c3e2

4 files changed

Lines changed: 69 additions & 2 deletions

File tree

custom_components/xiaomi_home/miot/specs/multi_lang.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
"service:003:property:001:valuelist:001": "Dry"
66
}
77
},
8+
"urn:miot-spec-v2:device:fan:0000A005:zhimi-za1": {
9+
"zh-Hans": {
10+
"service:002:property:005:valuelist:000": "自然风",
11+
"service:002:property:005:valuelist:001": "直吹风"
12+
}
13+
},
814
"urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1": {
915
"de": {
1016
"service:001": "Geräteinformationen",
@@ -274,13 +280,13 @@
274280
"service:002:property:002": "Air Conditioner Mode",
275281
"service:004": "Air Conditioner"
276282
},
277-
"zh_cn": {
283+
"zh-Hans": {
278284
"service:002": "地暖",
279285
"service:004": "空调"
280286
}
281287
},
282288
"urn:miot-spec-v2:device:vacuum:0000A006:ijai-v1": {
283-
"zh_cn": {
289+
"zh-Hans": {
284290
"service:007:property:005:valuelist:000": "安静",
285291
"service:007:property:005:valuelist:001": "标准",
286292
"service:007:property:005:valuelist:002": "中档",

custom_components/xiaomi_home/miot/specs/spec_add.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@
8282
]
8383
}
8484
],
85+
"urn:miot-spec-v2:device:speaker:0000A015:xiaomi-l05b:1": [
86+
{
87+
"iid": 3,
88+
"type": "urn:miot-spec-v2:service:play:0000781D:xiaomi-l05b:1",
89+
"description": "Play Control",
90+
"actions": [
91+
{
92+
"iid": 2,
93+
"type": "urn:miot-spec-v2:action:play:0000280B:xiaomi-l05b:1",
94+
"description": "Play",
95+
"in": [],
96+
"out": []
97+
}
98+
]
99+
}
100+
],
85101
"urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:1:0000C822": [
86102
{
87103
"iid": 2,
@@ -1660,6 +1676,24 @@
16601676
]
16611677
}
16621678
],
1679+
"urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:3": [
1680+
{
1681+
"iid": 2,
1682+
"type": "urn:miot-spec-v2:service:vacuum:00007810:roidmi-v60:1",
1683+
"description": "Robot Cleaner",
1684+
"actions": [
1685+
{
1686+
"iid": 3,
1687+
"type": "urn:miot-spec-v2:action:start-room-sweep:00002826:roidmi-v60:1",
1688+
"description": "Start Room Sweep",
1689+
"in": [
1690+
9
1691+
],
1692+
"out": []
1693+
}
1694+
]
1695+
}
1696+
],
16631697
"urn:miot-spec-v2:device:water-heater:0000A02A:viomi-m1:2": [
16641698
{
16651699
"iid": 2,

custom_components/xiaomi_home/miot/specs/spec_filter.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
urn:miot-spec-v2:device:air-conditioner:0000A004:090615-ktf:
22
services:
33
- '4'
4+
urn:miot-spec-v2:device:air-conditioner:0000A004:759413-iez:
5+
properties:
6+
- '2.3'
47
urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:
58
properties:
69
- 9.*
@@ -44,6 +47,13 @@ urn:miot-spec-v2:device:motion-sensor:0000A014:xiaomi-pir1:
4447
services:
4548
- '1'
4649
- '5'
50+
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-l15a:
51+
properties:
52+
- '3.3'
53+
- '6.1'
54+
- '6.2'
55+
- '6.3'
56+
- '6.4'
4757
urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:
4858
services:
4959
- '2'
@@ -54,3 +64,6 @@ urn:miot-spec-v2:device:vacuum:0000A006:narwa-001:
5464
urn:miot-spec-v2:device:vacuum:0000A006:narwa-ax11:
5565
services:
5666
- '*'
67+
urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:
68+
actions:
69+
- '2.3'

custom_components/xiaomi_home/miot/specs/spec_modify.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-mt0:2: urn:miot-spec-v2:
4848
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1:
4949
prop.10.6:
5050
unit: none
51+
prop.3.12:
52+
name: vertical-swing-left-up
53+
prop.3.13:
54+
name: vertical-swing-left-down
55+
prop.3.14:
56+
name: vertical-swing-right-up
57+
prop.3.15:
58+
name: vertical-swing-right-down
59+
prop.3.20:
60+
name: horizontal-swing-left
61+
prop.3.22:
62+
name: horizontal-swing-right
5163
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:2: urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1
5264
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:3: urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1
5365
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:4: urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1
@@ -72,6 +84,8 @@ urn:miot-spec-v2:device:airer:0000A00D:hyd-lyjpro:1:
7284
name: target-position-a
7385
prop.2.9:
7486
name: target-position-b
87+
prop.2.11:
88+
expr: (100-src_value)
7589
urn:miot-spec-v2:device:airer:0000A00D:hyd-znlyj5:1:
7690
prop.2.3:
7791
value-range:

0 commit comments

Comments
 (0)