rospogrigio / localtuya

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

Hysen HY08-1 Thermostat not working #731

Open geroulas opened 2 years ago

geroulas commented 2 years ago

Hello, help with Hysen HY08-1 Tuya Thermostat.
I got most of DPs sorted out, but nothing works, when I set it up via Entity Configuration.
Can I set this up using configuration.yaml? Create a climate entity and point to ids?

ID | REPRESENTS | VALUES -- | -- | -- ID1 | ON / OFF | True, Flase ID2 | TARGET TEMP (x10) | 210 ID3 | CURRENT TEMP (x10) | 185 ID4 | MODE | Manual, Program, Holiday ID6 | CHILD LOCK | True, Flase ID12 | ? | 0 ID101 | ? | True, Flase ID102 | HVAC CURRENT ACTION | True, Flase ID103 | ? | 0 ID104 | HOLIDAY MODE (DAY) | int 1 to 30 ID105 | HOLIDAY MODE (TEMP) | int 10 to 30 ID106 | ? | True, Flase ID107 | ? | True, Flase ID108 | ? | True, Flase ID109 | TEMP CALIBRATION (x10) | -20 ID110 | INT SENSOR DEADZONE (x10) | 5 ID111 | EXT SENSOR DEADZONE | 2 ID112 | HIGH TEMP PROTECTION | 45 ID113 | LOW TEMP PROTECTION | 6 ID114 | MAX TEMP LIMIT | 30 ID115 | MIN TEMP LIMIT | 10 ID116 | TEMPERATURE SENSOR | in, ext, all ID117 | DEVICE STATE ON POWER | Off, keep, On ID118 | PROGRAM TYPE | 2days, 1days, 0days
atze09 commented 2 years ago

How did you sort the DP? i am struggling with the sorting? Try and error or is there any easier way?

geroulas commented 2 years ago

How did you sort the DP? i am struggling with the sorting? Try and error or is there any easier way?

I created a sensor for every dp.. try all buttons on thermostat to see what is what.

atze09 commented 2 years ago

How did you sort the DP? i am struggling with the sorting? Try and error or is there any easier way?

I created a sensor for every dp.. try all buttons on thermostat to see what is what.

Could you please share your config for all the dp, so i can edit. I could not get it running. Thank you

atze09 commented 2 years ago

should also be possible with curl get, but i don't get it running either.

atze09 commented 2 years ago

I have got it via: https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html#_7-find-your-devices

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns="http://www.w3.org/TR/REC-html40">

DP |   |   -- | -- | -- 1 | True/false | Power 2 | 240 | Set Temp 3 | 23 | Temp Current 4 | range\":[\"cold\",\"hot\",\"wet\",\"wind\",\"auto\"   Aus | Mode 5 | mid | Fan 18 | 0 | Current Humidity 20 | 0 | Fault 101 | 0 | PM2.5 105 | off | Sleep 110 | 4325951 | identification bit 113 | 0 | Sweep up and down 114 | 0 | Sweep left and right 119 |   | Electricity Management 120 | off | GEN Mode 123 | 0018 | boolean 125 | great | air quality 126 | 0 | Freeze up and down 127 | 0 | Freeze left and right 128 | 0 | Model 129 | 1 | Power 130 | 26 | Target temperature 131 | false | Filter Dirty 132 | false | 高温风/凉感风 High temperature wind/cool wind 133 | 0 | Swing 134 | "t":1645516430,"s":false,"clr":true) | Running time 135 | 1 | operation hours 136 |   | Temp set F

But how to map the localtuya implementation?