Open patrik-malina opened 3 years ago
For me not show nothing, at my garbage door not add the switch to HA but in tuya home page show normaly, also this is ready to detect if the gate is open or closed already? How do you make to this detect your garbage gate switch? @patrik-malina
@FelipeMartini Hi, it's not garbage but garage door opener. In SmartLife ti shows as in picture. In LocalTuya it shows sensor and switch.
@patrik-malina its the same for me but I think my device is not added yet cause not show nothing for me in home assistant, only in local tuya and tuya v1
iot] Response: { "result": [ { "active_time": 1626536410, "biz_type": 0, "category": "ckmkzq", "create_time": 1626536410, "icon": "smart/icon/ay1561392671118CDMZQ/c78ee080fb574f39eafab9bcc7c447f4.png", "id": "eba8563c28aec734b4mivo", "ip": "45.235.181.104", "lat": "-30.20362920337924", "local_key": "7697fdbe4f03043c", "lon": "-51.10201621386108", "name": "Portão Felipe", "online": true, "owner_id": "45649673", "product_id": "8vxxzisygaa7evhc", "product_name": "Smart Garage", "status": [ { "code": "switch_1", "value": false }, { "code": "doorcontact_state", "value": false }, { "code": "countdown_alarm", "value": 8 } ], "sub": false, "time_zone": "-03:00", "uid": "az1626219584019vKaji", "update_time": 1626900847, "uuid": "efa5efa1a40f7ece" } ], "success": true, "t": 1627038191745 } 2021-07-23 08:03:09 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/eba8563c28aec734b4mivo/specifications, params = None, body = None, headers = {'client_id': 'kxeexpqkareom7d0qhpr', 'sign': '46935E471ADDE34D44BC76BA45ECAC24D6464B63D05B647455B9029A8E12D9DB', 'sign_method': 'HMAC-SHA256', 'access_token': '6fa2493dfec6e860cff28e94ebfbad75', 't': '1627038189299', 'lang': 'en'} 2021-07-23 08:03:09 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "ckmkzq", "functions": [ { "code": "switch_1", "type": "Boolean", "values": "{}" }, { "code": "countdown_alarm", "type": "Integer", "values": "{\"unit\":\"\",\"min\":0,\"max\":1024,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "switch_1", "type": "Boolean", "values": "{}" }, { "code": "doorcontact_state", "type": "Boolean", "values": "{}" }, { "code": "countdown_alarm", "type": "Integer", "values": "{\"unit\":\"\",\"min\":0,\"max\":1024,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627038192024 } 2021-07-23 08:03:09 INFO (MainThread) [custom_components.tuya_v2] init support type->['binary_sensor', 'climate', 'cover', 'fan', 'humidifier', 'light', 'number', 'scene', 'select', 'sensor', 'switch', 'vacuum']
@tsutsuku my device not have support ? How can I notify that to be implemented some day?
Hello, I think I have the same problem (but I'm not sure how to get the detailed logs like the op here). I have a garage door opener with a contact sensor bundled to it, the switch enity shows and works fine in HA but the open/close status of the sensor does not. I'm running TuyaV2 1.4.2 If you need anything from my device or setup let me know so I can get it to help you help me ;)
Thank you !
Same issue here. Garage Door Opener is missing the binary sensor.
Describe the bug Garage Opener shows switch but no status.
Expected behavior It should also show status opened/closed
Home Assistant Version 2021.7.3 and tuya v2 1.3.2
Device info (please complete the following information, which can be found in log): { "active_time": 1610614293, "biz_type": 18, "category": "kg", "create_time": 1610614293, "icon": "smart/icon/ay15327721968035jwx9/5d3aaebc1aeb37a423f06a0c7252edbd.jpg", "id": "bfc82dd81c025092f6k60o", "ip": "46.17.124.38", "lat": "45.4122106", "local_key": "97ac78b26d06230a", "lon": "19.3027781", "model": "102", "name": "Garage Door", "online": true, "owner_id": "17222907", "product_id": "lwafqx5aiglmwbxi", "product_name": "Smart Garage Door Opener", "status": [ { "code": "switch_1", "value": false }, { "code": "countdown_1", "value": 0 }, { "code": "countdown_1", "value": 0 } ],
Device specifications (please complete the following information, which can be found in log): Same device's id, like this: 2021-07-16 17:44:56 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bfc82dd81c025092f6k60o/specifications, params = None, body = None, headers = {'client_id': 'n7weyvwyarb2m8sk7yuj', 'sign': '4B8FF4CD96038F7EEF76A3FE0179C6E0EF053BC576B6491C0C9467B12B5A09BB', 'sign_method': 'HMAC-SHA256', 'access_token': '9c675497eaec033f5bffedfbdeafaac2', 't': '1626450296382', 'lang': 'en'} 2021-07-16 17:44:56 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "kg", "functions": [ { "code": "switch_1", "type": "Boolean", "values": "{}" }, { "code": "countdown_1", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" }, { "code": "countdown_1", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "switch_1", "type": "Boolean", "values": "{}" }, { "code": "countdown_1", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" }, { "code": "countdown_1", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1626450296418 }
Additional context Add any other context or logs about the problem here.