mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-11 19:30:43 +08:00
Compare commits
4 Commits
43a279fbbc
...
e60bf35d91
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e60bf35d91 | ||
|
|
b40d357230 | ||
|
|
fe856abf56 | ||
|
|
b96942f05b |
@ -1527,6 +1527,8 @@ class MIoTClient:
|
||||
if did not in filter_dids:
|
||||
continue
|
||||
device_old = self._device_list_gateway.get(did, None)
|
||||
gw_state_old = device_old.get(
|
||||
'online', False) if device_old else False
|
||||
gw_state_new: bool = False
|
||||
device_new = gw_list.pop(did, None)
|
||||
if device_new:
|
||||
@ -1540,7 +1542,7 @@ class MIoTClient:
|
||||
device_old['online'] = False
|
||||
# Update cache group_id
|
||||
info['group_id'] = group_id
|
||||
if not gw_state_new:
|
||||
if (gw_state_old == gw_state_new) and (not gw_state_new):
|
||||
continue
|
||||
self.__update_device_msg_sub(did=did)
|
||||
state_old: Optional[bool] = info.get('online', None)
|
||||
|
||||
@ -499,6 +499,21 @@ urn:miot-spec-v2:device:safe-box:0000A042:loock-v1:1:
|
||||
prop.5.1:
|
||||
name: contact-state
|
||||
expr: (src_value!=1)
|
||||
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-lx04:2:
|
||||
prop.3.1:
|
||||
access:
|
||||
- read
|
||||
- notify
|
||||
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-lx06:2:
|
||||
prop.3.1:
|
||||
access:
|
||||
- read
|
||||
- notify
|
||||
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-x08c:2:
|
||||
prop.2.1:
|
||||
access:
|
||||
- read
|
||||
- notify
|
||||
urn:miot-spec-v2:device:speaker:0000A015:xiaomi-x08e:1:
|
||||
prop.3.1:
|
||||
name: playing-state-a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user