From 345c73557b4ca39658ba03f88869fc474127d4d2 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 12 Jun 2020 12:04:14 +0200 Subject: [PATCH] Make use of generic IO support in smart plugs --- shelly/integrationpluginshelly.cpp | 1 - shelly/integrationpluginshelly.json | 11 ++--------- simulation/integrationpluginsimulation.json | 3 ++- tplink/integrationplugintplink.json | 6 ++++-- tuya/integrationplugintuya.json | 3 ++- wemo/integrationpluginwemo.json | 3 ++- 6 files changed, 12 insertions(+), 15 deletions(-) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index 1a3f58a9..c3ec6a12 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -71,7 +71,6 @@ IntegrationPluginShelly::IntegrationPluginShelly() m_connectedDeviceParamTypeMap[shelly1ThingClassId] = shelly1ThingConnectedDeviceParamTypeId; m_connectedDeviceParamTypeMap[shelly1pmThingClassId] = shelly1pmThingConnectedDeviceParamTypeId; - m_connectedDeviceParamTypeMap[shellyPlugThingClassId] = shellyPlugThingConnectedDeviceParamTypeId; m_connectedDeviceParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice1ParamTypeId; m_connectedDevice2ParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice2ParamTypeId; diff --git a/shelly/integrationpluginshelly.json b/shelly/integrationpluginshelly.json index e0298565..b92ea6a2 100644 --- a/shelly/integrationpluginshelly.json +++ b/shelly/integrationpluginshelly.json @@ -192,14 +192,6 @@ "type": "QString", "readOnly": true }, - { - "id": "9686b1ca-e71f-4e62-beb0-6a20f21550e9", - "name": "connectedDevice", - "displayName": "Connected device", - "type": "QString", - "allowedValues": ["Generic", "Light"], - "defaultValue": "Generic" - }, { "id": "42797a00-1591-4021-8f4c-2a170189911b", "name": "username", @@ -241,7 +233,8 @@ "displayNameAction": "Turn on or off", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" }, { "id": "962fec29-6be0-452e-87c5-5ff71435c40f", diff --git a/simulation/integrationpluginsimulation.json b/simulation/integrationpluginsimulation.json index 6409cc91..fb14c513 100644 --- a/simulation/integrationpluginsimulation.json +++ b/simulation/integrationpluginsimulation.json @@ -554,7 +554,8 @@ "displayNameAction": "Set power", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" } ] }, diff --git a/tplink/integrationplugintplink.json b/tplink/integrationplugintplink.json index e5411361..4a8789ca 100644 --- a/tplink/integrationplugintplink.json +++ b/tplink/integrationplugintplink.json @@ -41,7 +41,8 @@ "displayNameAction": "Turn on or off", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" } ] }, @@ -78,7 +79,8 @@ "displayNameAction": "Turn on or off", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" }, { "id": "a3533121-69ee-44fd-8394-13373e8f960e", diff --git a/tuya/integrationplugintuya.json b/tuya/integrationplugintuya.json index de9995b8..cf0a1576 100644 --- a/tuya/integrationplugintuya.json +++ b/tuya/integrationplugintuya.json @@ -76,7 +76,8 @@ "displayNameAction": "Set power", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" } ] }, diff --git a/wemo/integrationpluginwemo.json b/wemo/integrationpluginwemo.json index 46f9cd1a..bbfd294b 100644 --- a/wemo/integrationpluginwemo.json +++ b/wemo/integrationpluginwemo.json @@ -45,7 +45,8 @@ "displayNameAction": "Set power", "type": "bool", "defaultValue": false, - "writable": true + "writable": true, + "ioType": "digitalOutput" }, { "id": "ec2f5b49-585c-4455-a233-b7aa4c608dbc",