0x5e / homebridge-tuya-platform

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

RGB Diffuser - Unsupported Device #468

Open PlasmaSoftUK opened 5 months ago

PlasmaSoftUK commented 5 months ago

Device Infomation JSON File

[{
    code: 'bright_value',
    mode: 'rw',
    type: 'Integer',
    property: { min: 0, scale: 0, unit: '', max: 255, step: 1 }
  },
  {
    code: 'colour_data_hsv',
    mode: 'rw',
    type: 'Json',
    property: {
      h: { min: 1, scale: 0, unit: '', max: 360, step: 1 },
      s: { min: 1, scale: 0, unit: '', max: 255, step: 1 },
      v: { min: 1, scale: 0, unit: '', max: 255, step: 1 }
    }
  },
  {
    code: 'mode',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ 'small', 'large', [length]: 2 ] }
  },
  {
    code: 'moodlighting',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ '1', '2', '3', [length]: 3 ] }
  },
  { code: 'switch_led', mode: 'rw', type: 'Boolean', property: {} },
  { code: 'switch_spray', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'work_mode',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ 'white', 'colour', 'colourful1', [length]: 3 ] }
  },
  [length]: 7
]

Detail Informations

Hi, would be great if you could add support for this device, it's an RGB Diffuser from Amazon. I'm a programmer so happy to provide any technical information about it that you may require. This is from the log:

[30/05/2024, 19:15:38] [Tuya] [Diffuser] Product Category: jsq
[30/05/2024, 19:15:38] [Tuya] [Diffuser] Missing one of the required schema: [ 'switch' ]
[30/05/2024, 19:15:38] [Tuya] [Diffuser] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[30/05/2024, 19:15:38] [Tuya] [Diffuser] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[30/05/2024, 19:15:38] [Tuya] [Diffuser] Existing schema: [ ** as above ** ]
[30/05/2024, 19:15:38] [Tuya] Unsupported device: Diffuser.

Also minor typo in the error message above, I suspect "DP Insctrution" is supposed to be "DP Instruction".

PlasmaSoftUK commented 5 months ago

Just seen your note on not adding support for additional devices, is there at least a guide to show us how to add our own? The FAQ suggests adding DP and what looks like some expected Json but not where to get it from?