Open LiorTobias opened 2 years ago
kg
is not a cover...
The manufacturer of your device might have used a switch device to create their curtain stuff.
But kg
is a plain old switch, see also:
https://developer.tuya.com/en/docs/iot/categorykgczpc?id=Kaiuz08zj1l4y
Hi @frenck, what are you suggesting then? Should I just buy something else? Or could the Tuya integration support this?
Thanks
The Tuya integration already supports switches. Your device is a switch.
Currently the device is a cover, this how it looks in home assistant with the previous Tuya integration See attachment
See the entity id: cover.xxxxxxxxxxxxx
When I upgrade to the new tuya integration, it gets recognized as a cover but it shows it as unsupported.
What do you suggest I do? Thanks
What do you suggest I do?
Dunno, if the device category is kg
it ain't a Cover, so in that case the old integration was incorrect.
I got the same error and device:
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.2.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.7", "docker": true, "arch": "aarch64", "timezone": "Europe/Amsterdam", "os_name": "Linux", "os_version": "5.10.92-v8", "supervisor": "2022.01.1", "host_os": "Home Assistant OS 7.3", "docker_version": "20.10.9", "chassis": "embedded", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.22.0", "requirements": [ "aiogithubapi>=21.11.0" ] }, "mind": { "version": "1.2.1", "requirements": [ "https://github.com/bramkragten/python-mind/archive/master.zip#python-mind==0.0.5" ] }, "tuya_v2": { "version": "1.5.0", "requirements": [ "tuya-iot-py-sdk==0.4.1" ] }, "nodered": { "version": "1.0.6", "requirements": [] }, "localtuya": { "version": "3.2.1", "requirements": [] }, "webrtc": { "version": "v2.2.0", "requirements": [] }, "yi_hack": { "version": "0.3.0", "requirements": [] }, "eufy_vacuum_g30": { "version": "0.9", "requirements": [] }, "ble_monitor": { "version": "7.5.2", "requirements": [ "pycryptodomex>=3.12.0", "janus>=1.0.0", "aioblescan>=0.2.12" ] }, "greenchoice": { "version": "1.0.1", "requirements": [] }, "eufy_security": { "version": "2.2.3", "requirements": [ "websocket-client==1.1.0" ] }, "scheduler": { "version": "v0.0.0", "requirements": [] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@METISU", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17*" }, { "macaddress": "10D561*" }, { "macaddress": "1869D8*" }, { "macaddress": "381F8D*" }, { "macaddress": "508A06*" }, { "macaddress": "68572D*" }, { "macaddress": "708976*" }, { "macaddress": "7CF666*" }, { "macaddress": "84E342*" }, { "macaddress": "D4A651*" }, { "macaddress": "D81F12*" } ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "31", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Zonnescherm ", "model": "WN-KC1C WN-NC1C WN-RC1C WN-UC1C", "category": "kg", "product_id": "euhlq9nnjpukajcj", "product_name": "Smart curtain switch", "online": true, "sub": false, "time_zone": "+02:00", "active_time": "2021-08-31T18:30:36+00:00", "create_time": "2021-08-31T18:30:36+00:00", "update_time": "2021-12-15T19:47:03+00:00", "function": { "control": { "type": "Enum", "value": { "range": [ "open", "stop", "close" ] } }, "tr_timecon": { "type": "Integer", "value": { "max": 120, "min": 10, "scale": 0, "step": 1, "unit": "s" } }, "control_back_mode": { "type": "Enum", "value": { "range": [ "forward", "back" ] } } }, "status_range": { "control": { "type": "Enum", "value": { "range": [ "open", "stop", "close" ] } }, "control_back_mode": { "type": "Enum", "value": { "range": [ "forward", "back" ] } }, "tr_timecon": { "type": "Integer", "value": { "max": 120, "min": 10, "scale": 0, "step": 1, "unit": "s" } } }, "status": { "control": "open", "control_back_mode": "forward", "tr_timecon": 23 }, "home_assistant": { "name": "Zonnescherm ", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [] } } }
{ "result": { "active_time": 1636710615, "biz_type": 18, "category": "kg", "create_time": 1610896351, "icon": "smart/program_category_icon/kg.png",
}, "success": true, "t": 1640273708112 }