Make use of generic IO support in smart plugs

This commit is contained in:
Michael Zanetti 2020-06-12 12:04:14 +02:00
parent 60f755692e
commit 345c73557b
6 changed files with 12 additions and 15 deletions

View File

@ -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;

View File

@ -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",

View File

@ -554,7 +554,8 @@
"displayNameAction": "Set power",
"type": "bool",
"defaultValue": false,
"writable": true
"writable": true,
"ioType": "digitalOutput"
}
]
},

View File

@ -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",

View File

@ -76,7 +76,8 @@
"displayNameAction": "Set power",
"type": "bool",
"defaultValue": false,
"writable": true
"writable": true,
"ioType": "digitalOutput"
}
]
},

View File

@ -45,7 +45,8 @@
"displayNameAction": "Set power",
"type": "bool",
"defaultValue": false,
"writable": true
"writable": true,
"ioType": "digitalOutput"
},
{
"id": "ec2f5b49-585c-4455-a233-b7aa4c608dbc",