powersync-plugins/tuya/integrationplugintuya.json

205 lines
8.8 KiB
JSON

{
"name": "tuya",
"displayName": "Tuya",
"id": "405643b3-22ec-4a36-9808-e8b1405b01c9",
"vendors": [
{
"name": "tuya",
"displayName": "Tuya",
"id": "d5dd33a7-e5f6-48be-bdd9-1a1ec04152c9",
"thingClasses": [
{
"id": "dd6dcd91-f667-45a5-9594-12b95f94337e",
"name": "tuyaCloud",
"displayName": "Tuya cloud login",
"createMethods": ["user"],
"setupMethod": "userandpassword",
"interfaces": [ "account" ],
"stateTypes": [
{
"id": "c844a23a-301b-4e6c-ba18-2926a38e6bf5",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
},
{
"id": "33e9d30c-c988-4cd4-8d39-ce84bcfa79c5",
"name": "loggedIn",
"displayName": "Logged in",
"displayNameEvent": "Logged in changed",
"type": "bool",
"defaultValue": false
},
{
"id": "15bc38a7-0962-4f3b-a0b1-4f164958493b",
"name": "userDisplayName",
"displayName": "Username",
"displayNameEvent": "User changed",
"type": "QString",
"defaultValue": ""
}
]
},
{
"id": "393d7256-e792-4dca-adb5-b13750e05391",
"name": "tuyaSwitch",
"displayName": "Tuya switch",
"createMethods": ["auto"],
"interfaces": ["powersocket", "connectable"],
"paramTypes": [
{
"id": "bfdb02b0-d12d-4385-a03d-d2c147c2aca2",
"name": "id",
"displayName": "ID",
"type": "QString",
"defaultValue": ""
}
],
"stateTypes": [
{
"id": "b5ac83c4-e1ff-4682-80f2-61cca097ed8f",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
},
{
"id": "c84a703a-d1c7-491d-9507-5a69b217ac53",
"name": "power",
"displayName": "Power",
"displayNameEvent": "Power changed",
"displayNameAction": "Set power",
"type": "bool",
"defaultValue": false,
"writable": true,
"ioType": "digitalOutput"
}
]
},
{
"id": "d4bb0170-596d-4904-8fd0-fd8e7ad39f72",
"name": "tuyaClosable",
"displayName": "Tuya blinds",
"createMethods": ["auto"],
"interfaces": ["blind", "connectable"],
"paramTypes": [
{
"id": "b9b2bb1f-b44b-43d7-8bbb-e67cf1b5d0a0",
"name": "id",
"displayName": "ID",
"type": "QString",
"defaultValue": ""
}
],
"stateTypes": [
{
"id": "cf051676-3041-4e90-8c37-63e98412dfe8",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
}
],
"actionTypes": [
{
"id": "f9f34515-670d-439e-851a-0bf82f867882",
"name": "open",
"displayName": "Open blinds"
},
{
"id": "f266ea4a-052f-466b-bf31-8c5c7e80a843",
"name": "close",
"displayName": "Close blinds"
},
{
"id": "8fc2ea7d-b945-41c8-bbda-820bdadc9e02",
"name": "stop",
"displayName": "Stop"
}
]
},
{
"id": "6aaa67b5-b1ef-41e8-af72-0915e529b3c9",
"name": "tuyaLight",
"displayName": "Tuya color light",
"createMethods": ["auto"],
"interfaces": ["colorlight", "connectable"],
"paramTypes": [
{
"id": "7fda1e07-6e80-465a-8322-872d8ab42583",
"name": "id",
"displayName": "ID",
"type": "QString",
"defaultValue": ""
}
],
"stateTypes": [
{
"id": "6735b5eb-091b-4cad-aaa4-33ff76690e68",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
},
{
"id": "5b2f7c3e-6701-447f-9158-53abb5e81395",
"name": "power",
"displayName": "Power",
"displayNameEvent": "Power changed",
"displayNameAction": "Set power",
"type": "bool",
"defaultValue": false,
"writable": true,
"ioType": "digitalOutput"
},
{
"id": "e2eba44d-73f9-43bc-97a3-ac4ff347b02c",
"name": "brightness",
"displayName": "Brightness",
"displayNameEvent": "Brightness changed",
"displayNameAction": "Set brightness",
"type": "int",
"minValue": 0,
"maxValue": 100,
"unit": "Percentage",
"defaultValue": "0",
"writable": true
},
{
"id": "7ccf9dc3-6b3f-4793-b0d5-3c97afb34cf0",
"name": "color",
"displayName": "Color",
"displayNameEvent": "Color changed",
"displayNameAction": "Set color",
"type": "QColor",
"defaultValue": "white",
"writable": true
},
{
"id": "8a07b6ca-3cb1-43f1-9b49-405349c2f146",
"name": "colorTemperature",
"displayName": "Color temperature",
"displayNameEvent": "Color temperature changed",
"displayNameAction": "Set color temperature",
"type": "int",
"minValue": 0,
"maxValue": 100,
"defaultValue": "50",
"writable": true
}
]
}
]
}
]
}