tuya/tuya-home-assistant

Smart WiFi Thermostat - request to integrate dry contact status (open/closed)

Open

#685 opened on 2021年11月10日

GitHub で見る
 (1 comment) (4 reactions) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (960 stars)
PR merge metrics
 (PR metrics pending)

説明

The device itself reports on Tuya Smart app the dry contact status, reporting that is "Active" if closed. This would help to manage other entities/devices via automations.

Device normal info https://it.aliexpress.com/item/4001010764233.html?spm=a2g0s.9042311.0.0.597d4c4dB0YugD

**Device info **

{
"active_time": 1635078213,
"biz_type": 0,
"category": "wk",
"create_time": 1604943926,
"icon": "smart/program_category_icon/wk.png",
"id": "08646062bcddc2747d12",
"ip": "***",
"lat": "***",
"local_key": "***",
"lon": "***",
"model": "Temp",
"name": "Termostato",
"online": true,
"owner_id": "37468346",
"product_id": "gw173aldekvpzalg",
"product_name": "Temp",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "temp_set",
"value": 300
},
{
"code": "temp_current",
"value": 223
},
{
"code": "mode",
"value": "cold"
},
{
"code": "child_lock",
"value": false
}
],
"sub": false,
"time_zone": "+01:00",
"uid": "***",
"update_time": 1636533253,
"uuid": "08646062bcddc2747d12"
},

Device specifications

2021-11-10 12:34:48 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/08646062bcddc2747d12/specifications, params = None, body = None, t = 1636544088923
2021-11-10 12:34:49 DEBUG (SyncWorker_6) [tuya iot] Response: {
"result": {
"category": "wk",
"functions": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "temp_set",
"type": "Integer",
"values": "{\"unit\":\"℃\",\"min\":0,\"max\":700,\"scale\":1,\"step\":1}"
},
{
"code": "mode",
"type": "Enum",
"values": "{\"range\":[\"cold\",\"hot\",\"wind\",\"comfortable\",\"energy\",\"auto\",\"holiday\",\"eco\",\"manual\",\"sleep\",\"dry\",\"program\",\"floor_heat\",\"auxiliary_heat\"]}"
},
{
"code": "child_lock",
"type": "Boolean",
"values": "{}"
}
],
"status": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "temp_set",
"type": "Integer",
"values": "{\"unit\":\"℃\",\"min\":0,\"max\":700,\"scale\":1,\"step\":1}"
},
{
"code": "temp_current",
"type": "Integer",
"values": "{\"unit\":\"℃\",\"min\":0,\"max\":999,\"scale\":1,\"step\":1}"
},
{
"code": "mode",
"type": "Enum",
"values": "{\"range\":[\"cold\",\"hot\",\"wind\",\"comfortable\",\"energy\",\"auto\",\"holiday\",\"eco\",\"manual\",\"sleep\",\"dry\",\"program\",\"floor_heat\",\"auxiliary_heat\"]}"
},
{
"code": "child_lock",
"type": "Boolean",
"values": "{}"
}
]
},
"success": true,
"t": 1636544088981

コントリビューターガイド