iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
395 stars 165 forks source link

New Device: Heater - Goldair GCT330 #457

Closed idanoo closed 6 months ago

idanoo commented 6 months ago

Describe your device Goldair GCT330 Manual: https://cdn.shopify.com/s/files/1/0559/5067/2066/files/GCT330_IM_2023.pdf?v=1708393367

Tower Heater, Oscillating, Low/High mode & temp setting.

Partial Support? Does not seem to decrypt the messages. have connected it directly with the Tuya App and extracted the ID/Key from the Cloud API. I had this working using the Tuya Cloud plugin, but want to get it working locally.

[4/4/2024, 5:32:16 PM] [homebridge-tuya] Connected to Heater
[4/4/2024, 5:32:16 PM] [homebridge-tuya] Odd message from Heater with command 10: �\�\.cv�{�=P[�낈�e�T��f�W�Z
[4/4/2024, 5:32:16 PM] [homebridge-tuya] Raw message fromHeater (3.1) with command 10: 000055aa000000010000000a0000002c00000001b55c855c2e6376f07b833d505be8eb8288ec651beadb54edc06696570117a95ae707bac60000aa55

I have tested with API version 3.1/3.2/3.3 in case it was an issue with communication/decryption

Device Schema I have tested defaults, as well as the settings in the docs.

        {
            "type": "SimpleHeater",
            "name": "Heater",
            "id": "<redacted>",
            "key": "<redacted>",
            "ip": "10.0.200.14",
            "manufacturer": "Goldair",
            "model": "GCT330",
            "version": "3.2",
            "minTemperature": 15,
            "maxTemperature": 35,
            "dpActive": 1,
            "dpDesiredTemperature": 2,
            "dpCurrentTemperature": 3,
            "temperatureDivisor": 1
        }

Additional context I am comfortable to jump in and edit code locally/add logging/etc if needed.

idanoo commented 6 months ago

I'm an idiot. Somehow the local key changed from when I dumped it a long time ago. Or I somehow got the wrong one 🤷 Updated it - now it decodes fine, but still has errors

I just get "parse data error"

Cmd > 10    Len > 60    Size > 44   Seq > 1
CRC >   Pass
1    Decoded 10> parse data error
1    Raw 10> 000055aa000000010000000a0000002c00000001b55c855c2e6376f07b833d505be8eb8288ec651beadb54edc06696570117a95ae707bac60000aa55
idanoo commented 6 months ago

And just like that.. Had to set v3.3!

[4/4/2024, 7:12:21 PM] [homebridge-tuya] Connected to Heater
[4/4/2024, 7:12:21 PM] [homebridge-tuya] Ready to handle Heater (SimpleHeater:3.3) with signature {"1":false,"2":20,"3":22,"4":"0","5":"level_2","8":false,"19":"cancel","20":0}