powersync-plugins/tplink/deviceplugintplink.json

70 lines
2.9 KiB
JSON

{
"name": "tplink",
"displayName": "tp-link",
"id": "024ff2e3-30df-44a1-9c8d-63cc416f1fb8",
"vendors": [
{
"name": "tplink",
"displayName": "tp-link",
"id": "8603b6cf-52ec-4481-aca2-f29ebd6cd8a8",
"deviceClasses": [
{
"id": "32830124-9efb-4614-8227-ee269b1889b0",
"name": "kasaPlug",
"displayName": "Kasa Smart Wi-Fi Plug",
"createMethods": ["discovery"],
"interfaces": [ "powersocket", "extendedsmartmeterconsumer", "connectable" ],
"paramTypes": [
{
"id": "de3238f7-fe94-440d-b212-61cd4e221b50",
"name": "id",
"displayName": "ID",
"type": "QString",
"defaultValue": ""
}
],
"stateTypes": [
{
"id": "b66825ec-9f1b-48da-af18-f36913291c0e",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
},
{
"id": "f1a5fda4-87a6-46f6-9499-16811a5f4f4d",
"name": "power",
"displayName": "Power",
"displayNameEvent": "Turned on or off",
"displayNameAction": "Turn on or off",
"type": "bool",
"defaultValue": false,
"writable": true
},
{
"id": "a3533121-69ee-44fd-8394-13373e8f960e",
"name": "totalEnergyConsumed",
"displayName": "Total energy consumed",
"displayNameEvent": "Total energy consumed changed",
"type": "double",
"unit": "KiloWattHour",
"defaultValue": 0
},
{
"id": "ccb52b57-5800-4f03-b7fa-f36dcebe1d4e",
"name": "currentPower",
"displayName": "Current power consumption",
"displayNameEvent": "Current power consumption changed",
"type": "double",
"unit": "Watt",
"defaultValue": 0
}
]
}
]
}
]
}