-
Notifications
You must be signed in to change notification settings - Fork 209
Description
Describe the bug
I have a WIFI Curtain Motor, in HA I can set the position, but the buttons STOP, OPEN and CLOSE doesn't work
Expected behavior
When I press any of the buttons it should STOP the motor or OPEN all the way the curtain or CLOSE it all the way
Diagnostics for integrations and devices
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2025.11.2",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.13.9",
"docker": true,
"arch": "aarch64",
"timezone": "Private",
"os_name": "Linux",
"os_version": "6.12.51-haos",
"container_arch": "aarch64",
"supervisor": "2025.11.3",
"host_os": "Home Assistant OS 16.3",
"docker_version": "28.3.3",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"codeowners": [
"Tuya",
"zlinoliver"
],
"config_flow": true,
"dependencies": [
"ffmpeg"
],
"dhcp": [
{
"macaddress": "105A17*"
},
{
"macaddress": "10D561*"
},
{
"macaddress": "1869D8*"
},
{
"macaddress": "381F8D*"
},
{
"macaddress": "508A06*"
},
{
"macaddress": "68572D*"
},
{
"macaddress": "708976*"
},
{
"macaddress": "7CF666*"
},
{
"macaddress": "84E342*"
},
{
"macaddress": "D4A651*"
},
{
"macaddress": "D81F12*"
}
],
"documentation": "https://www.home-assistant.io/integrations/tuya",
"integration_type": "hub",
"iot_class": "cloud_push",
"loggers": [
"tuya_sharing"
],
"requirements": [
"tuya-device-sharing-sdk==0.2.5"
],
"is_built_in": true,
"overwrites_built_in": false
},
"setup_times": {
"null": {
"setup": 8.166599999981372e-05
},
"01KA7Q191GXE8KRW1W16X6WXRS": {
"wait_import_platforms": -0.1715420790000053,
"wait_base_component": -0.0031065430000012384,
"config_entry_setup": 12.154015803999982
}
},
"data": {
"endpoint": "https://apigw.tuyaus.com",
"terminal_id": "17633431152366Tozpr",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"id": "eb5dd087e08e26635etwua",
"name": "Motor de corinas wifi",
"category": "cl",
"product_id": "vsz3xze8tbyz5pit",
"product_name": "WiFi curtain motor",
"online": true,
"sub": false,
"time_zone": "-07:00",
"active_time": "2025-08-23T00:56:10+00:00",
"create_time": "2025-08-23T00:56:10+00:00",
"update_time": "2025-08-23T00:56:10+00:00",
"function": {
"control": {
"type": "Enum",
"value": {
"range": [
"open",
"stop",
"close",
"continue"
]
}
},
"percent_control": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"control_back_mode": {
"type": "Enum",
"value": {
"range": [
"forward",
"back"
]
}
},
"countdown_set": {
"type": "Enum",
"value": {
"range": [
"cancel",
"1h",
"2h",
"3h",
"4h"
]
}
}
},
"status_range": {
"control": {
"type": "Enum",
"value": {
"range": [
"open",
"stop",
"close",
"continue"
]
}
},
"percent_control": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"percent_state": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"control_back_mode": {
"type": "Enum",
"value": {
"range": [
"forward",
"back"
]
}
},
"work_state": {
"type": "Enum",
"value": {
"range": [
"opening",
"closing"
]
}
},
"countdown_set": {
"type": "Enum",
"value": {
"range": [
"cancel",
"1h",
"2h",
"3h",
"4h"
]
}
},
"countdown_left": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"time_total": {
"type": "Integer",
"value": {
"unit": "ms",
"min": 0,
"max": 120000,
"scale": 0,
"step": 1
}
},
"situation_set": {
"type": "Enum",
"value": {
"range": [
"fully_open",
"fully_close"
]
}
},
"fault": {
"type": "Bitmap",
"value": {
"label": [
"motor_fault"
]
}
}
},
"status": {
"control": "stop",
"percent_control": 0,
"percent_state": 3,
"control_back_mode": "forward",
"work_state": "opening",
"countdown_set": "cancel",
"countdown_left": 0,
"time_total": 50816,
"situation_set": "fully_open",
"fault": 0
},
"home_assistant": {
"name": "Motor de corinas wifi",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "select.motor_de_corinas_wifi_motor_mode",
"state": "forward",
"attributes": {
"options": [
"forward",
"back"
],
"friendly_name": "Motor de corinas wifi Motor mode"
},
"last_changed": "2025-11-19T02:40:46.552073+00:00",
"last_reported": "2025-11-19T02:54:00.383745+00:00",
"last_updated": "2025-11-19T02:40:46.552073+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "diagnostic",
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": null,
"unit_of_measurement": "ms",
"state": {
"entity_id": "sensor.motor_de_corinas_wifi_last_operation_duration",
"state": "50816.0",
"attributes": {
"unit_of_measurement": "ms",
"friendly_name": "Motor de corinas wifi Last operation duration"
},
"last_changed": "2025-11-19T02:40:46.617130+00:00",
"last_reported": "2025-11-19T02:54:00.383964+00:00",
"last_updated": "2025-11-19T02:40:46.617130+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": "curtain",
"original_device_class": "curtain",
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "cover.motor_de_corinas_wifi_curtain",
"state": "open",
"attributes": {
"current_position": 97,
"device_class": "curtain",
"friendly_name": "Cortinas de Alejandro",
"supported_features": 15
},
"last_changed": "2025-11-19T02:40:46.471711+00:00",
"last_reported": "2025-11-19T02:54:00.383554+00:00",
"last_updated": "2025-11-19T02:49:03.153811+00:00"
}
}
]
},
"set_up": true,
"support_local": true
},
"issues": []
}
Screenshots
Home Assistant Version
2025.11.2
Device info (please complete the following information, which can be found in log):
like this:
{
"active_time": 1623229189,
"biz_type": 18,
"category": "cz",
"create_time": 1560491945,
"icon": "smart/product_icon/cz.png",
"id": "aaaaaaaaaaa",
"ip": "xxxxxxxxxxxxxxxx",
"lat": "xxxxxxxxxx",
"local_key": "xxxxxxxxxxxxx",
"lon": "xxxxxxx",
"model": "",
"name": "Living Room Socket",
"online": false,
"owner_id": "34794909",
"product_id": "yfemiswbgjhddhcf",
"product_name": "Switch Product",
"status": [
{
"code": "switch",
"value": false
},
{
"code": "countdown_1",
"value": 0
},
{
"code": "cur_current",
"value": 0
},
{
"code": "cur_power",
"value": 0
},
{
"code": "cur_voltage",
"value": 2343
}
],
"sub": false,
"time_zone": "+08:00",
"uid": "xxxxxxxxxxxxxxxxxxx",
"update_time": 1625101929,
"uuid": "xxxxxxxxxxxxxxxxxx"
}
Device specifications (please complete the following information, which can be found in log):
Same device's id, like this:
[2021-07-01 10:18:01,351] [tuya-openapi] Request: method = GET, url = https://openapi.tuyacn.com/v1.0/devices/aaaaaaaaaaa/specifications, params = None, body = None, headers = {'client_id': 'xxxxxxxxxxxx', 'sign': 'xxxxxxxxxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': 'xxxxxxxxxxxxxxxx', 't': '1625105881351', 'lang': 'en'}
2021-07-01 10:18:01 DEBUG (SyncWorker_1) [tuya iot] Response: {
"result": {
"category": "cz",
"functions": [
{
"code": "countdown_1",
"type": "Integer",
"values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}"
},
{
"code": "switch",
"type": "Boolean",
"values": "{}"
}
],
"status": [
{
"code": "cur_voltage",
"type": "Integer",
"values": "{"unit":"V","min":0,"max":2500,"scale":0,"step":1}"
},
{
"code": "cur_current",
"type": "Integer",
"values": "{"unit":"mA","min":0,"max":30000,"scale":0,"step":1}"
},
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "cur_power",
"type": "Integer",
"values": "{"unit":"W","min":0,"max":50000,"scale":0,"step":1}"
},
{
"code": "countdown_1",
"type": "Integer",
"values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}"
}
]
},
"success": true,
"t": 1625105881348
}
Additional context
Add any other context or logs about the problem here.