changed main interface type to button

This commit is contained in:
nymea 2019-08-08 14:59:59 +02:00
parent 13e6629e8f
commit c807790086
2 changed files with 6 additions and 5 deletions

View File

@ -34,6 +34,7 @@ void DevicePluginSenic::init()
{ {
// Initialize plugin configurations // Initialize plugin configurations
m_autoSymbolMode = configValue(senicPluginAutoSymbolsParamTypeId).toBool(); m_autoSymbolMode = configValue(senicPluginAutoSymbolsParamTypeId).toBool();
connect(this, &DevicePluginSenic::configValueChanged, this, &DevicePluginSenic::onPluginConfigurationChanged);
} }
Device::DeviceError DevicePluginSenic::discoverDevices(const DeviceClassId &deviceClassId, const ParamList &params) Device::DeviceError DevicePluginSenic::discoverDevices(const DeviceClassId &deviceClassId, const ParamList &params)

View File

@ -22,12 +22,12 @@
"name": "nuimo", "name": "nuimo",
"displayName": "Nuimo", "displayName": "Nuimo",
"createMethods": ["discovery"], "createMethods": ["discovery"],
"interfaces": ["batterylevel", "simplemultibutton", "connectable"], "interfaces": ["simplemultibutton", "connectable", "batterylevel"],
"paramTypes": [ "paramTypes": [
{ {
"id": "71553f6a-2ed4-4896-bb7b-52e7dca948b2", "id": "71553f6a-2ed4-4896-bb7b-52e7dca948b2",
"name": "mac", "name": "mac",
"displayName": "mac address", "displayName": "Mac address",
"type": "QString", "type": "QString",
"inputType": "MacAddress" "inputType": "MacAddress"
} }
@ -87,8 +87,8 @@
{ {
"id": "69a5f495-5452-434b-8fb8-b73d992c5446", "id": "69a5f495-5452-434b-8fb8-b73d992c5446",
"name": "rotation", "name": "rotation",
"displayName": "rotation", "displayName": "Rotation",
"displayNameEvent": "rotation changed", "displayNameEvent": "Rotation changed",
"type": "int", "type": "int",
"minValue": 0, "minValue": 0,
"maxValue": 100, "maxValue": 100,
@ -105,7 +105,7 @@
{ {
"id": "a8f72c37-9cb5-4885-a7e4-b2b396f8e4cd", "id": "a8f72c37-9cb5-4885-a7e4-b2b396f8e4cd",
"name": "logo", "name": "logo",
"displayName": "logo", "displayName": "Logo",
"type": "QString", "type": "QString",
"defaultValue": "Heart", "defaultValue": "Heart",
"allowedValues": [ "allowedValues": [