0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 58 forks source link

Please add support for Pro Breeze 30L Compressor Dehumidifier 1ECA #414

Open DerpaDurp opened 7 months ago

DerpaDurp commented 7 months ago

Device Infomation JSON File

[
  {
    "active_time": 1701430660,
    "biz_type": 0,
    "category": "cs",
    "create_time": 1701254200,
    "icon": "smart/product_icon2/cs_1.png",
    "id": "bf696d410a042d5308bost",
    "ip": "xxx",
    "lat": "xxx",
    "local_key": "xxx",
    "lon": "xxx",
    "model": "PB-20",
    "name": "Pro Breeze 30L Compressor Dehumidifier",
    "online": true,
    "owner_id": "174124043",
    "product_id": "ipmyy4nigpqcnd8q",
    "product_name": "Pro Breeze 30L Compressor Dehumidifier",
    "status": [
      {
        "code": "anion",
        "value": false
      },
      {
        "code": "countdown_left",
        "value": 0
      },
      {
        "code": "fault",
        "value": 0
      }
    ],
    "sub": false,
    "time_zone": "+01:00",
    "uid": "xxx",
    "update_time": 1701430661,
    "uuid": "40ae48ce6acc3814",
    "schema": [
      {
        "code": "anion",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "countdown_left",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "unit": "min",
          "min": 0,
          "max": 1440,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "fault",
        "mode": "ro",
        "type": "Bitmap",
        "property": {
          "label": [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5"
          ]
        }
      }
    ],
    "unbridged": true
  }
]

Detail Informations

Dehumidifier shows up a not usable accessory in Homekit. MQTT logging not available.

[01/12/2023, 14:26:21] [Tuya] Adding new accessory: Pro Breeze 30L Compressor Dehumidifier
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] [AccessoryInformation/undefined/StatusActive] Update value: false => true
[01/12/2023, 14:26:21] [Tuya] Override 'Pro Breeze 30L Compressor Dehumidifier' category from 'cs' to 'cs'
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Product Category: cs
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Missing one of the required schema: [ 'switch' ]
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Product Category: cs
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Missing one of the required schema: [ 'humidity_indoor' ]
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[01/12/2023, 14:26:21] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Existing schema: [
  { code: 'anion', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'countdown_left',
    mode: 'ro',
    type: 'Integer',
    property: { unit: 'min', min: 0, max: 1440, scale: 0, step: 1 }
  },
  {
    code: 'fault',
    mode: 'ro',
    type: 'Bitmap',
    property: { label: [ '0', '1', '2', '3', '4', '5', [length]: 6 ] }
  },
  [length]: 3
]
[01/12/2023, 14:26:21] [Tuya] Unsupported device: Pro Breeze 30L Compressor Dehumidifier.
DerpaDurp commented 7 months ago

added the json with switch to dp instruction mode, still no luck. Overriding the device schema is too difficult for me :\


[
  {
    "active_time": 1701430660,
    "biz_type": 0,
    "category": "cs",
    "create_time": 1701254200,
    "icon": "smart/product_icon2/cs_1.png",
    "id": "bf696d410a042d5308bost",
    "ip": "xxx",
    "lat": "xxx",
    "local_key": "xxx",
    "lon": "xxx0",
    "model": "PB-20",
    "name": "Pro Breeze 30L Compressor Dehumidifier",
    "online": true,
    "owner_id": "174124043",
    "product_id": "ipmyy4nigpqcnd8q",
    "product_name": "Pro Breeze 30L Compressor Dehumidifier",
    "status": [
      {
        "code": "Power",
        "value": true
      },
      {
        "code": "anion",
        "value": false
      },
      {
        "code": "countdown",
        "value": "0"
      },
      {
        "code": "countdown_left",
        "value": 0
      },
      {
        "code": "dry",
        "value": false
      },
      {
        "code": "envhumid",
        "value": 61
      },
      {
        "code": "fault",
        "value": 0
      },
      {
        "code": "humidity",
        "value": 50
      },
      {
        "code": "lock",
        "value": false
      },
      {
        "code": "mode",
        "value": "0"
      },
      {
        "code": "pump",
        "value": false
      },
      {
        "code": "shake",
        "value": false
      },
      {
        "code": "windspeed",
        "value": "0"
      }
    ],
    "sub": false,
    "time_zone": "+01:00",
    "uid": "xxx",
    "update_time": 1701543047,
    "uuid": "40ae48ce6acc3814",
    "schema": [
      {
        "code": "Power",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "anion",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "countdown",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "20",
            "21",
            "22",
            "23",
            "24"
          ]
        }
      },
      {
        "code": "countdown_left",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "unit": "min",
          "min": 0,
          "max": 1440,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "dry",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "envhumid",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "unit": "%",
          "min": 25,
          "max": 95,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "fault",
        "mode": "ro",
        "type": "Bitmap",
        "property": {
          "label": [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5"
          ],
          "maxlen": 6
        }
      },
      {
        "code": "humidity",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "unit": "%",
          "min": 30,
          "max": 80,
          "scale": 0,
          "step": 5
        }
      },
      {
        "code": "lock",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "mode",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "1"
          ]
        }
      },
      {
        "code": "pump",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "shake",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "windspeed",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "1"
          ]
        }
      }
    ]
  }
]

homebridge log

[03/12/2023, 08:14:40] [Tuya] Got 1 device(s) and scene(s).
[03/12/2023, 08:14:40] [Tuya] Device list saved at C:\Users\Laurent\.homebridge\persist\TuyaDeviceList.eu1701253455520LY4Fy.json
[03/12/2023, 08:14:40] [Tuya] Restoring existing accessory from cache: Pro Breeze 30L Compressor Dehumidifier
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Product Category: cs
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Missing one of the required schema: [ 'switch' ]
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Product Category: cs
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Missing one of the required schema: [ 'humidity_indoor' ]
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[03/12/2023, 08:14:40] [Tuya] [Pro Breeze 30L Compressor Dehumidifier] Existing schema: [
  { code: 'Power', mode: 'rw', type: 'Boolean', property: {} },
  { code: 'anion', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'countdown',
    mode: 'rw',
    type: 'Enum',
    property: {
      range: [
        '0',  '1',          '2',
        '3',  '4',          '5',
        '6',  '7',          '8',
        '9',  '10',         '11',
        '12', '13',         '14',
        '15', '16',         '17',
        '18', '19',         '20',
        '21', '22',         '23',
        '24', [length]: 25
      ]
    }
  },
  {
    code: 'countdown_left',
    mode: 'ro',
    type: 'Integer',
    property: { unit: 'min', min: 0, max: 1440, scale: 0, step: 1 }
  },
  { code: 'dry', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'envhumid',
    mode: 'ro',
    type: 'Integer',
    property: { unit: '%', min: 25, max: 95, scale: 0, step: 1 }
  },
  {
    code: 'fault',
    mode: 'ro',
    type: 'Bitmap',
    property: { label: [ '0', '1', '2', '3', '4', '5', [length]: 6 ], maxlen: 6 }
  },
  {
    code: 'humidity',
    mode: 'rw',
    type: 'Integer',
    property: { unit: '%', min: 30, max: 80, scale: 0, step: 5 }
  },
  { code: 'lock', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'mode',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ '0', '1', [length]: 2 ] }
  },
  { code: 'pump', mode: 'rw', type: 'Boolean', property: {} },
  { code: 'shake', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'windspeed',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ '0', '1', [length]: 2 ] }
  },
  [length]: 13
]
[03/12/2023, 08:14:40] [Tuya] Unsupported device: Pro Breeze 30L Compressor Dehumidifier.