0x5e / homebridge-tuya-platform

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

None of my 23 devices show up in HomeKit, although they show up in HomeBridge #415

Open iRonin opened 10 months ago

iRonin commented 10 months ago

Prerequisite

Cache

Version

v1.7.0-beta.52

Device Infomation JSON File

[
  {
    "active_time": 1700517500,
    "biz_type": 0,
    "category": "dj",
    "create_time": 1700517500,
    "icon": "smart/icon/bay1608172388599EDFi/40f6f5d5ae3cf5c6897b58420037c9df.jpg",
    "id": "REMOVED",
    "ip": "REMOVED",
    "lat": "REM",
    "local_key": "REMOVED",
    "lon": "REM",
    "model": " G9-02",
    "name": "Living Room Back Wall Light 3",
    "online": true,
    "owner_id": "REMOVED",
    "product_id": "d1hishap4brolc03",
    "product_name": " G9-01-02",
    "status": [
      {
        "code": "bright_value_v2",
        "value": 413
      },
      {
        "code": "control_data",
        "value": ""
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "cycle_timing",
        "value": "AAAA"
      },
      {
        "code": "do_not_disturb",
        "value": true
      },
      {
        "code": "power_memory",
        "value": "AAEAAAAAAAAD6APo"
      },
      {
        "code": "random_timing",
        "value": "AAAA"
      },
      {
        "code": "remote_switch",
        "value": true
      },
      {
        "code": "rhythm_mode",
        "value": "AAAAAAA="
      },
      {
        "code": "scene_data_v2",
        "value": "{\"scene_num\":4,\"scene_units\":[{\"bright\":500,\"h\":0,\"s\":0,\"temperature\":500,\"unit_change_mode\":\"static\",\"unit_gradient_duration\":40,\"unit_switch_duration\":40,\"v\":0}]}"
      },
      {
        "code": "sleep_mode",
        "value": "AAA="
      },
      {
        "code": "switch_led",
        "value": false
      },
      {
        "code": "temp_value_v2",
        "value": 0
      },
      {
        "code": "wakeup_mode",
        "value": "AAA="
      },
      {
        "code": "work_mode",
        "value": "white"
      }
    ],
    "sub": false,
    "time_zone": "-04:00",
    "uid": "REM",
    "update_time": 1701772151,
    "uuid": "REM",
    "schema": [
      {
        "code": "bright_value_v2",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "min": 10,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "control_data",
        "mode": "rw",
        "type": "Json",
        "property": {
          "change_mode": {
            "range": [
              "direct",
              "gradient"
            ]
          },
          "bright": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 1000,
            "step": 1
          },
          "temperature": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 1000,
            "step": 1
          },
          "h": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 360,
            "step": 1
          },
          "s": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 255,
            "step": 1
          },
          "v": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 255,
            "step": 1
          }
        }
      },
      {
        "code": "countdown_1",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "unit": "s",
          "min": 0,
          "max": 86400,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "cycle_timing",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "do_not_disturb",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "power_memory",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "random_timing",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "remote_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "rhythm_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "scene_data_v2",
        "mode": "rw",
        "type": "Json",
        "property": {
          "scene_num": {
            "min": 1,
            "scale": 0,
            "max": 8,
            "step": 1
          },
          "scene_units": {
            "unit_change_mode": {
              "range": [
                "static",
                "jump",
                "gradient"
              ]
            },
            "unit_switch_duration": {
              "min": 0,
              "scale": 0,
              "max": 100,
              "step": 1
            },
            "unit_gradient_duration": {
              "min": 0,
              "scale": 0,
              "max": 100,
              "step": 1
            },
            "bright": {
              "min": 0,
              "scale": 0,
              "max": 1000,
              "step": 1
            },
            "temperature": {
              "min": 0,
              "scale": 0,
              "max": 1000,
              "step": 1
            },
            "h": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 360,
              "step": 1
            },
            "s": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 1000,
              "step": 1
            },
            "v": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 1000,
              "step": 1
            }
          }
        }
      },
      {
        "code": "sleep_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "switch_led",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "temp_value_v2",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "min": 0,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "wakeup_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "work_mode",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "white",
            "colour",
            "scene",
            "music"
          ]
        }
      }
    ]
  },
  {
    "active_time": 1700956354,
    "biz_type": 0,
    "category": "dj",
    "create_time": 1700956354,
    "icon": "smart/icon/bay1608172388599EDFi/40f6f5d5ae3cf5c6897b58420037c9df.jpg",
    "id": "REMOVED",
    "ip": "REMOVED",
    "lat": "REM",
    "local_key": "REMOVED",
    "lon": "REM",
    "model": " G9-02",
    "name": "Living Room TV Wall Light 6",
    "online": true,
    "owner_id": "REMOVED",
    "product_id": "d1hishap4brolc03",
    "product_name": " G9-01-02",
    "status": [
      {
        "code": "bright_value_v2",
        "value": 1000
      },
      {
        "code": "control_data",
        "value": ""
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "cycle_timing",
        "value": "AAAA"
      },
      {
        "code": "do_not_disturb",
        "value": false
      },
      {
        "code": "power_memory",
        "value": "AAEAAAAAAAAAGQAA"
      },
      {
        "code": "random_timing",
        "value": "AAAA"
      },
      {
        "code": "remote_switch",
        "value": true
      },
      {
        "code": "rhythm_mode",
        "value": "AAAAAAA="
      },
      {
        "code": "scene_data_v2",
        "value": "{\"scene_num\":1,\"scene_units\":[{\"bright\":200,\"h\":0,\"s\":0,\"temperature\":0,\"unit_change_mode\":\"static\",\"unit_gradient_duration\":13,\"unit_switch_duration\":14,\"v\":0}]}"
      },
      {
        "code": "sleep_mode",
        "value": "AAA="
      },
      {
        "code": "switch_led",
        "value": false
      },
      {
        "code": "temp_value_v2",
        "value": 0
      },
      {
        "code": "wakeup_mode",
        "value": "AAA="
      },
      {
        "code": "work_mode",
        "value": "white"
      }
    ],
    "sub": false,
    "time_zone": "-04:00",
    "uid": "REM",
    "update_time": 1701772145,
    "uuid": "REM",
    "schema": [
      {
        "code": "bright_value_v2",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "min": 10,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "control_data",
        "mode": "rw",
        "type": "Json",
        "property": {
          "change_mode": {
            "range": [
              "direct",
              "gradient"
            ]
          },
          "bright": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 1000,
            "step": 1
          },
          "temperature": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 1000,
            "step": 1
          },
          "h": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 360,
            "step": 1
          },
          "s": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 255,
            "step": 1
          },
          "v": {
            "min": 0,
            "scale": 0,
            "unit": "",
            "max": 255,
            "step": 1
          }
        }
      },
      {
        "code": "countdown_1",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "unit": "s",
          "min": 0,
          "max": 86400,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "cycle_timing",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "do_not_disturb",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "power_memory",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "random_timing",
        "mode": "rw",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "remote_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "rhythm_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "scene_data_v2",
        "mode": "rw",
        "type": "Json",
        "property": {
          "scene_num": {
            "min": 1,
            "scale": 0,
            "max": 8,
            "step": 1
          },
          "scene_units": {
            "unit_change_mode": {
              "range": [
                "static",
                "jump",
                "gradient"
              ]
            },
            "unit_switch_duration": {
              "min": 0,
              "scale": 0,
              "max": 100,
              "step": 1
            },
            "unit_gradient_duration": {
              "min": 0,
              "scale": 0,
              "max": 100,
              "step": 1
            },
            "bright": {
              "min": 0,
              "scale": 0,
              "max": 1000,
              "step": 1
            },
            "temperature": {
              "min": 0,
              "scale": 0,
              "max": 1000,
              "step": 1
            },
            "h": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 360,
              "step": 1
            },
            "s": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 1000,
              "step": 1
            },
            "v": {
              "min": 0,
              "scale": 0,
              "unit": "",
              "max": 1000,
              "step": 1
            }
          }
        }
      },
      {
        "code": "sleep_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "switch_led",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "temp_value_v2",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "min": 0,
          "max": 1000,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "wakeup_mode",
        "mode": "rw",
        "type": "Raw",
        "property": {
          "maxlen": "255"
        }
      },
      {
        "code": "work_mode",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "white",
            "colour",
            "scene",
            "music"
          ]
        }
      }
    ]
  },

