bewee / tuya-adapter

GNU General Public License v3.0
8 stars 8 forks source link

Tuya Thermostat #43

Open timbo1975 opened 2 years ago

timbo1975 commented 2 years ago

Hi, firstly thanks for your work - my lights work a treat no issue with this addon. I have a kknoon (Tuya Thermostat) "model": "ME81", "product_id": "gogb05wrtredz3bs", "product_name": "smart thermostats". I'd love to get this working with WebThings but there isn't a drop down for thermostats (Fireplace heater? might work). I've tried using that Fireplace heater option but the config is wrong. I'd be happy to write a config as I have access to the Tuya IoT and can get all the commands I'm just not sure how to add them in a config. Here's a dump of the json. I'd be happy to test any suggestions to get this to work.

"result": { "category": "wk", "functions": [ { "code": "switch", "desc": "switch", "name": "switch", "type": "Boolean", "values": "{}" }, { "code": "mode", "desc": "mode", "name": "mode", "type": "Enum", "values": "{\"range\":[\"auto\",\"manual\"]}" }, { "code": "frost", "desc": "frost", "name": "frost", "type": "Boolean", "values": "{}" }, { "code": "temp_set", "desc": "temp set", "name": "temp set", "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":5,\"max\":90,\"scale\":0,\"step\":1}" }, { "code": "upper_temp", "desc": "upper temp", "name": "upper temp", "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":30,\"max\":90,\"scale\":0,\"step\":1}" }, { "code": "lower_temp", "desc": "lower temp", "name": "lower temp", "type": "Integer", "values": "{\"unit\":\"℃\",\"min\":5,\"max\":20,\"scale\":0,\"step\":1}" }, { "code": "temp_correction", "desc": "temp correction", "name": "temp correction", "type": "Integer", "values": "{\"unit\":\"摄氏度\",\"min\":-9,\"max\":9,\"scale\":0,\"step\":1}" }, { "code": "factory_reset", "desc": "factory reset", "name": "factory reset", "type": "Boolean", "values": "{}" }, { "code": "child_lock", "desc": "child lock", "name": "child lock", "type": "Boolean", "values": "{}" }, { "code": "sensor_choose", "desc": "sensor choose", "name": "sensor choose", "type": "Enum", "values": "{\"range\":[\"in\",\"out\"]}" } ] }, "success": true, "t": 1644424869288 }

bewee commented 2 years ago

Hi @timbo1975,

Happy to hear that the addon is useful to you :) Please have a look at the CONTRIBUTING.md and report back with the mentioned details, or (even better, if you are able to) open a PR that implements support for thermostats yourself.

Cheers!