Compare commits

...

2 Commits

Author SHA1 Message Date
Li Shuzhen
4ad040d2ea
feat: get devices from the third party cloud (#1258)
Some checks failed
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2025-07-15 16:26:35 +08:00
Li Shuzhen
981429670a
feat: add an alongside switch entity for viomi.waterheater.m1 (#1255) 2025-07-15 16:26:13 +08:00
2 changed files with 21 additions and 0 deletions

View File

@ -543,6 +543,7 @@ class MIoTHttpClient:
req_data: dict = { req_data: dict = {
'limit': 200, 'limit': 200,
'get_split_device': True, 'get_split_device': True,
'get_third_device': True,
'dids': dids 'dids': dids
} }
if start_did: if start_did:

View File

@ -203,6 +203,26 @@
] ]
} }
], ],
"urn:miot-spec-v2:device:water-heater:0000A02A:viomi-m1:2": [
{
"iid": 2,
"type": "urn:miot-spec-v2:service:switch:0000780C:viomi-m1:1",
"description": "Water Heater",
"properties": [
{
"iid": 6,
"type": "urn:miot-spec-v2:property:on:00000006:viomi-m1:1",
"description": "Switch Status",
"format": "bool",
"access": [
"read",
"write",
"notify"
]
}
]
}
],
"urn:miot-spec-v2:device:water-heater:0000A02A:xiaomi-yms2:1": [ "urn:miot-spec-v2:device:water-heater:0000A02A:xiaomi-yms2:1": [
{ {
"iid": 2, "iid": 2,