rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.71k stars 530 forks source link

ZX-8248 - Heated underblanket #1562

Open ghost opened 7 months ago

ghost commented 7 months ago

The problem

Heated underblanket for use under the bed sheet. Can you please add support. Tuya devices for switching on and off as well as for selecting the heat level and switching on the timer Automatic functions programmable. Compatible with the Smart Life system: ELESION as well as Smart Life and Tuya devices can be combined to form a smart home system if desired.

Unfortunately I can't control any of the functions. Can someone help?

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.11.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.1.21-v8", "supervisor": "2023.11.3", "host_os": "Home Assistant OS 11.1", "docker_version": "24.0.6", "chassis": "embedded", "run_as_root": true }, "custom_components": { "bosch": { "version": "0.23.4", "requirements": [ "bosch-thermostat-client==0.23.2" ] }, "dreame_vacuum": { "version": "v1.0.2", "requirements": [ "pillow", "numpy", "pybase64", "requests", "pycryptodome", "python-miio", "py-mini-racer", "tzlocal", "paho-mqtt" ] }, "rademacher": { "version": "2.0.1", "requirements": [ "pyrademacher==0.11.2" ] }, "ta_cmi": { "version": "1.8.7", "requirements": [ "ta-cmi==2.2.0" ] }, "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "xiaomi_cloud_map_extractor": { "version": "v2.2.0", "requirements": [ "pillow", "pybase64", "python-miio", "requests", "pycryptodome" ] }, "bosch_shc": { "version": "0.4.68", "requirements": [ "boschshcpy==0.2.77" ] }, "localtuya": { "version": "5.2.1", "requirements": [] } }, "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": "49", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "UG Heizdecke rechts", "model": "W\u00e4rmeunterbett", "category": "dr", "product_id": "djsnd5y7wgo2byga", "product_name": "ZX-8248", "online": true, "sub": false, "time_zone": "+01:00", "active_time": "2023-11-21T19:07:30+00:00", "create_time": "2023-11-21T19:07:30+00:00", "update_time": "2023-11-21T19:08:38+00:00", "function": { "switch": { "type": "Boolean", "value": {} }, "level": { "type": "Enum", "value": { "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } }, "level_1": { "type": "Enum", "value": { "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } }, "countdown_set_1": { "type": "Enum", "value": { "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } }, "countdown_set_2": { "type": "Enum", "value": { "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } } }, "status_range": { "switch": { "type": "Boolean", "value": {} }, "level": { "type": "Enum", "value": { "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } }, "level_1": { "type": "Enum", "value": { "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } }, "countdown_set_1": { "type": "Enum", "value": { "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } }, "countdown_set_2": { "type": "Enum", "value": { "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } }, "countdown_left_1": { "type": "Integer", "value": { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 } }, "countdown_left_2": { "type": "Integer", "value": { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 } } }, "status": { "switch": true, "level": "level_2", "level_1": "level_2", "countdown_set_1": "2h", "countdown_set_2": "2h", "countdown_left_1": 4560, "countdown_left_2": 4560 }, "home_assistant": { "name": "UG Heizdecke rechts", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [] } } }

What version of Home Assistant Core has the issue?

2023.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

2023.11.3

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

ghost commented 7 months ago

What data is needed to add the device? Thanks and regards

ghost commented 7 months ago

Device Information

Product Name ZX-8248

Product Category dr

ghost commented 7 months ago

Standard Instruction Set:

Code Type Values switch Boolean "{true,false}" level Enum
{ "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } level_1 Enum
{ "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } countdown_set_1 Enum
{ "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } countdown_set_2 Enum
{ "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] }

ghost commented 7 months ago

Standard Status Set

Code Type Values switch Boolean "{true,false}" level Enum
{ "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } level_1 Enum
{ "range": [ "level_1", "level_2", "level_3", "level_4", "level_5", "level_6", "level_7" ] } countdown_set_1 Enum
{ "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } countdown_set_2 Enum
{ "range": [ "1h", "2h", "3h", "4h", "5h", "6h" ] } countdown_left_1 Integer { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 } countdown_left_2 Integer { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 }

ghost commented 7 months ago

JSON_EDITOR

[ { "code": "switch", "value": true }, { "code": "level", "value": "level_2" }, { "code": "level_1", "value": "level_2" }, { "code": "countdown_set_1", "value": "2h" }, { "code": "countdown_set_2", "value": "2h" } ]

ghost commented 7 months ago

ZX-8248 Devices: Product Type: Electric Blanket

DP Instruction Standard Instruction
switch switch
level level
level_1 level_1
countdown_set_1 countdown_set_1
countdown_set_2 countdown_set_2
countdown_left_1 countdown_left_1
countdown_left_2 countdown_left_2
ghost commented 7 months ago

Device Logs

2023-11-21 23:35:07 Report Remaining time - lower body countdown 5040s device itself  
2023-11-21 23:35:05 Report Remaining time - upper body countdown 5040s device itself  
2023-11-21 23:34:07 Report Remaining time - lower body countdown 5100s device itself  
2023-11-21 23:34:05 Report Remaining time - upper body countdown 5100s device itself  
2023-11-21 23:33:07 Report Remaining time - lower body countdown 5160s device itself  
2023-11-21 23:33:05 Report Remaining time - upper body countdown 5160s device itself  
2023-11-21 23:32:07 Report Remaining time - lower body countdown 5220s device itself  
2023-11-21 23:32:05 Report Remaining time - upper body countdown 5220s device itself  
2023-11-21 23:31:07 Report Remaining time - lower body countdown 5280s device itself  
2023-11-21 23:31:05 Report Remaining time - upper body countdown 5280s device itself  
ghost commented 7 months ago

image image

ghost commented 7 months ago

Tuya Smart (App)

Screenshot_20231121_234024_Tuya Smart Screenshot_20231121_234033_Tuya Smart Screenshot_20231121_234039_Tuya Smart

ghost commented 7 months ago

Hello, what data is still needed to add the function? Thanks and regards