Unsupported device: Mini Multi-Mode Gateway.
**Device info (please complete the following information, which can be found in [log](https://github.com/tuya/tuya-homebridge/wiki/How-To-Get-Logs)):**
**request path = /v1.0/iot-01/associated-users/devices**

[6/12/2024, 1:18:28 PM] [Tuya] [TuyaOpenAPI] Login to: https://openapi.tuyaeu.com
[6/12/2024, 1:18:28 PM] [Tuya] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaeu.com
path = /v1.0/iot-01/associated-users/actions/authorized-login
query = null
headers = {
  "t": "1718191108637",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "3800c315-3838-4658-b032-6d8636bad05f",
  "Signature-Headers": "client_id",
  "sign": "068ECC978BE122C7B835BFE91AE80692835BBAB5FCD5C0A7FD9C29BEAC1B924F",
  "sign_method": "HMAC-SHA256",
  "access_token": "",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = {
  "country_code": 34,
  "username": "jordi@majo.cat",
  "password": "3e965ef0c2b3e76ef43fa3bd9217b18a",
  "schema": "smartlife"
}
Setup Payload:
X-HM://0024G4N6YDXK7
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 591-17-162 │     
    └────────────┘     
                       
[6/12/2024, 1:18:28 PM] Homebridge v1.8.2 (HAP v0.12.1) (Homebridge 7A19) is running on port 51461.
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/iot-01/associated-users/actions/authorized-login
data = {
  "result": {
    "access_token": "5982ee76ef60a6176632f1274ced7552",
    "expire_time": 7200,
    "platform_url": "https://openapi.tuyaeu.com",
    "refresh_token": "a24a6c2f622ca39c5fe7d8bb010687fc",
    "uid": "eu1717232611908u1MuL"
  },
  "success": true,
  "t": 1718191109187,
  "tid": "7ea38ba028ad11ef939256f60e0857fb"
}
[6/12/2024, 1:18:29 PM] [Tuya] Start MQTT connection.
[6/12/2024, 1:18:29 PM] [Tuya] Fetching home list.
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaeu.com
path = /v1.0/iot-03/open-hub/access-config
query = null
headers = {
  "t": "1718191109062",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "7869e047-a11c-4c12-9fad-ef728db3b8b9",
  "Signature-Headers": "client_id",
  "sign": "7AA58F4D5425D70934655BA766EE4E86F1662C1A78BEE9668BD28D9EAF3F50E8",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = {
  "uid": "eu1717232611908u1MuL",
  "link_id": "553e3692-cabf-4855-ba29-c58d323363df",
  "link_type": "mqtt",
  "topics": "device",
  "msg_encrypted_version": "1.0"
}
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.0/users/eu1717232611908u1MuL/homes
query = undefined
headers = {
  "t": "1718191109063",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "490c449d-8c08-4217-9473-a956cdef192b",
  "Signature-Headers": "client_id",
  "sign": "B78FE28CF37577C34A563193C0D7DB62B13F9BBF37900E1D790B1CFCC8EEB685",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/iot-03/open-hub/access-config
data = {
  "result": {
    "client_id": "cloud_new01ee75efb0a4b81ce777f3192400ca07",
    "expire_time": 7200,
    "password": "de05d86808034d666da1ddb4527f67ca",
    "sink_topic": {
      "device": "cloud/token/out/{device_id}"
    },
    "source_topic": {
      "device": "cloud/token/in/newf86d77b5dba3f8c4e48128ba82337b99"
    },
    "url": "ssl://m1.tuyaeu.com:8883",
    "username": "cloud_newf86d77b5dba3f8c4e48128ba82337b99"
  },
  "success": true,
  "t": 1718191109277,
  "tid": "7ebadf2d28ad11ef9e3b1acebe103cd3"
}
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/users/eu1717232611908u1MuL/homes
data = {
  "result": [
    {
      "geo_name": "",
      "home_id": 193687302,
      "lat": 0,
      "lon": 0,
      "name": "My Home ..",
      "role": "OWNER"
    }
  ],
  "success": true,
  "t": 1718191109375,
  "tid": "7ecb764028ad11efaed6f615e854d753"
}
[6/12/2024, 1:18:29 PM] [Tuya] Got home_id=193687302, name=My Home ..
[6/12/2024, 1:18:29 PM] [Tuya] Fetching device list.
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.0/homes/193687302/devices
query = undefined
headers = {
  "t": "1718191109247",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "880c6bc5-3cb5-4643-a545-c55916067377",
  "Signature-Headers": "client_id",
  "sign": "D8839743B9147D1180DC82D43A7EC35494CD6C2BCD285CF4A4DE77BEB92612CD",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/homes/193687302/devices
data = {
  "result": [
    {
      "active_time": 1717232633,
      "biz_type": 18,
      "category": "wg2",
      "create_time": 1717232633,
      "icon": "smart/icon/ay1562803410690AUgvL/347c1dd369fb7bfff86cfa738cbdff52.png",
      "id": "bfd97870e2feb5621ckym8",
      "ip": "185.41.97.49",
      "lat": "41.9159",
      "local_key": "dx&]uQ<FVwVuHemE",
      "lon": "2.3162",
      "model": "JMMGW-mini",
      "name": "Mini Multi-Mode Gateway",
      "online": false,
      "owner_id": "193687302",
      "product_id": "pj3gdjgpeqao7xk4",
      "product_name": "MINI 多模网关",
      "status": [
        {
          "code": "switch_alarm_sound",
          "value": false
        },
        {
          "code": "master_state",
          "value": "normal"
        },
        {
          "code": "factory_reset",
          "value": false
        },
        {
          "code": "alarm_active",
          "value": ""
        }
      ],
      "sub": true,
      "time_zone": "+02:00",
      "uid": "eu1717232611908u1MuL",
      "update_time": 1718140336,
      "uuid": "89e272db7e785a0b"
    },
    {
      "active_time": 1717275364,
      "biz_type": 18,
      "category": "ggq",
      "create_time": 1717275346,
      "icon": "smart/icon/ay1545813662186VvWHx/16148380366d4a58fe3fa.jpg",
      "id": "bf54968ac32ecdb72577pt",
      "ip": "",
      "lat": "41.92",
      "local_key": "",
      "lon": "2.32",
      "model": "QT-06Z-01",
      "name": "智能水阀",
      "online": false,
      "owner_id": "193687302",
      "product_id": "a7sghmms",
      "product_name": "智能水阀",
      "status": [
        {
          "code": "switch",
          "value": false
        },
        {
          "code": "start",
          "value": false
        },
        {
          "code": "smart_weather",
          "value": "sunny"
        }
      ],
      "sub": true,
      "time_zone": "+02:00",
      "uid": "eu1717232611908u1MuL",
      "update_time": 1718140337,
      "uuid": "a4c138ef48ebe96f"
    }
  ],
  "success": true,
  "t": 1718191109510,
  "tid": "7ed63b9828ad11efbbe4a688ba562ca9"
}
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.0/devices/bfd97870e2feb5621ckym8/specifications
query = undefined
headers = {
  "t": "1718191109383",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "4fa15b48-0046-4760-a00d-e634ce8b4498",
  "Signature-Headers": "client_id",
  "sign": "2A5169C6AF7DBE4988A317E9CC830505B67712A4FBC03938A7C97B01EA1632A1",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/devices/bfd97870e2feb5621ckym8/specifications
data = {
  "result": {
    "category": "wg2",
    "functions": [
      {
        "code": "switch_alarm_sound",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "master_state",
        "type": "Enum",
        "values": "{\"range\":[\"normal\",\"alarm\"]}"
      },
      {
        "code": "factory_reset",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "alarm_active",
        "type": "String",
        "values": "{\"maxlen\":255}"
      }
    ],
    "status": [
      {
        "code": "switch_alarm_sound",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "master_state",
        "type": "Enum",
        "values": "{\"range\":[\"normal\",\"alarm\"]}"
      },
      {
        "code": "factory_reset",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "alarm_active",
        "type": "String",
        "values": "{\"maxlen\":255}"
      }
    ]
  },
  "success": true,
  "t": 1718191109609,
  "tid": "7eeafa5628ad11efbbe4a688ba562ca9"
}
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.0/devices/bf54968ac32ecdb72577pt/specifications
query = undefined
headers = {
  "t": "1718191109482",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "ef03e2bd-b74a-426a-a624-c35fd9b18c9b",
  "Signature-Headers": "client_id",
  "sign": "099E3A3DE2CF6D092A77E87FF87B5373F9B58145065BFD7876506E98D088C33A",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/devices/bf54968ac32ecdb72577pt/specifications
data = {
  "result": {
    "category": "ggq",
    "functions": [
      {
        "code": "switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "start",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "smart_weather",
        "type": "Enum",
        "values": "{\"range\":[\"sunny\",\"cloudy\",\"rainy\",\"snowy\"]}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "start",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "smart_weather",
        "type": "Enum",
        "values": "{\"range\":[\"sunny\",\"cloudy\",\"rainy\",\"snowy\"]}"
      }
    ]
  },
  "success": true,
  "t": 1718191109694,
  "tid": "7efa60c228ad11ef939256f60e0857fb"
}
[6/12/2024, 1:18:29 PM] [Tuya] Fetching scene list.
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.1/homes/193687302/scenes
query = undefined
headers = {
  "t": "1718191109568",
  "client_id": "gjap3nvs4vpyggjm8eya",
  "nonce": "d37341b7-ad5a-4d33-bda3-07bbd0577fcf",
  "Signature-Headers": "client_id",
  "sign": "009DB36601E0B133B9DB378C7FEA25BE53A75F1554A6CB912F1531DC6145EA5F",
  "sign_method": "HMAC-SHA256",
  "access_token": "5982ee76ef60a6176632f1274ced7552",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[6/12/2024, 1:18:29 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.1/homes/193687302/scenes
data = {
  "result": [],
  "success": true,
  "t": 1718191109766,
  "tid": "7f07738e28ad11ef9e3b1acebe103cd3"
}
[6/12/2024, 1:18:29 PM] [Tuya] Got 2 device(s) and scene(s).
[6/12/2024, 1:18:29 PM] [Tuya] Device list saved at C:\Users\jordi\.homebridge\persist\TuyaDeviceList.eu1717232611908u1MuL.json
[6/12/2024, 1:18:29 PM] [Tuya] Restoring existing accessory from cache: Mini Multi-Mode Gateway
[6/12/2024, 1:18:29 PM] [Tuya] Unsupported device: Mini Multi-Mode Gateway.
[6/12/2024, 1:18:29 PM] [Tuya] Restoring existing accessory from cache: 智能水阀