I succeed add the curtain but without the light
Anyone know what the issue?
i have the same problem , any one ? help ?
I have the same problem, works fine the curtain but switch light doesn’t show
Maybe it’s because the type info in the device “Curtain switch by tuya”
Hello,
See below my Curtain+2 Lights Avatto Tuya WIFI switch diagnostics.
I assume the problem is that in the Home Assistant the device can be recognized either as a curtain or as a switch.
In the diagnostics there lights parameters seem to be delivered:
"Light_1": {
"type": "Boolean",
"value": {}
},
"Light_2": {
"type": "Boolean",
"value": {}
However, they are probably ignored due to the device classification in Home Assistant as a Curtain.
Is any way to set it in the Home assistant as a double function device or splitting it somehow into 2 “virtual” devices?
My solution to overcome this issue till now was setting up the lights separately in the Local Tuya. However this is not stable - the entities are getting status “Unavailable” periodically with not a simple way to reauthenticate them .
Will appreciate your help.
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.5.4",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.11",
"docker": true,
"arch": "aarch64",
"timezone": "Asia/Jerusalem",
"os_name": "Linux",
"os_version": "6.1.25",
"supervisor": "2023.04.1",
"host_os": "Home Assistant OS 10.1",
"docker_version": "23.0.3",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"tuya_local": {
"version": "2022.5.1",
"requirements": [
"pycryptodome~=3.17",
"tinytuya==1.12.7"
]
},
"hacs": {
"version": "1.32.1",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"androidtv_custom": {
"version": "0.1.7",
"requirements": [
"adb-shell[async]==0.4.3",
"androidtv[async]==0.0.70",
"pure-python-adb[async]==0.3.0.dev0"
]
},
"arpscan_tracker": {
"version": "1.0.6",
"requirements": []
},
"localtuya": {
"version": "5.0.0",
"requirements": []
},
"smartthinq_sensors": {
"version": "0.31.6",
"requirements": [
"pycountry>=20.7.3",
"xmltodict>=0.12.0",
"charset_normalizer>=2.0.0"
]
}
},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"codeowners": [
"@Tuya",
"@zlinoliver",
"@frenck"
],
"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_iot"
],
"requirements": [
"tuya-iot-py-sdk==0.6.6"
],
"is_built_in": true
},
"data": {
"endpoint": "https://openapi.tuyaeu.com",
"auth_type": 0,
"country_code": "972",
"app_type": "tuyaSmart",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "2Ron-Curtain+2gangs",
"model": "",
"category": "clkg",
"product_id": "n76sxga6lyfujuac",
"product_name": "Curtain switch",
"online": true,
"sub": false,
"time_zone": "+03:00",
"active_time": "2023-05-05T11:49:43+00:00",
"create_time": "2023-03-24T09:50:09+00:00",
"update_time": "2023-05-18T12:28:50+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": 10
}
},
"cur_calibration": {
"type": "Enum",
"value": {
"range": [
"start",
"end"
]
}
},
"switch_backlight": {
"type": "Boolean",
"value": {}
},
"control_back": {
"type": "Enum",
"value": {
"range": [
"forward",
"back"
]
}
},
"tr_timecon": {
"type": "Integer",
"value": {
"unit": "s",
"min": 10,
"max": 120,
"scale": 0,
"step": 1
}
},
"elec_machinery_mode": {
"type": "Enum",
"value": {
"range": [
"strong_power",
"dry_contact"
]
}
},
"Light_1": {
"type": "Boolean",
"value": {}
},
"Light_2": {
"type": "Boolean",
"value": {}
},
"countdown_L1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"countdown_L2": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status_range": {
"control": {
"type": "Enum",
"value": {
"range": [
"open",
"stop",
"close",
"continue"
]
}
},
"percent_control": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 10
}
},
"cur_calibration": {
"type": "Enum",
"value": {
"range": [
"start",
"end"
]
}
},
"switch_backlight": {
"type": "Boolean",
"value": {}
},
"control_back": {
"type": "Enum",
"value": {
"range": [
"forward",
"back"
]
}
},
"tr_timecon": {
"type": "Integer",
"value": {
"unit": "s",
"min": 10,
"max": 120,
"scale": 0,
"step": 1
}
},
"elec_machinery_mode": {
"type": "Enum",
"value": {
"range": [
"strong_power",
"dry_contact"
]
}
},
"Light_1": {
"type": "Boolean",
"value": {}
},
"Light_2": {
"type": "Boolean",
"value": {}
},
"countdown_L1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"countdown_L2": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
}
},
"status": {
"control": "stop",
"percent_control": 0,
"cur_calibration": "end",
"switch_backlight": true,
"control_back": "forward",
"tr_timecon": 30,
"elec_machinery_mode": "strong_power",
"Light_1": false,
"Light_2": false,
"countdown_L1": 0,
"countdown_L2": 0
},
"home_assistant": {
"name": "2Ron-Curtain+2gangs",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "curtain",
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "cover.2ron_curtain_2gangs_curtain",
"state": "open",
"attributes": {
"current_position": 100,
"device_class": "curtain",
"friendly_name": "2Ron-Curtain+2gangs Curtain",
"supported_features": 15
},
"last_changed": "2023-05-25T04:37:37.121849+00:00",
"last_updated": "2023-05-25T04:37:37.121849+00:00"
}
},
{
"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": "light.2ron_curtain_2gangs_backlight",
"state": "on",
"attributes": {
"supported_color_modes": [
"onoff"
],
"color_mode": "onoff",
"friendly_name": "2Ron-Curtain+2gangs Backlight",
"supported_features": 0
},
"last_changed": "2023-05-25T04:37:37.134979+00:00",
"last_updated": "2023-05-25T04:37:37.134979+00:00"
}
}
]
}
}
}
Have you find a solution ?