make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.31k stars 512 forks source link

Poolex Q line adds as domestic water heater with different commands #777

Closed WilcoE closed 1 year ago

WilcoE commented 1 year ago

My Poolex Q-line heatpump is discovered as "hydrotherm_dynamic_x8_water_heater", which is a domestic water heater. current and set temperatures are there, but the possible mode settings are all wrong.

Log Message

2023-06-08 22:38:23.114 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches hydrotherm_dynamic_x8_water_heater with quality of 71%. DPS: {"updated_at": 1686256702.6255624, "1": true, "2": 31, "3": 30, "4": "ECO_Heat", "11": "heating", "13": "c", "21": 0}

Please paste logs here

Information about DPS mappings

Please paste the output here.

{ "result": { "category": "qn", "functions": [ { "code": "switch", "dp_id": 1, "type": "Boolean", "values": "{}" }, { "code": "temp_set", "dp_id": 2, "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":5,\"max\":80,\"scale\":0,\"step\":1}" }, { "code": "temp_unit_convert", "dp_id": 13, "type": "Enum", "values": "{\"range\":[\"c\",\"f\"]}" }, { "code": "temp_set_f", "dp_id": 14, "type": "Integer", "values": "{\"unit\":\"℉\",\"min\":41,\"max\":176,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "switch", "dp_id": 1, "type": "Boolean", "values": "{}" }, { "code": "temp_set", "dp_id": 2, "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":5,\"max\":80,\"scale\":0,\"step\":1}" }, { "code": "temp_current", "dp_id": 3, "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":-30,\"max\":100,\"scale\":0,\"step\":1}" }, { "code": "work_state", "dp_id": 11, "type": "Enum", "values": "{\"range\":[\"heating\"]}" }, { "code": "temp_unit_convert", "dp_id": 13, "type": "Enum", "values": "{\"range\":[\"c\",\"f\"]}" }, { "code": "temp_set_f", "dp_id": 14, "type": "Integer", "values": "{\"unit\":\"℉\",\"min\":41,\"max\":176,\"scale\":0,\"step\":1}" }, { "code": "temp_current_f", "dp_id": 15, "type": "Integer", "values": "{\"unit\":\"℉\",\"min\":-22,\"max\":212,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1686294419782, "tid": "3a415602069411eeac8032ebdb7f4f6c" }

Product ID

{ "result": { "active_time": 1657735002, "category": "qn", "category_name": "Heater", "create_time": 1655975035, "gateway_id": "", "icon": "smart/icon/ay1540350271847tyMSF/66dc330a70e71ab0bc8cc0540b3c5ec6.png", "id": "**", "ip": "*", "lat": "52.7592", "local_key": "90e48ce91fdc7e57", "lon": "5.0993", "model": "XK-LED03", "name": "Pool Heat Pump", "online": false, "owner_id": "", "product_id": "qhrpnqjhakrn3jvv", "product_name": "Pool Heat Pump", "sub": false, "time_zone": "+02:00", "update_time": 1686241583, "uuid": "*" }, "success": true, "t": 1686294506267, "tid": "6dcbfde4069411eeac8032ebdb7f4f6c" }

Information about how the device functions

WilcoE commented 1 year ago

tested, detection of Poolex heatpump is now correct works for Poolex Q-Line 5, 7, 9

I spoke to someone who said that there is a new and old hardware version of the Poolex heat pump. I got the new hardware version. Maybe it's to better to change the name to:

name: Poolex Q-Line pool heatpump for the new hardware version and for the old name: Poolex Q-Line pool heatpump (old)

The heatpump got also different running states (Auto, Eco Heat, Eco Cool, Boost Heat, Boost Cool) this is now not in the config. i will look later today which mapping this is