From c807790086913b6e9247f9a058c81ffcd4ca5fa1 Mon Sep 17 00:00:00 2001 From: nymea Date: Thu, 8 Aug 2019 14:59:59 +0200 Subject: [PATCH] changed main interface type to button --- senic/devicepluginsenic.cpp | 1 + senic/devicepluginsenic.json | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/senic/devicepluginsenic.cpp b/senic/devicepluginsenic.cpp index 6065d033..2cd3af7c 100644 --- a/senic/devicepluginsenic.cpp +++ b/senic/devicepluginsenic.cpp @@ -34,6 +34,7 @@ void DevicePluginSenic::init() { // Initialize plugin configurations m_autoSymbolMode = configValue(senicPluginAutoSymbolsParamTypeId).toBool(); + connect(this, &DevicePluginSenic::configValueChanged, this, &DevicePluginSenic::onPluginConfigurationChanged); } Device::DeviceError DevicePluginSenic::discoverDevices(const DeviceClassId &deviceClassId, const ParamList ¶ms) diff --git a/senic/devicepluginsenic.json b/senic/devicepluginsenic.json index ec735948..f70fc8fa 100644 --- a/senic/devicepluginsenic.json +++ b/senic/devicepluginsenic.json @@ -22,12 +22,12 @@ "name": "nuimo", "displayName": "Nuimo", "createMethods": ["discovery"], - "interfaces": ["batterylevel", "simplemultibutton", "connectable"], + "interfaces": ["simplemultibutton", "connectable", "batterylevel"], "paramTypes": [ { "id": "71553f6a-2ed4-4896-bb7b-52e7dca948b2", "name": "mac", - "displayName": "mac address", + "displayName": "Mac address", "type": "QString", "inputType": "MacAddress" } @@ -87,8 +87,8 @@ { "id": "69a5f495-5452-434b-8fb8-b73d992c5446", "name": "rotation", - "displayName": "rotation", - "displayNameEvent": "rotation changed", + "displayName": "Rotation", + "displayNameEvent": "Rotation changed", "type": "int", "minValue": 0, "maxValue": 100, @@ -105,7 +105,7 @@ { "id": "a8f72c37-9cb5-4885-a7e4-b2b396f8e4cd", "name": "logo", - "displayName": "logo", + "displayName": "Logo", "type": "QString", "defaultValue": "Heart", "allowedValues": [