iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
392 stars 164 forks source link

New Device: HEMA A60 RGBCW #366

Open jvacek opened 2 years ago

jvacek commented 2 years ago

Describe your device A clear and concise description of what your device is, such as accessory type, and product description. It's an RGBCW Bulb.

Example: Generic Brand Lightbulb with Hex Color support, and 255 brightness. I suspect this is a 0-1000 HSB light, as is confirmed by the config below

Partial Support? Does this device work in any fashion in the plugin? None, full on Command 8 :( This config seems to fix it though! https://github.com/iRayanKhan/homebridge-tuya/issues/255#issuecomment-825864470

Device Schema Please print your devices schema below: This works! https://github.com/iRayanKhan/homebridge-tuya/issues/255#issuecomment-825864470

Additional context Add any other context about the problem here.

jvacek commented 2 years ago

Here's a device status from the IOT platform, maybe it helps?

{
  "result": {
    "active_time": 1651331743,
    "biz_type": 0,
    "category": "dj",
    "create_time": 1651331743,
    "icon": "smart/icon/bay1590412740818TRqE/d7235afbe6afe798d7f2bf95bb561d37.png",
    "id": "REDACTED",
    "ip": "REDACTED",
    "lat": "50.8230",
    "local_key": "REDACTED",
    "lon": "4.3783",
    "model": "",
    "name": "Bedroom Ceiling",
    "online": true,
    "owner_id": "My_ID_I_guess",
    "product_id": "cvs4bvoxpws37j2r",
    "product_name": "HEMA A60 RGBCW",
    "status": [
      {
        "code": "switch_led",
        "value": true
      },
      {
        "code": "work_mode",
        "value": "white"
      },
      {
        "code": "bright_value_v2",
        "value": 1000
      },
      {
        "code": "temp_value_v2",
        "value": 0
      },
      {
        "code": "colour_data_v2",
        "value": "{\"h\":222,\"s\":200,\"v\":1000}"
      },
      {
        "code": "scene_data_v2",
        "value": "{\"scene_num\":8,\"scene_units\":[{\"bright\":0,\"h\":0,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000},{\"bright\":0,\"h\":120,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000},{\"bright\":0,\"h\":240,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000},{\"bright\":0,\"h\":61,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000},{\"bright\":0,\"h\":174,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000},{\"bright\":0,\"h\":275,\"s\":1000,\"temperature\":0,\"unit_change_mode\":\"gradient\",\"unit_gradient_duration\":100,\"unit_switch_duration\":100,\"v\":1000}]}"
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "control_data",
        "value": ""
      }
    ],
    "sub": false,
    "time_zone": "+02:00",
    "uid": "euREDACTEDi4Kpv",
    "update_time": 1651343633,
    "uuid": "REDACTED"
  },
  "success": true,
  "t": 1651344079355,
  "tid": "1ffaa091c8b511ecb1897e9cb5e43094"
}