0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
217 stars 67 forks source link

Add support for xxx #207

Open FleZzz opened 1 year ago

FleZzz commented 1 year ago

Hello, can you add support for dehumidifier? model is TCL DEWA20EB its recognised with SmartLife app and controls perfect but when im trying to add it to HomeKit with Homebridge I can't setup overrides

due checking debug logs I can provide

from app on/off

topic = cloud/token/in/123456
protocol = 4
message = {
  "dataId": "0ba075a1-2349-4763-bb03-99b5a5416d2c",
  "devId": "01616020a4e57c9f6085",
  "productKey": "3ZXJDubQ13lNTaLT",
  "status": [
    {
      "1": false,
      "code": "switch",
      "t": "1673546560",
      "value": false
    }
  ]
}

current humidity 73% (report from device)

topic = cloud/token/in/123456
protocol = 4
message = {
  "dataId": "c5ba3d25-0f6b-4d50-9962-ee98c111c03d",
  "devId": "123456",
  "productKey": "3ZXJDubQ13lNTaLT",
  "status": [
    {
      "18": 73
    }
  ]
}

mode 0, 1, 2, 3 (0 - Continuous run, 1 - Fan only, 2 - Laundry, 3 - dehumidity&fan,)

topic = cloud/token/in/123456
protocol = 4
message = {
  "dataId": "2dbe2e1f-4aec-41a3-a22b-bc92267a86af",
  "devId": "123456",
  "productKey": "3ZXJDubQ13lNTaLT",
  "status": [
    {
      "5": "3"
    }
  ]
}

set humidity level (could be 15% (lowest) or next 35% to 80% with 5% step)

topic = cloud/token/in/123456
protocol = 4
message = {
  "dataId": "acb883e7-560c-4b8b-adeb-b65a93a21070",
  "devId": "123456",
  "productKey": "3ZXJDubQ13lNTaLT",
  "status": [
    {
      "6": 35
    }
  ]
}
0x5e commented 1 year ago

have you read the faq and change the device into dp instruction mode? dehumidifier is already supported, if your device have non-standard dp, please use advanced options.

FleZzz commented 1 year ago

after some last updates its recognised in apple home with device category override to 'cs' , but still not support mode select and set humidity level