Make use of generic IO support in smart plugs
This commit is contained in:
parent
60f755692e
commit
345c73557b
@ -71,7 +71,6 @@ IntegrationPluginShelly::IntegrationPluginShelly()
|
|||||||
|
|
||||||
m_connectedDeviceParamTypeMap[shelly1ThingClassId] = shelly1ThingConnectedDeviceParamTypeId;
|
m_connectedDeviceParamTypeMap[shelly1ThingClassId] = shelly1ThingConnectedDeviceParamTypeId;
|
||||||
m_connectedDeviceParamTypeMap[shelly1pmThingClassId] = shelly1pmThingConnectedDeviceParamTypeId;
|
m_connectedDeviceParamTypeMap[shelly1pmThingClassId] = shelly1pmThingConnectedDeviceParamTypeId;
|
||||||
m_connectedDeviceParamTypeMap[shellyPlugThingClassId] = shellyPlugThingConnectedDeviceParamTypeId;
|
|
||||||
m_connectedDeviceParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice1ParamTypeId;
|
m_connectedDeviceParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice1ParamTypeId;
|
||||||
|
|
||||||
m_connectedDevice2ParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice2ParamTypeId;
|
m_connectedDevice2ParamTypeMap[shelly25ThingClassId] = shelly25ThingConnectedDevice2ParamTypeId;
|
||||||
|
|||||||
@ -192,14 +192,6 @@
|
|||||||
"type": "QString",
|
"type": "QString",
|
||||||
"readOnly": true
|
"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",
|
"id": "42797a00-1591-4021-8f4c-2a170189911b",
|
||||||
"name": "username",
|
"name": "username",
|
||||||
@ -241,7 +233,8 @@
|
|||||||
"displayNameAction": "Turn on or off",
|
"displayNameAction": "Turn on or off",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "962fec29-6be0-452e-87c5-5ff71435c40f",
|
"id": "962fec29-6be0-452e-87c5-5ff71435c40f",
|
||||||
|
|||||||
@ -554,7 +554,8 @@
|
|||||||
"displayNameAction": "Set power",
|
"displayNameAction": "Set power",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -41,7 +41,8 @@
|
|||||||
"displayNameAction": "Turn on or off",
|
"displayNameAction": "Turn on or off",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -78,7 +79,8 @@
|
|||||||
"displayNameAction": "Turn on or off",
|
"displayNameAction": "Turn on or off",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "a3533121-69ee-44fd-8394-13373e8f960e",
|
"id": "a3533121-69ee-44fd-8394-13373e8f960e",
|
||||||
|
|||||||
@ -76,7 +76,8 @@
|
|||||||
"displayNameAction": "Set power",
|
"displayNameAction": "Set power",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -45,7 +45,8 @@
|
|||||||
"displayNameAction": "Set power",
|
"displayNameAction": "Set power",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"defaultValue": false,
|
"defaultValue": false,
|
||||||
"writable": true
|
"writable": true,
|
||||||
|
"ioType": "digitalOutput"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ec2f5b49-585c-4455-a233-b7aa4c608dbc",
|
"id": "ec2f5b49-585c-4455-a233-b7aa4c608dbc",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user