Air Purifer is Supported, but Sleep Mode is not an Option
kylewhirl opened this issue · comments
Device info (please complete the following information, which can be found in log):
request path = /v1.0/iot-01/associated-users/devices
TuyaOpenAPI response:
{
"result": {
"devices": [
{
"active_time": 1621223735,
"biz_type": 18,
"category": "kj",
"create_time": 1621217994,
"icon": "smart/icon/ay15143342475988rXpF/64290320ffdd48b7dc6f2e64df543d4c.png",
"id": "021334723c6105ceabe9",
"ip": "xxxxxxxxxxxxxxxx",
"lat": "39.5",
"local_key": "xxxxxxxxxxxxxxxx",
"lon": "-119.85",
"model": "",
"name": "Air purifier",
"online": true,
"owner_id": "6213608",
"product_id": "sferhht3hjkc942e",
"product_name": "KJ210F-142-01-C �����款�",
"status": [
{
"code": "switch",
"value": false
},
{
"code": "pm25",
"value": 0
},
{
"code": "speed",
"value": "1"
},
{
"code": "filter",
"value": 100
},
{
"code": "lock",
"value": false
}
],
"sub": false,
"time_zone": "-08:00",
"uid": "az1554248276698SpyAt",
"update_time": 1715531599,
"uuid": "xxxxxxxxxxxxxxxx"
}
]
}
}
There should be another status for Sleep Mode
Device functions (please complete the following information, which can be found in log):
request path = /v1.0/devices/functions
Same device Id, like this:
{
"category": "kj",
"devices": [
"021334723c6105ceabe9"
],
"functions": [
{
"code": "switch",
"desc": "switch",
"name": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "speed",
"desc": "speed",
"name": "speed",
"type": "Enum",
"values": "{"range":["1","2","3"]}"
},
{
"code": "lock",
"desc": "lock",
"name": "lock",
"type": "Boolean",
"values": "{}"
}
],
"product_id": "sferhht3hjkc942e"
}
There should be a fourth function, sleep mode, which controls whether or not the air purifier is in sleep mode. This is accessible through the app.
Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.
No stale