The logs are too long to paste, can send them in some other way.


### Device Control Mode

None

### Logs

```shell
[05/12/2023, 9:55:48 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/ebfcca94d14c1f5805gayx/specifications
query = undefined
headers = {
  "t": "1701784548224",
  "client_id": "",
  "nonce": "4839050e-fdcb-459a-9f58-2bba2373fe6c",
  "Signature-Headers": "client_id",
  "sign": "",
  "sign_method": "HMAC-SHA256",
  "access_token": "",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:48 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/ebfcca94d14c1f5805gayx/specifications
data = {
  "result": {
    "category": "dj",
    "functions": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1701784548728,
  "tid": "fe9b85fb937511ee9014b60280d6c73f"
}
[05/12/2023, 9:55:48 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/eb8c370e4fe48ec953ned9/specifications
query = undefined
headers = {
  "t": "1701784548797",
  "client_id": "REMOVED",
  "nonce": "a2f018da-c850-480a-9dfe-0f41d8170994",
  "Signature-Headers": "client_id",
  "sign": "71003BDEB5048B278FD005C8E0DA39BEF05BC8F910B02A692DDE7A94F8A06B9B",
  "sign_method": "HMAC-SHA256",
  "access_token": "REMOVED",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:49 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/eb8c370e4fe48ec953ned9/specifications
data = {
  "result": {
    "category": "dj",
    "functions": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1701784549319,
  "tid": "fef5e14b937511ee9014b60280d6c73f"
}
[05/12/2023, 9:55:49 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/eb2da8d6a87f7099e6gfio/specifications
query = undefined
headers = {
  "t": "1701784549388",
  "client_id": "REMOVED",
  "nonce": "f03b8309-b5b4-431d-89ca-bf74219d7975",
  "Signature-Headers": "client_id",
  "sign": "B9DB5DDF41FB6D9086AB284CD1D037F57BFC184814BFC7737CF51C1012E02CC6",
  "sign_method": "HMAC-SHA256",
  "access_token": "REMOVED",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:49 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/eb2da8d6a87f7099e6gfio/specifications
data = {
  "result": {
    "category": "dj",
    "functions": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1701784549912,
  "tid": "ff4f153b937511ee9393fabce3625838"
}
[05/12/2023, 9:55:49 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/eb46fa6c0baf5c05d9xlg0/specifications
query = undefined
headers = {
  "t": "1701784549986",
  "client_id": "REMOVED",
  "nonce": "2088f158-067d-40da-b28e-9c5a38b90844",
  "Signature-Headers": "client_id",
  "sign": "0C91A8168216C2BD74767EEDF648DF181ACD326090C17D2B969510F59038B75E",
  "sign_method": "HMAC-SHA256",
  "access_token": "REMOVED",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:50 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/eb46fa6c0baf5c05d9xlg0/specifications
data = {
  "result": {
    "category": "dj",
    "functions": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "control_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "rhythm_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "remote_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "cycle_timing",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch_led",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "scene_data_v2",
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "control_data",
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "rhythm_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "sleep_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "wakeup_mode",
        "type": "Raw",
        "values": "{\"maxlen\":\"255\"}"
      },
      {
        "code": "power_memory",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "do_not_disturb",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "remote_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "cycle_timing",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "random_timing",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1701784550516,
  "tid": "ffab69d3937511ee956f169549a2dd26"
}
[05/12/2023, 9:55:50 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/eb6447daa5215b1df7oote/specifications
query = undefined
headers = {
  "t": "1701784550593",
  "client_id": "REMOVED",
  "nonce": "27a6139f-7c90-47c3-9261-4587347fb588",
  "Signature-Headers": "client_id",
  "sign": "B7E4D2EA7FFDAA2352D486AC6549881393EC29F315725C0A195F5C76EA6F0D48",
  "sign_method": "HMAC-SHA256",
  "access_token": "REMOVED",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:51 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/eb6447daa5215b1df7oote/specifications
data = {
  "code": 2009,
  "msg": "not support this device",
  "success": false,
  "t": 1701784551133,
  "tid": "000a617c937611ee9014b60280d6c73f"
}
[05/12/2023, 9:55:51 am] [TuyaPlatform] Fetching scene list.
[05/12/2023, 9:55:51 am] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.1/homes/176010622/scenes
query = undefined
headers = {
  "t": "1701784551205",
  "client_id": "REMOVED",
  "nonce": "81d2838e-a788-41d5-aea5-fd301f322f8e",
  "Signature-Headers": "client_id",
  "sign": "FF8B0E7B1289B9844A40C700D88A98405CF221B716EC4331983EC39C4A82579F",
  "sign_method": "HMAC-SHA256",
  "access_token": "REMOVED",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = null
[05/12/2023, 9:55:51 am] [TuyaPlatform] [TuyaDeviceManager] Get device specification failed. devId = eb6447daa5215b1df7oote, code = 2009, msg = not support this device
[05/12/2023, 9:55:51 am] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.1/homes/176010622/scenes
data = {
  "result": [
    {
      "actions": [
        {
          "action_executor": "dpIssue",
          "entity_id": "ebb28c0b9fdc858c3az9bn",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb72bd6fa2ded5ad79orab",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb7ec636791230a755lqin",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb6ffed87a88fba86b9ifo",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb46fa6c0baf5c05d9xlg0",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb8aa4d64b63c745e9srcl",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "ebf2935ad349c8ad3dbya1",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb2da8d6a87f7099e6gfio",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb04aa5382f7c172bdoyu2",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb44996dbd841e3878rwlu",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb4b5da2969eaeb5cf7o0s",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb17be325197f9bc32bdbh",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb1fe703aa1b808d81podo",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "ebfcca94d14c1f5805gayx",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb8c370e4fe48ec953ned9",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "ebcd5b76e1ac423ac1abgd",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "ebad1c78ca60b107cex2fi",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb137e6467d5d6979e93l7",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "ebb13df1c0da0d9f98shef",
          "executor_property": {
            "switch_led": true
          }
        },
        {
          "action_executor": "dpIssue",
          "entity_id": "eb134514873586e6b8zozj",
          "executor_property": {
            "switch_led": true
          }
        }
      ],
      "enabled": true,
      "name": "Turn off all lights",
      "scene_id": "w7KOqe0pFnm1951H",
      "status": "1"
    },
    {
      "actions": [
        {
          "action_executor": "dpIssue",
          "entity_id": "ebad1c78ca60b107cex2fi",
          "executor_property": {
            "switch_led": false
          }
        }
      ],
      "background": "",
      "enabled": true,
      "name": "Living room lights off",
      "scene_id": "o4hRVgRsgGnJ4Wc6",
      "status": "1"
    }
  ],
  "success": true,
  "t": 1701784551859,
  "tid": "0076ace2937611ee956f169549a2dd26"
}
[05/12/2023, 9:55:51 am] [TuyaPlatform] Got scene_id=xxx, name=Turn off all lights
[05/12/2023, 9:55:51 am] [TuyaPlatform] Got scene_id=xxx, name=Living room lights off
[05/12/2023, 9:55:51 am] [TuyaPlatform] Got 24 device(s) and scene(s).
[05/12/2023, 9:55:51 am] [TuyaPlatform] Device list saved at /var/lib/homebridge/persist/TuyaDeviceList.az1700391487307GuhHL.json
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room Back Wall Light 3
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 3] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 3] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 3] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room TV Wall Light 6
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 6] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 6] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 6] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room TV Wall Light 2
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 2] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 2] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 2] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Bedroom Curtain
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Bedroom Curtain] Curtain amount: 1
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room Back Wall Light 2
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 2] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 2] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 2] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room TV Wall Light 1
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 1] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 1] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 1] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room TV Wall Light 5
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 5] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 5] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room TV Wall Light 5] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room Back Wall Light 1
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 1] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 1] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light 1] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room Back Wall Light  4
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light  4] Light type: CW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light  4] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Living Room Back Wall Light  4] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 19
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 19] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 19] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 19] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 14
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 14] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 14] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 14] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 10
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 10] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 10] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 10] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 15
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 15] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 15] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 15] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 20
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 20] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 20] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 20] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 17
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 17] Light type: RGBCW
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 17] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:51 am] [TuyaPlatform] [Step Light 17] Adaptive Lighting disabled.
[05/12/2023, 9:55:51 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 11
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 11] Light type: RGBCW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 11] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 11] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 18
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 18] Light type: RGBCW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 18] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 18] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 12
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 12] Light type: RGBCW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 12] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 12] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 13
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 13] Light type: RGBCW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 13] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 13] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Step Light 16
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 16] Light type: RGBCW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 16] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Step Light 16] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Living Room TV Wall Light 3
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Living Room TV Wall Light 3] Light type: CW
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Living Room TV Wall Light 3] Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }
[05/12/2023, 9:55:52 am] [TuyaPlatform] [Living Room TV Wall Light 3] Adaptive Lighting disabled.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Terrace CloudBay Gateway
[05/12/2023, 9:55:52 am] [TuyaPlatform] Unsupported device: Terrace CloudBay Gateway.
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Turn off all lights
[05/12/2023, 9:55:52 am] [TuyaPlatform] Restoring existing accessory from cache: Living room lights off

Other Infomations

I have 4 categories of devices:

HB seems to work - whenever I add a dummy switch it shows up instantly in HK.

One thing I noticed is that the plugin shows this for al the lights:

Set props for ColorTemperature: { minValue: 140, maxValue: 500, minStep: 1 }

and the Tuya logs show this:

{
        "code": "bright_value_v2",
        "type": "Integer",
        "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },

Not sure where - what other plugin or other place - I saw that this max value of 1000 for temp or brightness was not supported - maybe that's a clue.

iRonin commented 10 months ago

Looking at the logs during the runtime I can see all the lights have undefined string logged like this:

[05/12/2023, 11:47:56 am] [TuyaPlatform] [Living Room TV Wall Light 2] [AccessoryInformation/undefined/StatusActive] Update value: false => true
[05/12/2023, 11:47:56 am] [TuyaPlatform] [Living Room TV Wall Light 2] [Lightbulb/undefined/StatusActive] Update value: false => true
cbrunnkvist commented 4 months ago

Did you place the plugin(s) on a Child Bridge..? Each bridge becomes a separate Accessory which needs to be added to the Home on its own. Just a thought...