tuya/tuya-home-assistant

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

Open

#685 ouverte le 10 nov. 2021

Voir sur GitHub
 (1 commentaire) (4 réactions) (0 assignés) (206 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (960 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur