mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 14:01:14 +08:00
Compare commits
3 Commits
e9208cc2f0
...
7c6d44388d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c6d44388d | ||
|
|
a11c3e2fda | ||
|
|
880fea3f4b |
@ -1048,11 +1048,11 @@ class MIoTClient:
|
||||
|
||||
mips = self._mips_local.get(group_id, None)
|
||||
if mips:
|
||||
if state == MipsServiceState.REMOVED:
|
||||
mips.disconnect()
|
||||
self._mips_local.pop(group_id, None)
|
||||
return
|
||||
if (
|
||||
# if state == MipsServiceState.REMOVED:
|
||||
# mips.disconnect()
|
||||
# self._mips_local.pop(group_id, None)
|
||||
# return
|
||||
if ( # ADDED or UPDATED
|
||||
mips.client_id == self._entry_data['virtual_did']
|
||||
and mips.host == data['addresses'][0]
|
||||
and mips.port == data['port']
|
||||
|
||||
@ -232,9 +232,10 @@ class MipsService:
|
||||
for item in list(self._services.values()):
|
||||
if item['name'] != name:
|
||||
continue
|
||||
service_data = self._services.pop(item['group_id'], {})
|
||||
self.__call_service_change(
|
||||
state=MipsServiceState.REMOVED, data=service_data)
|
||||
# Ignore mdns REMOVED package. Let the connection close by itself.
|
||||
# service_data = self._services.pop(item['group_id'], {})
|
||||
# self.__call_service_change(
|
||||
# state=MipsServiceState.REMOVED, data=service_data)
|
||||
return
|
||||
self._main_loop.create_task(
|
||||
self.__request_service_info_async(zeroconf, service_type, name))
|
||||
|
||||
@ -5,6 +5,12 @@
|
||||
"service:003:property:001:valuelist:001": "Dry"
|
||||
}
|
||||
},
|
||||
"urn:miot-spec-v2:device:fan:0000A005:zhimi-za1": {
|
||||
"zh-Hans": {
|
||||
"service:002:property:005:valuelist:000": "自然风",
|
||||
"service:002:property:005:valuelist:001": "直吹风"
|
||||
}
|
||||
},
|
||||
"urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1": {
|
||||
"de": {
|
||||
"service:001": "Geräteinformationen",
|
||||
@ -274,13 +280,13 @@
|
||||
"service:002:property:002": "Air Conditioner Mode",
|
||||
"service:004": "Air Conditioner"
|
||||
},
|
||||
"zh_cn": {
|
||||
"zh-Hans": {
|
||||
"service:002": "地暖",
|
||||
"service:004": "空调"
|
||||
}
|
||||
},
|
||||
"urn:miot-spec-v2:device:vacuum:0000A006:ijai-v1": {
|
||||
"zh_cn": {
|
||||
"zh-Hans": {
|
||||
"service:007:property:005:valuelist:000": "安静",
|
||||
"service:007:property:005:valuelist:001": "标准",
|
||||
"service:007:property:005:valuelist:002": "中档",
|
||||
|
||||
@ -82,6 +82,22 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"urn:miot-spec-v2:device:speaker:0000A015:xiaomi-l05b:1": [
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "urn:miot-spec-v2:service:play:0000781D:xiaomi-l05b:1",
|
||||
"description": "Play Control",
|
||||
"actions": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "urn:miot-spec-v2:action:play:0000280B:xiaomi-l05b:1",
|
||||
"description": "Play",
|
||||
"in": [],
|
||||
"out": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:1:0000C822": [
|
||||
{
|
||||
"iid": 2,
|
||||
@ -1660,6 +1676,24 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:3": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "urn:miot-spec-v2:service:vacuum:00007810:roidmi-v60:1",
|
||||
"description": "Robot Cleaner",
|
||||
"actions": [
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "urn:miot-spec-v2:action:start-room-sweep:00002826:roidmi-v60:1",
|
||||
"description": "Start Room Sweep",
|
||||
"in": [
|
||||
9
|
||||
],
|
||||
"out": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"urn:miot-spec-v2:device:water-heater:0000A02A:viomi-m1:2": [
|
||||
{
|
||||
"iid": 2,
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
urn:miot-spec-v2:device:air-conditioner:0000A004:090615-ktf:
|
||||
services:
|
||||
- '4'
|
||||
urn:miot-spec-v2:device:air-conditioner:0000A004:759413-iez:
|
||||
properties:
|
||||
- '2.3'
|
||||
urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:
|
||||
properties:
|
||||
- 9.*
|
||||
@ -44,6 +47,13 @@ urn:miot-spec-v2:device:motion-sensor:0000A014:xiaomi-pir1:
|
||||
services:
|
||||
- '1'
|
||||
- '5'
|
||||
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-l15a:
|
||||
properties:
|
||||
- '3.3'
|
||||
- '6.1'
|
||||
- '6.2'
|
||||
- '6.3'
|
||||
- '6.4'
|
||||
urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:
|
||||
services:
|
||||
- '2'
|
||||
@ -54,3 +64,6 @@ urn:miot-spec-v2:device:vacuum:0000A006:narwa-001:
|
||||
urn:miot-spec-v2:device:vacuum:0000A006:narwa-ax11:
|
||||
services:
|
||||
- '*'
|
||||
urn:miot-spec-v2:device:vacuum:0000A006:roidmi-v60:
|
||||
actions:
|
||||
- '2.3'
|
||||
|
||||
@ -48,6 +48,18 @@ urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-mt0:2: urn:miot-spec-v2:
|
||||
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1:
|
||||
prop.10.6:
|
||||
unit: none
|
||||
prop.3.12:
|
||||
name: vertical-swing-left-up
|
||||
prop.3.13:
|
||||
name: vertical-swing-left-down
|
||||
prop.3.14:
|
||||
name: vertical-swing-right-up
|
||||
prop.3.15:
|
||||
name: vertical-swing-right-down
|
||||
prop.3.20:
|
||||
name: horizontal-swing-left
|
||||
prop.3.22:
|
||||
name: horizontal-swing-right
|
||||
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:2: urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1
|
||||
urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:3: urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-rr0r00:1
|
||||
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:
|
||||
name: target-position-a
|
||||
prop.2.9:
|
||||
name: target-position-b
|
||||
prop.2.11:
|
||||
expr: (100-src_value)
|
||||
urn:miot-spec-v2:device:airer:0000A00D:hyd-znlyj5:1:
|
||||
prop.2.3:
|
||||
value-range:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user