Skip to content

Configuration

Add the plugin to the platforms array in your Homebridge config.json.

Minimal Example

json
{
  "platforms": [
    {
      "platform": "TuyaLocalPlatform",
      "devices": [
        {
          "name": "Hallway Light",
          "type": "SimpleLight",
          "id": "011233455677899abbcd",
          "key": "0123456789abcdef"
        }
      ]
    }
  ]
}

Device Parameters

ParameterRequiredDescription
nameYesFriendly name shown in HomeKit
typeYesDevice type identifier (see Supported Device Types)
idYesTuya Device ID
keyYesLocal Key for LAN communication
ipNoStatic IP address (only if auto-discovery fails)
manufacturerNoManufacturer name shown in HomeKit
modelNoModel name shown in HomeKit
versionNoTuya protocol version (3.1, 3.3, or 3.4)

TIP

The type value is case-insensitive. "SimpleLight", "simplelight", and "SIMPLELIGHT" all work.

Multiple Devices

Add multiple entries to the devices array:

json
{
  "platforms": [
    {
      "platform": "TuyaLocalPlatform",
      "devices": [
        {
          "name": "Living Room Light",
          "type": "RGBTWLight",
          "id": "aabbccdd11223344",
          "key": "1234567890abcdef"
        },
        {
          "name": "Bedroom Dehumidifier",
          "type": "Dehumidifier",
          "id": "eeff00112233aabb",
          "key": "fedcba0987654321"
        }
      ]
    }
  ]
}

Device-Specific Options

Some device types accept additional context parameters. See the Supported Device Types page for details.

Released under the MIT License.