tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
882 stars 207 forks source link

WiFi curtain motors #291

Open robertvanroosmalen opened 3 years ago

robertvanroosmalen commented 3 years ago

Device normal info

2021-08-02 10:13:58 INFO (MainThread) [custom_components.tuya_v2] Tuya async setup conf None 2021-08-02 10:13:59 INFO (MainThread) [custom_components.tuya_v2] tuya.init.async_setup_entry-->{'o0o0o0': 'd443983d4bc3aca7cb22c18d548dad85e32d8922d0148c93d94d54bee3db9d1a43c69eb59bf365583cb9c8eb2ea448d1ada6512d3dc134e333bffa9491b47368fdc750496a68cd69ecd70b65e0296b672ce6047f4e2a05b7c1ab329551105bbe14e51c47d17d4676c094510e4e0901fee4e804b8b46e2e9aeac97a9847c1274b7c747c00163d54d603b04038bf342aea2ddcee2548042c4c533e341219b9e74adcd0630d021de5178e313978196a8161f57eb14291a3dd14f216f5a4bed8ced0c721c3041a8e3ae6abfedc9b496444c4cd448394d9ec697ea0b967447ca17014dae4853cfa1d7e8fb4bf4aa2e40d20d3c1b0178fae3bd67c0befaaf4e89b1d311401c6a5fa17d5a3819718c26e41e6d97f65aff94d7eb44ce8532a94d9695ae4', '00oo00': 'VgZaUFoRFRVeEwRbVAcdXkUCAwVJQAwBBAgjBktASVI=', 'oo00oo': 'b3b18bed1ef41378ca3f15ce1cce12897ff5009dab82c0c73859f6c97eee2f31'} 2021-08-02 10:13:59 INFO (MainThread) [custom_components.tuya_v2] tuya.init.exist_xor_cache-->True 2021-08-02 10:13:59 DEBUG (SyncWorker_1) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/iot-01/associated-users/actions/authorized-login, params = None, body = {'username': '****', 'password': '**', 'country_code': 'Nederland', 'schema': 'tuyaSmart'}, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '88888888888888888888', 'sign_method': 'HMAC-SHA256', 'access_token': '', 't': '', 'lang': 'en', 'dev_lang': 'python', 'dev_version': '0.4.0', 'dev_channel': 'hass'} 2021-08-02 10:14:00 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "access_token": "**", "expire_time": 7200, "platform_url": "https://openapi.tuyaeu.com", "refresh_token": "888888888888888888f", "uid": "eu1621525337813sxV5G" }, "success": true, "t": 1627892040102 } 2021-08-02 10:14:00 DEBUG (MainThread) [tuya iot] start 2021-08-02 10:14:00 DEBUG (Thread-4) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/iot-03/open-hub/access-config, params = None, body = {'uid': 'eu1621525337813sxV5G', 'link_id': 'tuya-iot-app-sdk-python.96712448-f369-11eb-9cdf-f44d306ecf06', 'link_type': 'mqtt', 'topics': 'device', 'msg_encrypted_version': '1.0'}, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '88888888888888888888888888', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040201', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/users/eu1621525337813sxV5G/devices, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': 'E757EF929E98608000089DEEF404CC3890191F2D006637577605BFD29A837756', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040201', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (Thread-4) [tuya iot] Response: { "result": { "client_id": "cloud_7bbfe18a17ebce645762e1fdcd2d779e", "expire_time": 7200, "password": "21abb1f55a708e95f5b2079fdcfa9a31", "sink_topic": { "device": "cloud/token/out/{device_id}" }, "source_topic": { "device": "cloud/token/in/fe1b282b68ecfb954921b2374eb453ca" }, "url": "ssl://m1.tuyaeu.com:8883", "username": "*****" }, "success": true, "t": 1627892040278 } 2021-08-02 10:14:00 DEBUG (Thread-4) [tuya iot] connecting ssl://m1.tuyaeu.com:8883 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": [ { "active_time": 1623347401, "biz_type": 0, "category": "cl", "create_time": 1623347401, "icon": "smart/product_icon/cl.png", "id": "556307468caab5ea0984", "ip": "88888888888888888", "lat": "51.62436124864297", "local_key": "888888888888", "lon": "5.180110946008461", "model": "BCM700D WiFi", "name": "Gordijn serre", "online": true, "owner_id": "31097317", "product_id": "XS76BY5Q1uKO6gjC", "product_name": "Curtain", "status": [ { "code": "position", "value": 100 }, { "code": "mach_operate", "value": "STOP" }, { "code": "opposite", "value": true } ], "sub": false, "time_zone": "+01:00", "uid": "eu1621525337813sxV5G", "update_time": 1627841999, "uuid": "556307468caab5ea0984" }, { "active_time": 1622891255, "biz_type": 0, "category": "cl", "create_time": 1622891255, "icon": "smart/product_icon/cl.png", "id": "82463868c82b961052fa", "ip": "888888888888888", "lat": "51.62436124864297", "local_key": "f10b5f6f65db6b98", "lon": "5.180110946008461", "model": "BCM700D WiFi", "name": "Gordijn keuken", "online": true, "owner_id": "31097317", "product_id": "XS76BY5Q1uKO6gjC", "product_name": "Curtain", "status": [ { "code": "position", "value": 0 }, { "code": "mach_operate", "value": "STOP" }, { "code": "opposite", "value": true } ], "sub": false, "time_zone": "+01:00", "uid": "eu1621525337813sxV5G", "update_time": 1627841997, "uuid": "82463868c82b961052fa" }, { "active_time": 1621683005, "biz_type": 0, "category": "cl", "create_time": 1621683005, "icon": "smart/product_icon/cl.png", "id": "556307468caab5ea0979", "ip": "888888888888", "lat": "51.62436124864297", "local_key": "30d8620523e891c4", "lon": "5.180110946008461", "model": "BCM700D WiFi", "name": "Gordijn eethoek zijkant", "online": true, "owner_id": "31097317", "product_id": "XS76BY5Q1uKO6gjC", "product_name": "Curtain", "status": [ { "code": "position", "value": 0 }, { "code": "mach_operate", "value": "STOP" }, { "code": "opposite", "value": true } ], "sub": false, "time_zone": "+01:00", "uid": "eu1621525337813sxV5G", "update_time": 1627841997, "uuid": "556307468caab5ea0979" }, { "active_time": 1627735485, "biz_type": 0, "category": "cl", "create_time": 1627735485, "icon": "smart/product_icon/cl.png", "id": "556307468caab5e9c5a7", "ip": "8888888888", "lat": "51.62436124864297", "local_key": "034077631e0f97ba", "lon": "5.180110946008461", "name": "Gordijn eethoek rechts voor", "online": true, "owner_id": "31097317", "product_id": "XS76BY5Q1uKO6gjC", "product_name": "Curtain", "status": [ { "code": "position", "value": 0 }, { "code": "mach_operate", "value": "STOP" }, { "code": "opposite", "value": true } ], "sub": false, "time_zone": "+01:00", "uid": "eu1621525337813sxV5G", "update_time": 1627841995, "uuid": "556307468caab5e9c5a7" }, { "active_time": 1627734154, "biz_type": 0, "category": "cl", "create_time": 1627734154, "icon": "smart/product_icon/cl.png", "id": "556307468caab5ea0cb4", "ip": "8888888888888", "lat": "51.62436124864297", "local_key": "c2262fe02b5cc64c", "lon": "5.180110946008461", "name": "Gordijn eethoek linksvoor", "online": true, "owner_id": "31097317", "product_id": "XS76BY5Q1uKO6gjC", "product_name": "Curtain", "status": [ { "code": "position", "value": 0 }, { "code": "mach_operate", "value": "STOP" }, { "code": "opposite", "value": true } ], "sub": false, "time_zone": "+01:00", "uid": "eu1621525337813sxV5G", "update_time": 1627841995, "uuid": "556307468caab5ea0cb4" } ], "success": true, "t": 1627892040367 } 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5ea0984/specifications, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': 'D984C1B228E8E2993C2B5BB2EB6A45401930F6130E565716C1E5D9AA13251415', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040377', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (Thread-4) [tuya iot] _on_log: Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'cloud_7bbfe18a17ebce645762e1fdcd2d779e' 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627892040431 } 2021-08-02 10:14:00 DEBUG (Thread-5) [tuya iot] _on_log: Received CONNACK (0, 0) 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/82463868c82b961052fa/specifications, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '02C921B02410D45CD75459DDC18D6BF17F0E46982EC2B9DF714BF7004A955584', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040451', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (Thread-5) [tuya iot] connect flags->{'session present': 0}, rc->0 2021-08-02 10:14:00 DEBUG (Thread-5) [tuya iot] _on_log: Sending SUBSCRIBE (d0, m1) [(b'cloud/token/in/fe1b282b68ecfb954921b2374eb453ca', 0)] 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627892040574 } 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5ea0979/specifications, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '407D365E034AA667B078F926191EFFCB4CC6556BB71AA091B92B8E87798CCC8B', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040614', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (Thread-5) [tuya iot] _on_log: Received SUBACK 2021-08-02 10:14:00 DEBUG (Thread-5) [tuya iot] _on_subscribe: 1 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627892040637 } 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5e9c5a7/specifications, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '750975019E317726A68F92BEEA6440FE4A5326372A956750AE2C691EC33179DC', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040648', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627892040671 } 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5ea0cb4/specifications, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '6D49508A5D5970781C8A18E714CD7FFD994EC96D4249ACC7CDDACED2795DB872', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040681', 'lang': 'en'} 2021-08-02 10:14:00 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "opposite", "type": "Boolean", "values": "{}" }, { "code": "mach_operate", "type": "Enum", "values": "{\"range\":[\"ZZ\",\"FZ\",\"STOP\"]}" }, { "code": "position", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1627892040719 } 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] init support type->['binary_sensor', 'climate', 'cover', 'fan', 'humidifier', 'light', 'number', 'scene', 'select', 'sensor', 'switch', 'vacuum'] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->binary_sensor 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->climate 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->cover 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->fan 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->humidifier 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->light 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->number 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->scene 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->select 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->sensor 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->switch 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2] tuya async platform-->vacuum 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.binary_sensor] binary sensor init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.binary_sensor] binary sensor add->[] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.fan] fan init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.fan] fan add-> [] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.scene] scenes init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.sensor] sensor init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.sensor] sensor add-> [] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.switch] switch init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.switch] switch add-> [] 2021-08-02 10:14:00 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/users/eu1621525337813sxV5G/homes, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': 'B1FB32846EAA445F79F9FD1DCF8C86877B791FD222F2A24A2FC16B2B7A44B87F', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040784', 'lang': 'en'} 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.cover] cover init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.cover] cover add-> ['556307468caab5ea0984', '82463868c82b961052fa', '556307468caab5ea0979', '556307468caab5e9c5a7', '556307468caab5ea0cb4'] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.climate] climate init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.climate] climate add->[] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.humidifier] humidifier init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.humidifier] humidifier add-> [] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.number] number init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.number] number add-> [] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.vacuum] vacuum init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.vacuum] vacuum add -> [] 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.select] select init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.select] select add-> [] 2021-08-02 10:14:00 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": [ { "geo_name": "", "home_id": 31097317, "lat": 0, "lon": 0, "name": "Mijn huis ..", "role": "OWNER" } ], "success": true, "t": 1627892040832 } 2021-08-02 10:14:00 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/homes/31097317/scenes, params = None, body = None, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '4B13C0C3742019654F20A22D67D2FA92F7CD048E7A9BFF391596C061AB2073F5', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892040845', 'lang': 'en'} 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.light] light init 2021-08-02 10:14:00 INFO (MainThread) [custom_components.tuya_v2.light] light add-> [] 2021-08-02 10:14:00 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": [], "success": true, "t": 1627892040887 } 2021-08-02 10:15:00 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:15:00 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:15:43 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5ea0cb4/commands, params = None, body = {'commands': [{'code': 'control', 'value': 'close'}]}, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '1ADBC7AEF278AE89945333FD042D81C9DC777264AD858A1B0BF85B6767CB016D', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892143959', 'lang': 'en'} 2021-08-02 10:15:44 DEBUG (SyncWorker_0) [tuya iot] Response: { "code": 2008, "msg": "command or value not support", "success": false, "t": 1627892144083 } 2021-08-02 10:16:00 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:16:00 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:17:00 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:17:01 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:18:01 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:18:01 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:18:16 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/556307468caab5ea0cb4/commands, params = None, body = {'commands': [{'code': 'control', 'value': 'close'}]}, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '5892B8DD500A8371037B146E4D2EE4EF1748C4C076C6BC6727090F97F34D628E', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892296494', 'lang': 'en'} 2021-08-02 10:18:16 DEBUG (SyncWorker_0) [tuya iot] Response: { "code": 2008, "msg": "command or value not support", "success": false, "t": 1627892296632 } 2021-08-02 10:19:01 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:19:01 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:20:01 DEBUG (Thread-5) [tuya iot] _on_log: Sending PINGREQ 2021-08-02 10:20:01 DEBUG (Thread-5) [tuya iot] _on_log: Received PINGRESP 2021-08-02 10:20:11 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/82463868c82b961052fa/commands, params = None, body = {'commands': [{'code': 'control', 'value': 'close'}]}, headers = {'client_id': 'a7shrm83asdk9yb53rr4', 'sign': '0EBEA2A312B175B1E2CA3C57A6C67EEEB406B413EA0F7E405D5EB87B90DB5954', 'sign_method': 'HMAC-SHA256', 'access_token': '**', 't': '1627892411062', 'lang': 'en'} 2021-08-02 10:20:11 DEBUG (SyncWorker_0) [tuya iot] Response: { "code": 2008, "msg": "command or value not support", "success": false, "t": 1627892411183 }

robertvanroosmalen commented 3 years ago

When using scenes in the Tuya Smart app and then calling the scene from HA works for opening and closing.

robertvanroosmalen commented 3 years ago

Version 1.5 did'nt help resolving this issues unfortunately