From e13de6d6785873d9798c55cb471e477f0dbe3846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 16 May 2016 10:53:27 +0200 Subject: [PATCH] define all index fields in plugins --- .../intertechno/devicepluginintertechno.json | 3 +- .../leynew/devicepluginleynew.json | 22 +++++++ .../lgsmarttv/devicepluginlgsmarttv.json | 36 +++++++++++ .../lircd/devicepluginlircd.json | 4 ++ .../devicepluginmailnotification.json | 23 +++++++ .../deviceplugins/mock/devicepluginmock.json | 64 +++++++++++++++++++ .../netatmo/devicepluginnetatmo.json | 30 +++++++++ .../devicepluginopenweathermap.json | 19 ++++++ .../orderbutton/devicepluginorderbutton.json | 8 +++ .../osdomotics/devicepluginosdomotics.json | 7 ++ .../philipshue/devicepluginphilipshue.json | 61 ++++++++++++++++++ .../plantcare/devicepluginplantcare.json | 9 +++ .../devicepluginudpcommander.json | 3 + .../unitec/devicepluginunitec.json | 5 +- .../wakeonlan/devicepluginwakeonlan.json | 2 + .../deviceplugins/wemo/devicepluginwemo.json | 6 ++ .../devicepluginwifidetector.json | 2 + .../ws2812/devicepluginws2812.json | 12 ++++ 18 files changed, 314 insertions(+), 2 deletions(-) diff --git a/plugins/deviceplugins/intertechno/devicepluginintertechno.json b/plugins/deviceplugins/intertechno/devicepluginintertechno.json index c01e70f2..4be72bba 100644 --- a/plugins/deviceplugins/intertechno/devicepluginintertechno.json +++ b/plugins/deviceplugins/intertechno/devicepluginintertechno.json @@ -41,7 +41,8 @@ "paramTypes": [ { "name": "power", - "type": "bool" + "type": "bool", + "index": 0 } ] } diff --git a/plugins/deviceplugins/leynew/devicepluginleynew.json b/plugins/deviceplugins/leynew/devicepluginleynew.json index 5704e206..c942208f 100644 --- a/plugins/deviceplugins/leynew/devicepluginleynew.json +++ b/plugins/deviceplugins/leynew/devicepluginleynew.json @@ -13,6 +13,7 @@ "idName": "rfController", "name": "RF Controller (LN-CON-RF20B)", "deviceIcon": "LightBulb", + "primaryActionTypeId": "35495871-3b80-458b-b60d-5dc614c9fbf1", "basicTags": [ "Device", "Actuator", @@ -23,6 +24,7 @@ { "name": "id", "type": "QString", + "index": 0, "inputType": "TextLine", "allowedValues": ["0008", "0115", "0014"] } @@ -31,101 +33,121 @@ { "id": "18a30ff1-28d7-4cd0-8388-290db52cd48d", "idName": "brightnessUp", + "index": 0, "name": "brightness up" }, { "id": "d1d251b6-ffe6-4b0c-bf03-bfa8947caa1d", "idName": "brightnessDown", + "index": 1, "name": "brightness down" }, { "id": "b8b4ef78-126f-431b-b33f-742754da5af4", "idName": "playPause", + "index": 2, "name": "play / pause" }, { "id": "35495871-3b80-458b-b60d-5dc614c9fbf1", "idName": "power", + "index": 3, "name": "power" }, { "id": "737f77b6-fe2a-45ad-9945-8f0197e57741", "idName": "red", + "index": 4, "name": "red" }, { "id": "6471e804-fd54-41dd-88ed-ec46d6cc33db", "idName": "green", + "index": 5, "name": "green" }, { "id": "3abfe3c4-f9b3-4b22-aa3a-86ef99adedbe", "idName": "blue", + "index": 6, "name": "blue" }, { "id": "6a92d30d-7bce-4238-8e05-d25d3475699c", "idName": "white", + "index": 7, "name": "white" }, { "id": "10a145db-adea-4eff-921d-4ce1ceb940cd", "idName": "orange", + "index": 8, "name": "orange" }, { "id": "46bbfb97-1600-4e91-930d-6ef4be7bdd9c", "idName": "yellow", + "index": 9, "name": "yellow" }, { "id": "7e1db150-c68f-4c54-8259-61d050f31555", "idName": "cyan", + "index": 10, "name": "cyan" }, { "id": "4008076e-ff8c-400b-8983-0a452ed66509", "idName": "purple", + "index": 11, "name": "purple" }, { "id": "c692b7b0-f891-4729-8e76-4e67f1f6ff4a", "idName": "auto", + "index": 12, "name": "auto" }, { "id": "14e696ef-6f9f-4095-9731-5f9e541dd416", "idName": "jump3", + "index": 13, "name": "jump 3" }, { "id": "1e764e9f-5ff1-4cd1-b3a8-7feb2a3f204c", "idName": "fade3", + "index": 14, "name": "fade 3" }, { "id": "85b37c46-a44c-4989-add2-06b5537fe1a1", "idName": "speedUp", + "index": 15, "name": "speed up" }, { "id": "7fdb9f73-e773-4839-9137-3771feabe3e9", "idName": "speedDown", + "index": 16, "name": "speed down" }, { "id": "851e024b-0eee-4eec-8261-478c28c03557", "idName": "fade7", + "index": 17, "name": "fade 7" }, { "id": "c40392be-323d-48db-a076-40cf4d8cc7eb", "idName": "jump7", + "index": 18, "name": "jump 7" }, { "id": "db700960-2b02-4ad3-8257-a28cb5fc6356", "idName": "flash", + "index": 19, "name": "flash" } ] diff --git a/plugins/deviceplugins/lgsmarttv/devicepluginlgsmarttv.json b/plugins/deviceplugins/lgsmarttv/devicepluginlgsmarttv.json index 7b5887af..78701a2a 100644 --- a/plugins/deviceplugins/lgsmarttv/devicepluginlgsmarttv.json +++ b/plugins/deviceplugins/lgsmarttv/devicepluginlgsmarttv.json @@ -20,35 +20,42 @@ ], "createMethods": ["discovery"], "setupMethod": "displayPin", + "criticalStateTypeId": "b056c36b-df87-4177-8d5d-1e7c1e8cdc7a", "pairingInfo": "Please enter the pairing key displayed on the Tv.", "paramTypes": [ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "model", "type": "QString", + "index": 1, "inputType": "TextLine" }, { "name": "uuid", "type": "QString", + "index": 2, "inputType": "TextLine" }, { "name": "host address", "type": "QString", + "index": 3, "inputType": "IPv4Address" }, { "name": "port", + "index": 4, "type": "int" }, { "name": "key", "type": "QString", + "index": 5, "inputType": "Password" } ], @@ -57,6 +64,7 @@ "id": "b056c36b-df87-4177-8d5d-1e7c1e8cdc7a", "idName": "reachable", "name": "reachable", + "index": 0, "type": "bool", "defaultValue": false }, @@ -64,6 +72,7 @@ "id": "8ad3d77f-d340-495d-8c2a-5569a80e9d36", "idName": "tv3DMode", "name": "3D mode", + "index": 1, "type": "bool", "defaultValue": false }, @@ -71,6 +80,7 @@ "id": "07d39a6e-7eab-42d0-851d-9f3bcd3bbb57", "idName": "tvVolumeLevel", "name": "volume level", + "index": 2, "type": "int", "unit": "Percentage", "defaultValue": 0 @@ -78,6 +88,7 @@ { "id": "a6ac9061-3de7-403a-a646-790ca5d73764", "idName": "tvMute", + "index": 3, "name": "mute", "type": "bool", "defaultValue": false @@ -86,12 +97,14 @@ "id": "84c86670-77c7-4fc6-9e23-abca066e76aa", "idName": "tvChannelType", "name": "tv channel type", + "index": 4, "type": "QString", "defaultValue": "-" }, { "id": "265dc5f7-3f4d-4002-a6fe-2a53986bcf1d", "idName": "tvChannelName", + "index": 5, "name": "channel name", "type": "QString", "defaultValue": "-" @@ -99,6 +112,7 @@ { "id": "881629a3-4ce2-42ba-8ce6-10d90c383799", "idName": "tvChannelNumber", + "index": 6, "name": "channel number", "type": "int", "defaultValue": 0 @@ -107,6 +121,7 @@ "id": "3f53e52e-1ad7-40e7-8080-76908e720cac", "idName": "tvProgramName", "name": "program name", + "index": 7, "type": "QString", "defaultValue": "-" }, @@ -114,6 +129,7 @@ "id": "e895017a-139f-410c-bfb2-4d008104e164", "idName": "tvInputSourceIndex", "name": "input source index", + "index": 8, "type": "int", "defaultValue": 0 }, @@ -121,6 +137,7 @@ "id": "58b734ec-2269-4c57-99e1-e1eeee401053", "idName": "tvInputSourceLabelName", "name": "input source label", + "index": 9, "type": "QString", "defaultValue": "-" } @@ -129,96 +146,115 @@ { "id": "ac5d7dcd-dfe8-4a94-9ab9-21b3f804b39e", "idName": "commandVolumeUp", + "index": 0, "name": "volume up" }, { "id": "62b17bec-f461-4ffa-93d1-67a9430d55e1", "idName": "commandVolumeDown", + "index": 1, "name": "volume down" }, { "id": "1aa9d7f0-0f66-4b90-bb72-f6b7b2118221", "idName": "commandMute", + "index": 2, "name": "mute" }, { "id": "b7e31999-ba67-443d-8e5c-ec104af987bd", "idName": "commandUnmute", + "index": 3, "name": "unmute" }, { "id": "acd1f6a0-2cfa-4665-9607-cf94245ec5a3", "idName": "commandChannelUp", + "index": 4, "name": "channel up" }, { "id": "6ea66772-0e6d-40b1-978c-a01fb53871dd", "idName": "commandChannelDown", + "index": 5, "name": "channel down" }, { "id": "cbe41134-ff11-4916-815b-3ac289c64090", "idName": "commandPowerOff", + "index": 6, "name": "power off" }, { "id": "57c483b4-4ddf-4470-828c-8d8767e7a923", "idName": "commandArrowUp", + "index": 7, "name": "arrow up" }, { "id": "614cf1af-5cf7-4bb2-885c-4414078d8899", "idName": "commandArrowDown", + "index": 8, "name": "arrow down" }, { "id": "916394dd-7833-4875-8d7a-49d7d24ceeb2", "idName": "commandArrowLeft", + "index": 9, "name": "arrow left" }, { "id": "01e3df1e-638b-4e14-ba85-660267766062", "idName": "commandArrowRight", + "index": 10, "name": "arrow right" }, { "id": "257dfa59-0d38-4e18-a3fc-213809fdb12f", "idName": "commandOk", + "index": 11, "name": "OK" }, { "id": "ce4184b3-6b8e-4fc3-a4cb-7b8ec72f2ce9", "idName": "commandBack", + "index": 12, "name": "back" }, { "id": "33f941c1-f5fc-4449-b6e3-93eafca493e0", "idName": "commandHome", + "index": 13, "name": "home" }, { "id": "9a6e5111-95d3-49ac-8056-249e704b1509", "idName": "commandInputSource", + "index": 14, "name": "input source" }, { "id": "d76efdb8-056e-4b39-a839-2ef6d6001b00", "idName": "commandExit", + "index": 15, "name": "exit" }, { "id": "9c1290d5-3135-4124-a576-fc7522cffdcf", "idName": "commandInfo", + "index": 16, "name": "info" }, { "id": "47d65cac-fe75-4c36-9dee-9862c1c1130e", "idName": "commandMyApps", + "index": 17, "name": "my apps" }, { "id": "9aa3a97e-505d-4906-9764-14b6dc4e31e8", "idName": "commandProgramList", + "index": 18, "name": "program list" } ] diff --git a/plugins/deviceplugins/lircd/devicepluginlircd.json b/plugins/deviceplugins/lircd/devicepluginlircd.json index ca601515..b83ab70e 100644 --- a/plugins/deviceplugins/lircd/devicepluginlircd.json +++ b/plugins/deviceplugins/lircd/devicepluginlircd.json @@ -22,6 +22,7 @@ { "name": "remoteName", "type": "QString", + "index": 0, "inputType": "TextLine" } ], @@ -29,14 +30,17 @@ { "id": "8711471a-fa0e-410b-b174-dfc3d2aeffb1", "idName": "buttonPressed", + "index": 0, "name": "button pressed", "paramTypes": [ { "name": "button", + "index": 0, "type": "QString" }, { "name": "repeat", + "index": 1, "type": "int" } ] diff --git a/plugins/deviceplugins/mailnotification/devicepluginmailnotification.json b/plugins/deviceplugins/mailnotification/devicepluginmailnotification.json index f0c76485..f5d4b98d 100644 --- a/plugins/deviceplugins/mailnotification/devicepluginmailnotification.json +++ b/plugins/deviceplugins/mailnotification/devicepluginmailnotification.json @@ -22,42 +22,50 @@ { "name": "sender mail", "type": "QString", + "index": 0, "inputType": "Mail" }, { "name": "user", "type": "QString", + "index": 1, "inputType": "TextLine" }, { "name": "password", "type": "QString", + "index": 2, "inputType": "Password" }, { "name": "recipient", "type": "QString", + "index": 3, "inputType": "Mail" }, { "name": "SMTP server", "type": "QString", + "index": 4, "inputType": "Url" }, { "name": "port", "type": "int", + "index": 5, "defaultValue": "465" }, { "name": "authentification", "type": "QString", + "index": 6, "defaultValue": "LOGIN", "allowedValues": ["PLAIN", "LOGIN"] }, { "name": "encryption", "type": "QString", + "index": 7, "allowedValues": ["NONE","SSL","TLS"] } ], @@ -65,15 +73,18 @@ { "id": "054613b0-3666-4dad-9252-e0ebca187edc", "name": "send mail", + "index": 0, "paramTypes": [ { "name": "subject", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "body", "type": "QString", + "index": 1, "inputType": "TextArea" } ] @@ -101,16 +112,19 @@ { "name": "user", "type": "QString", + "index": 0, "inputType": "Mail" }, { "name": "password", "type": "QString", + "index": 1, "inputType": "Password" }, { "name": "recipient", "type": "QString", + "index": 2, "inputType": "Mail" } ], @@ -118,16 +132,19 @@ { "id": "054613b0-3666-4dad-9252-e0ebca187edc", "idName": "sendMail", + "index": 0, "name": "send mail", "paramTypes": [ { "name": "subject", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "body", "type": "QString", + "index": 1, "inputType": "TextArea" } ] @@ -155,16 +172,19 @@ { "name": "user", "type": "QString", + "index": 0, "inputType": "Mail" }, { "name": "password", "type": "QString", + "index": 1, "inputType": "Password" }, { "name": "recipient", "type": "QString", + "index": 2, "inputType": "Mail" } ], @@ -172,15 +192,18 @@ { "id": "054613b0-3666-4dad-9252-e0ebca187edc", "name": "send mail", + "index": 0, "paramTypes": [ { "name": "subject", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "body", "type": "QString", + "index": 1, "inputType": "TextArea" } ] diff --git a/plugins/deviceplugins/mock/devicepluginmock.json b/plugins/deviceplugins/mock/devicepluginmock.json index 93616b22..1822a2f4 100644 --- a/plugins/deviceplugins/mock/devicepluginmock.json +++ b/plugins/deviceplugins/mock/devicepluginmock.json @@ -6,6 +6,7 @@ { "name": "configParamInt", "type": "int", + "index": 0, "defaultValue": 42, "minValue": 1, "maxValue": 50 @@ -13,6 +14,7 @@ { "name": "configParamBool", "type": "bool", + "index": 1, "defaultValue": true } ], @@ -33,10 +35,13 @@ "Gateway" ], "createMethods": ["user", "discovery"], + "primaryActionTypeId": "defd3ed6-1a0d-400b-8879-a0202cf39935", + "primaryStateTypeId": "80baec19-54de-4948-ac46-31eabfaceb83", "discoveryParamTypes": [ { "name": "resultCount", "type": "int", + "index": 0, "defaultValue": 2, "allowedValues": [1, 2] } @@ -44,16 +49,19 @@ "paramTypes": [ { "name": "httpport", + "index": 0, "type": "int" }, { "name": "async", "type": "bool", + "index": 1, "defaultValue": false, "readOnly": true }, { "name": "broken", + "index": 2, "type": "bool", "defaultValue": false } @@ -62,12 +70,14 @@ { "id": "80baec19-54de-4948-ac46-31eabfaceb83", "name": "Dummy int state", + "index": 0, "defaultValue": 10, "type": "int" }, { "id": "9dd6a97c-dfd1-43dc-acbd-367932742310", "name": "Dummy bool state", + "index": 1, "defaultValue": false, "type": "bool" } @@ -75,15 +85,18 @@ "eventTypes": [ { "id": "45bf3752-0fc6-46b9-89fd-ffd878b5b22b", + "index": 0, "name": "Mock Event 1" }, { "id": "863d5920-b1cf-4eb9-88bd-8f7b8583b1cf", "name": "Mock Event 2", + "index": 1, "paramTypes": [ { "name": "mockParamInt", "type": "int", + "index": 0, "defaultValue": 10 } ] @@ -93,34 +106,41 @@ { "id": "dea0f4e1-65e3-4981-8eaa-2701c53a9185", "name": "Mock Action 1 (with params)", + "index": 0, "paramTypes": [ { "name": "mockActionParam1", + "index": 0, "type": "int" }, { "name": "mockActionParam2", + "index": 1, "type": "bool" } ] }, { "id": "defd3ed6-1a0d-400b-8879-a0202cf39935", + "index": 1, "name": "Mock Action 2 (without params)" }, { "id": "fbae06d3-7666-483e-a39e-ec50fe89054e", "idName": "mockAsync", + "index": 2, "name": "Mock Action 3 (async)" }, { "id": "df3cf33d-26d5-4577-9132-9823bd33fad0", "idName": "mockFailing", + "index": 3, "name": "Mock Action 4 (broken)" }, { "id": "bfe89a1d-3497-4121-8318-e77c37537219", "idName": "mockAsyncFailing", + "index": 4, "name": "Mock Action 5 (async, broken)" } ] @@ -135,21 +155,26 @@ "Gateway" ], "createMethods": ["auto"], + "primaryActionTypeId": "defd3ed6-1a0d-400b-8879-a0202cf39935", + "primaryStateTypeId": "80baec19-54de-4948-ac46-31eabfaceb83", "deviceIcon": "Tune", "paramTypes": [ { "name": "httpport", + "index": 0, "type": "int" }, { "name": "async", "type": "bool", + "index": 1, "defaultValue": false, "readOnly": true }, { "name": "broken", "type": "bool", + "index": 2, "defaultValue": false } ], @@ -157,12 +182,14 @@ { "id": "80baec19-54de-4948-ac46-31eabfaceb83", "name": "Dummy int state", + "index": 0, "defaultValue": 10, "type": "int" }, { "id": "9dd6a97c-dfd1-43dc-acbd-367932742310", "name": "Dummy bool state", + "index": 1, "defaultValue": false, "type": "bool" } @@ -170,15 +197,18 @@ "eventTypes": [ { "id": "45bf3752-0fc6-46b9-89fd-ffd878b5b22b", + "index": 0, "name": "Mock Event 1" }, { "id": "863d5920-b1cf-4eb9-88bd-8f7b8583b1cf", "name": "Mock Event 2", + "index": 1, "paramTypes": [ { "name": "mockParamInt", "type": "int", + "index": 0, "defaultValue": 10 } ] @@ -188,31 +218,38 @@ { "id": "dea0f4e1-65e3-4981-8eaa-2701c53a9185", "name": "Mock Action 1 (with params)", + "index": 0, "paramTypes": [ { "name": "mockActionParam1", + "index": 0, "type": "int" }, { "name": "mockActionParam2", + "index": 1, "type": "bool" } ] }, { "id": "defd3ed6-1a0d-400b-8879-a0202cf39935", + "index": 1, "name": "Mock Action 2 (without params)" }, { "id": "fbae06d3-7666-483e-a39e-ec50fe89054e", + "index": 2, "name": "Mock Action 3 (async)" }, { "id": "df3cf33d-26d5-4577-9132-9823bd33fad0", + "index": 3, "name": "Mock Action 4 (broken)" }, { "id": "bfe89a1d-3497-4121-8318-e77c37537219", + "index": 4, "name": "Mock Action 5 (async, broken)" } ] @@ -234,6 +271,7 @@ { "name": "resultCount", "type": "int", + "index": 0, "defaultValue": 2, "allowedValues": [1, 2] } @@ -243,6 +281,7 @@ "id": "20dc7c22-c50e-42db-837c-2bbced939f8e", "idName": "color", "name": "color", + "index": 0, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -251,6 +290,7 @@ "id": "72981c04-267a-4ba0-a59e-9921d2f3af9c", "idName": "percentage", "name": "percentage", + "index": 1, "type": "int", "unit": "Percentage", "defaultValue": 0, @@ -262,6 +302,7 @@ "id": "05f63f9c-f61e-4dcf-ad55-3f13fde2765b", "idName": "allowedValues", "name": "allowed values", + "index": 2, "type": "QString", "defaultValue": "String value 2", "possibleValues": [ @@ -276,6 +317,7 @@ "id": "53cd7c55-49b7-441b-b970-9048f20f0e2c", "idName": "double", "name": "double value", + "index": 3, "type": "double", "defaultValue": 0.0, "minValue": -100.0, @@ -286,6 +328,7 @@ "id": "e680f7a4-b39e-46da-be41-fa3170fe3768", "idName": "bool", "name": "bool value", + "index": 4, "type": "bool", "defaultValue": false, "writable": true @@ -295,6 +338,7 @@ { "id": "54646e7c-bc54-4895-81a2-590d72d120f9", "idName": "timeout", + "index": 0, "name": "Timeout action" } ] @@ -316,6 +360,7 @@ { "name": "resultCount", "type": "int", + "index": 0, "defaultValue": 2, "allowedValues": [1, 2] } @@ -324,6 +369,7 @@ { "name": "pin", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "243681", "readOnly": true @@ -334,6 +380,7 @@ "id": "20dc7c22-c50e-42db-837c-2bbced939f8e", "idName": "color", "name": "color", + "index": 0, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -343,6 +390,7 @@ "idName": "percentage", "name": "percentage", "type": "int", + "index": 1, "unit": "Percentage", "defaultValue": 0, "minValue": 0, @@ -354,6 +402,7 @@ "idName": "allowedValues", "name": "allowed values", "type": "QString", + "index": 2, "defaultValue": "String value 1", "possibleValues": [ "String value 1", @@ -368,6 +417,7 @@ "idName": "double", "name": "double value", "type": "double", + "index": 3, "defaultValue": 0.0, "minValue": -100.0, "maxValue": 100.0, @@ -377,6 +427,7 @@ "id": "e680f7a4-b39e-46da-be41-fa3170fe3768", "idName": "bool", "name": "bool value", + "index": 4, "type": "bool", "defaultValue": false, "writable": true @@ -386,6 +437,7 @@ { "id": "54646e7c-bc54-4895-81a2-590d72d120f9", "idName": "timeout", + "index": 0, "name": "Timeout action" } ] @@ -406,6 +458,7 @@ "id": "d24ede5f-4064-4898-bb84-cfb533b1fbc0", "idName": "boolValue", "name": "bool value", + "index": 0, "type": "bool", "defaultValue": false, "writable": true @@ -425,6 +478,7 @@ { "name": "parent uuid", "type": "QUuid", + "index": 0, "readOnly": true } ], @@ -433,6 +487,7 @@ "id": "d24ede5f-4064-4898-bb84-cfb533b1fbc0", "idName": "boolValue", "name": "bool value", + "index": 0, "type": "bool", "defaultValue": false, "writable": true @@ -452,54 +507,63 @@ { "name": "Text line", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "This is a text line" }, { "name": "Text area", "type": "QString", + "index": 1, "inputType": "TextArea", "defaultValue": "This is a text area" }, { "name": "Password text", "type": "QString", + "index": 2, "inputType": "Password", "defaultValue": "secret" }, { "name": "Search text", "type": "QString", + "index": 3, "inputType": "Search", "defaultValue": "Search text..." }, { "name": "Mail address", "type": "QString", + "index": 4, "inputType": "Mail", "defaultValue": "name@example.com" }, { "name": "IPv4 address", "type": "QString", + "index": 5, "inputType": "IPv4Address", "defaultValue": "127.0.0.1" }, { "name": "IPv6 address", "type": "QString", + "index": 6, "inputType": "IPv6Address", "defaultValue": "::1" }, { "name": "URL", "type": "QString", + "index": 7, "inputType": "Url", "defaultValue": "http://guh.guru" }, { "name": "Mac address", "type": "QString", + "index": 8, "inputType": "MacAddress", "defaultValue": "11:22:33:aa:bb:cc" } diff --git a/plugins/deviceplugins/netatmo/devicepluginnetatmo.json b/plugins/deviceplugins/netatmo/devicepluginnetatmo.json index eb6a4203..b480e9f4 100644 --- a/plugins/deviceplugins/netatmo/devicepluginnetatmo.json +++ b/plugins/deviceplugins/netatmo/devicepluginnetatmo.json @@ -12,6 +12,7 @@ "deviceClassId": "728d5a67-27a3-400e-b83c-2765f5196f69", "idName": "connection", "name": "Netatmo Connection", + "critcalStateTypeId": "2f79bc1d-27ed-480a-b583-728363c83ea6", "deviceIcon": "Network", "basicTags": [ "Service", @@ -23,16 +24,19 @@ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "username", "type": "QString", + "index": 1, "inputType": "TextLine" }, { "name": "password", "type": "QString", + "index": 2, "inputType": "Password" } ], @@ -41,6 +45,7 @@ "id": "2f79bc1d-27ed-480a-b583-728363c83ea6", "idName": "available", "name": "available", + "index": 0, "type": "bool", "defaultValue": false } @@ -56,23 +61,27 @@ "Weather", "Sensor" ], + "primaryStateTypeId": "3cb25538-e463-40ae-92f9-8f34f0c06b92", "createMethods": ["auto"], "paramTypes": [ { "name": "name", "type": "QString", "inputType": "TextLine", + "index": 0, "readOnly": true }, { "name": "mac address", "type": "QString", + "index": 1, "inputType": "TextLine", "readOnly": true }, { "name": "connection", "type": "QString", + "index": 2, "inputType": "TextLine", "readOnly": true } @@ -82,6 +91,7 @@ "id": "50da9f6b-c350-401c-a72e-2e4036f3975d", "idName": "updateTime", "name": "last update", + "index": 0, "unit": "UnixTime", "type": "int", "defaultValue": 0 @@ -90,6 +100,7 @@ "id": "3cb25538-e463-40ae-92f9-8f34f0c06b92", "idName": "temperature", "name": "temperature", + "index": 1, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -98,6 +109,7 @@ "id": "ae8bb713-8805-4efd-89a1-bca44a1f1690", "idName": "temperatureMin", "name": "temperature minimum", + "index": 2, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -106,6 +118,7 @@ "id": "dd30507e-037b-4c74-bcca-e04b94c7c5fe", "idName": "temperatureMax", "name": "temperature maximum", + "index": 3, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -114,6 +127,7 @@ "id": "e2db5f01-196a-48d1-8874-6b8cbfe0d8c9", "idName": "humidity", "name": "humidity", + "index": 4, "unit": "Percentage", "type": "int", "defaultValue": 0 @@ -122,6 +136,7 @@ "id": "03b0a7b7-987d-4d3b-b3f0-21d9f92ad326", "idName": "pressure", "name": "pressure", + "index": 5, "unit": "MilliBar", "type": "double", "defaultValue": 0 @@ -130,6 +145,7 @@ "id": "906cea9d-1daf-4e9c-90b9-e40f43052a34", "idName": "noise", "name": "noise", + "index": 6, "unit": "Dezibel", "type": "int", "defaultValue": 0 @@ -138,6 +154,7 @@ "id": "e5710bd1-79fa-4bd4-9052-8416aae909b9", "idName": "co2", "name": "co2", + "index": 7, "unit": "PartsPerMillion", "type": "int", "defaultValue": 0 @@ -146,6 +163,7 @@ "id": "6ea906d4-5740-454d-a730-6fdb9fa0d624", "idName": "wifiStrength", "name": "wifi signal strength", + "index": 8, "unit": "Percentage", "type": "int", "defaultValue": 0 @@ -162,17 +180,20 @@ "Weather", "Sensor" ], + "primaryStateTypeId": "3cb25538-e463-40ae-92f9-8f34f0c06b92", "createMethods": ["auto"], "paramTypes": [ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine", "readOnly": true }, { "name": "mac address", "type": "QString", + "index": 1, "inputType": "TextLine", "readOnly": true }, @@ -180,12 +201,14 @@ { "name": "connection", "type": "QString", + "index": 2, "inputType": "TextLine", "readOnly": true }, { "name": "base station", "type": "QString", + "index": 3, "inputType": "TextLine", "readOnly": true } @@ -195,6 +218,7 @@ "id": "50da9f6b-c350-401c-a72e-2e4036f3975d", "idName": "updateTime", "name": "last update", + "index": 0, "unit": "UnixTime", "type": "int", "defaultValue": 0 @@ -203,6 +227,7 @@ "id": "3cb25538-e463-40ae-92f9-8f34f0c06b92", "idName": "temperature", "name": "temperature", + "index": 1, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -211,6 +236,7 @@ "id": "ae8bb713-8805-4efd-89a1-bca44a1f1690", "idName": "temperatureMin", "name": "temperature minimum", + "index": 2, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -219,6 +245,7 @@ "id": "dd30507e-037b-4c74-bcca-e04b94c7c5fe", "idName": "temperatureMax", "name": "temperature maximum", + "index": 3, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -227,6 +254,7 @@ "id": "e2db5f01-196a-48d1-8874-6b8cbfe0d8c9", "idName": "humidity", "name": "humidity", + "index": 4, "unit": "Percentage", "type": "int", "defaultValue": 0 @@ -235,6 +263,7 @@ "id": "0faa3d08-9004-46fb-a5aa-a59b75e454cc", "idName": "signalStrength", "name": "signal strength", + "index": 5, "unit": "Percentage", "type": "int", "defaultValue": 0 @@ -243,6 +272,7 @@ "id": "15d8fae1-ba47-42e1-994d-530e8017c965", "idName": "battery", "name": "battery", + "index": 6, "unit": "Percentage", "type": "int", "defaultValue": 0 diff --git a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.json b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.json index cf46f83f..00bc42de 100644 --- a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.json +++ b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.json @@ -19,10 +19,12 @@ "Sensor" ], "createMethods": ["discovery"], + "primaryStateTypeId": "6013402f-b5b1-46b3-8490-f0c20d62fe61", "discoveryParamTypes": [ { "name": "location", "type": "QString", + "index": 0, "inputType": "Search", "defaultValue": "" } @@ -31,16 +33,19 @@ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "country", "type": "QString", + "index": 1, "inputType": "TextLine" }, { "name": "id", "type": "QString", + "index": 2, "inputType": "TextLine" } ], @@ -48,6 +53,7 @@ { "id": "cfbc6504-d86f-4856-8dfa-97b6fbb385e4", "idName": "refreshWeather", + "index": 0, "name": "refresh" } ], @@ -56,6 +62,7 @@ "id": "36b2f09b-7d77-4fbc-a68f-23d735dda0b1", "idName": "updateTime", "name": "last update", + "index": 0, "unit": "UnixTime", "type": "int", "defaultValue": 0 @@ -64,6 +71,7 @@ "id": "6013402f-b5b1-46b3-8490-f0c20d62fe61", "idName": "temperature", "name": "temperature", + "index": 1, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -72,6 +80,7 @@ "id": "14ec2781-cb04-4bbf-b097-7d01ef982630", "idName": "temperatureMin", "name": "temperature minimum", + "index": 2, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -80,6 +89,7 @@ "id": "fefe5563-452f-4833-b5cf-49c3cc67c772", "idName": "temperatureMax", "name": "temperature maximum", + "index": 3, "unit": "DegreeCelsius", "type": "double", "defaultValue": 0 @@ -88,6 +98,7 @@ "id": "6f32ec73-3240-4630-ada9-1c10b8e98123", "idName": "humidity", "name": "humidity", + "index": 4, "unit": "Percentage", "type": "int", "defaultValue": 0 @@ -96,6 +107,7 @@ "id": "4a42eea9-00eb-440b-915e-dbe42180f83b", "idName": "pressure", "name": "pressure", + "index": 5, "unit": "HectoPascal", "type": "double", "defaultValue": 0 @@ -104,6 +116,7 @@ "id": "2bf63430-e9e2-4fbf-88e6-6f1b4770f287", "idName": "windSpeed", "name": "wind speed", + "index": 6, "unit": "MeterPerSecond", "type": "double", "defaultValue": 0 @@ -113,6 +126,7 @@ "idName": "windDirection", "name": "wind direction", "unit": "Degree", + "index": 7, "type": "int", "defaultValue": 0 }, @@ -121,6 +135,7 @@ "idName": "cloudiness", "name": "cloudiness", "unit": "Percentage", + "index": 8, "type": "int", "defaultValue": 0 }, @@ -128,6 +143,7 @@ "id": "1e10d129-cb88-48b0-9244-e3e7e7b175d9", "idName": "visibility", "name": "visibility", + "index": 9, "unit": "Meter", "type": "int", "defaultValue": 0 @@ -136,6 +152,7 @@ "id": "f9539108-0e0e-4736-a306-6408f8e20a26", "idName": "weatherDescription", "name": "weather description", + "index": 10, "type": "QString", "defaultValue": "-" }, @@ -143,6 +160,7 @@ "id": "af155e94-9492-44e1-8608-7d0ee8b5d50d", "idName": "sunset", "name": "sunset", + "index": 11, "unit": "UnixTime", "type": "int", "defaultValue": 0 @@ -151,6 +169,7 @@ "id": "a1dddc3d-549f-4f20-b78b-be850548f286", "idName": "sunrise", "name": "sunrise", + "index": 12, "unit": "UnixTime", "type": "int", "defaultValue": 0 diff --git a/plugins/deviceplugins/orderbutton/devicepluginorderbutton.json b/plugins/deviceplugins/orderbutton/devicepluginorderbutton.json index a1a997df..468d31fc 100644 --- a/plugins/deviceplugins/orderbutton/devicepluginorderbutton.json +++ b/plugins/deviceplugins/orderbutton/devicepluginorderbutton.json @@ -6,6 +6,7 @@ { "name": "RPL address", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "fdaa:e9b8:d03a::ff:fe00:1" } @@ -29,6 +30,7 @@ { "name": "host", "type": "QString", + "index": 0, "inputType": "TextLine" } ], @@ -37,6 +39,7 @@ "id": "a4d83813-10f3-4830-be2e-60d4815906c4", "idName": "battery", "name": "battery voltage", + "index": 0, "type": "double", "unit": "Volt", "defaultValue": 0 @@ -44,6 +47,7 @@ { "id": "2df871fc-1888-4b04-8f02-f17b26642534", "idName": "count", + "index": 1, "name": "count", "type": "int", "defaultValue": 0 @@ -51,6 +55,7 @@ { "id": "783e74ee-ffd6-4dd7-ade5-3a961452cf15", "idName": "reachable", + "index": 2, "name": "reachable", "type": "bool", "defaultValue": false @@ -59,6 +64,7 @@ "id": "b184ccc8-e7d9-4e94-8683-07f81484bbda", "idName": "led", "name": "led", + "index": 3, "type": "bool", "defaultValue": false, "writable": true @@ -68,6 +74,7 @@ { "id": "b8e5da6c-501c-493e-8b0f-8ef09efb9057", "idName": "reset", + "index": 0, "name": "reset" } ], @@ -75,6 +82,7 @@ { "id": "2077a9ad-7f4b-4dd4-ae1c-7ecbe0a92dc0", "idName": "button", + "index": 0, "name": "button" } ] diff --git a/plugins/deviceplugins/osdomotics/devicepluginosdomotics.json b/plugins/deviceplugins/osdomotics/devicepluginosdomotics.json index 20f55a7b..cb8882cb 100644 --- a/plugins/deviceplugins/osdomotics/devicepluginosdomotics.json +++ b/plugins/deviceplugins/osdomotics/devicepluginosdomotics.json @@ -21,12 +21,14 @@ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "Merkur RPL Router" }, { "name": "host", "type": "QString", + "index": 1, "inputType": "IPv6Address" } ] @@ -44,18 +46,21 @@ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "Merkur Node" }, { "name": "host", "type": "QString", + "index": 1, "inputType": "IPv6Address", "readOnly": true }, { "name": "router id", "type": "QString", + "index": 2, "readOnly": true } ], @@ -65,6 +70,7 @@ "idName": "battery", "name": "battery voltage", "type": "double", + "index": 0, "defaultValue": 0 } ], @@ -72,6 +78,7 @@ { "id": "a91db0e7-9d0f-4071-9a8f-2bda45ed4c9d", "idName": "toggleLed", + "index": 0, "name": "toggle led" } ] diff --git a/plugins/deviceplugins/philipshue/devicepluginphilipshue.json b/plugins/deviceplugins/philipshue/devicepluginphilipshue.json index bdb4676b..9da2e135 100644 --- a/plugins/deviceplugins/philipshue/devicepluginphilipshue.json +++ b/plugins/deviceplugins/philipshue/devicepluginphilipshue.json @@ -25,39 +25,46 @@ { "name": "name", "type" : "QString", + "index": 0, "inputType": "TextLine" }, { "name": "api key", "type" : "QString", + "index": 1, "inputType": "TextLine", "readOnly": true }, { "name": "host address", "type" : "QString", + "index": 2, "inputType": "IPv4Address", "readOnly": true }, { "name": "mac address", "type" : "QString", + "index": 3, "inputType": "MacAddress", "readOnly": true }, { "name": "id", "type" : "QString", + "index": 4, "readOnly": true }, { "name": "software version", "type" : "QString", + "index": 5, "readOnly": true }, { "name": "zigbee channel", "type" : "int", + "index": 6, "readOnly": true } ], @@ -66,6 +73,7 @@ "id": "15794d26-fde8-4a61-8f83-d7830534975f", "idName": "bridgeReachable", "name": "reachable", + "index": 0, "defaultValue": false, "type": "bool" }, @@ -73,6 +81,7 @@ "id": "7a230e89-c4ce-4276-90e0-6a9ddb890603", "idName": "apiVersion", "name": "api version", + "index": 1, "defaultValue": "-", "type": "QString" }, @@ -80,6 +89,7 @@ "id": "4c707b18-6604-4e6d-b6bc-4e27769c2adc", "idName": "softwareVersion", "name": "software version", + "index": 2, "defaultValue": "-", "type": "QString" }, @@ -87,6 +97,7 @@ "id": "16a126f3-0cef-4931-bb2b-9e1b49bec7fc", "idName": "updateStatus", "name": "update status", + "index": 3, "type": "QString", "defaultValue": "Up to date", "possibleValues": [ @@ -101,16 +112,19 @@ { "id": "cca3f171-6318-44e7-a2ac-d841857c1c24", "idName": "searchNewDevices", + "index": 0, "name": "search devices" }, { "id": "07a85e91-d064-4bce-b017-13fd0c320c0b", "idName": "checkForUpdates", + "index": 1, "name": "check updates" }, { "id": "6dfbc7c0-7372-42f6-82ba-e777cb32dc4c", "idName": "upgrade", + "index": 2, "name": "Upgrade bridge" } ] @@ -130,43 +144,51 @@ { "name": "name", "type" : "QString", + "index": 0, "inputType": "TextLine" }, { "name": "bridge", "type" : "QString", + "index": 1, "readOnly": true }, { "name": "model id", "type" : "QString", + "index": 2, "readOnly": true }, { "name": "type", "type" : "QString", + "index": 3, "readOnly": true }, { "name": "uuid", "type" : "QString", + "index": 4, "readOnly": true }, { "name": "api key", "type" : "QString", "inputType": "TextLine", + "index": 5, "readOnly": true }, { "name": "host address", "type" : "QString", "inputType": "IPv4Address", + "index": 6, "readOnly": true }, { "name": "light id", "type" : "int", + "index": 7, "readOnly": true } ], @@ -175,6 +197,7 @@ "id": "19bb8d10-1b28-4ba3-99b7-a634138dcfde", "idName": "hueReachable", "name": "reachable", + "index": 0, "defaultValue": false, "type": "bool" }, @@ -182,6 +205,7 @@ "id": "90aaffe5-6a76-47d2-a14a-550f60390245", "idName": "huePower", "name": "power", + "index": 1, "type": "bool", "defaultValue": false, "writable": true @@ -191,6 +215,7 @@ "idName": "hueTemperature", "name": "color temperature", "type": "int", + "index": 2, "unit": "Mired", "defaultValue": 170, "minValue": 153, @@ -201,6 +226,7 @@ "id": "d25423e7-b924-4b20-80b6-77eecc65d089", "idName": "hueColor", "name": "color", + "index": 3, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -211,6 +237,7 @@ "idName": "hueBrightness", "name": "brightness", "type": "int", + "index": 4, "unit": "Percentage", "defaultValue": 0, "minValue": 0, @@ -222,6 +249,7 @@ "id": "0b7cdd8d-4db8-4183-abe2-f3c01d1c9afc", "idName": "hueEffect", "name": "effect", + "index": 5, "type": "QString", "defaultValue": "none", "possibleValues": [ @@ -236,10 +264,12 @@ "id": "d25dcfbc-d28c-4905-80e3-300ffb1248f5", "idName": "hueAlert", "name": "flash", + "index": 0, "paramTypes": [ { "name": "alert", "type": "QString", + "index": 0, "allowedValues": [ "flash once", "flash 30 seconds" @@ -264,43 +294,51 @@ { "name": "name", "type" : "QString", + "index": 0, "inputType": "TextLine" }, { "name": "bridge", "type" : "QString", + "index": 1, "readOnly": true }, { "name": "model id", "type" : "QString", + "index": 2, "readOnly": true }, { "name": "type", "type" : "QString", + "index": 3, "readOnly": true }, { "name": "uuid", "type" : "QString", + "index": 4, "readOnly": true }, { "name": "api key", "type" : "QString", + "index": 5, "inputType": "TextLine", "readOnly": true }, { "name": "host address", "type" : "QString", + "index": 6, "inputType": "IPv4Address", "readOnly": true }, { "name": "light id", "type" : "int", + "index": 7, "readOnly": true } ], @@ -309,6 +347,7 @@ "id": "19bb8d10-1b28-4ba3-99b7-a634138dcfde", "idName": "hueReachable", "name": "reachable", + "index": 0, "defaultValue": false, "type": "bool" }, @@ -316,6 +355,7 @@ "id": "90aaffe5-6a76-47d2-a14a-550f60390245", "idName": "huePower", "name": "power", + "index": 1, "type": "bool", "defaultValue": false, "writable": true @@ -324,6 +364,7 @@ "id": "90e91f64-a208-468c-a5a2-7f47e08859e2", "idName": "hueBrightness", "name": "brightness", + "index": 2, "type": "int", "unit": "Percentage", "defaultValue": 0, @@ -338,10 +379,12 @@ "id": "d25dcfbc-d28c-4905-80e3-300ffb1248f5", "idName": "hueAlert", "name": "flash", + "index": 0, "paramTypes": [ { "name": "alert", "type": "QString", + "index": 0, "allowedValues": [ "flash once", "flash 30 seconds" @@ -365,43 +408,51 @@ { "name": "name", "type" : "QString", + "index": 0, "inputType": "TextLine" }, { "name": "bridge", "type" : "QString", + "index": 1, "readOnly": true }, { "name": "model id", "type" : "QString", + "index": 2, "readOnly": true }, { "name": "type", "type" : "QString", + "index": 3, "readOnly": true }, { "name": "uuid", "type" : "QString", + "index": 4, "readOnly": true }, { "name": "api key", "type" : "QString", + "index": 5, "inputType": "TextLine", "readOnly": true }, { "name": "host address", "type" : "QString", + "index": 6, "inputType": "IPv4Address", "readOnly": true }, { "name": "sensor id", "type" : "int", + "index": 7, "readOnly": true } ], @@ -410,6 +461,7 @@ "id": "19bb8d10-1b28-4ba3-99b7-a634138dcfde", "idName": "hueReachable", "name": "reachable", + "index": 0, "defaultValue": false, "type": "bool" }, @@ -418,6 +470,7 @@ "idName": "battery", "name": "battery", "type": "int", + "index": 1, "unit": "Percentage", "defaultValue": 0, "minValue": 0, @@ -428,41 +481,49 @@ { "id": "de769db0-4c31-46cf-9760-dbc6f9209c26", "idName": "onPressed", + "index": 0, "name": "on pressed" }, { "id": "6c5e596b-7c15-40bb-af9d-c778a6b0f30e", "idName": "onLongPressed", + "index": 1, "name": "on long pressed" }, { "id": "8e3d6a62-6a19-4e9a-a25b-e1da2e56ede9", "idName": "dimUpPressed", + "index": 2, "name": "dim up pressed" }, { "id": "53d3c9af-3e25-4116-b22b-38d897bc20aa", "idName": "dimUpLongPressed", + "index": 3, "name": "dim up long pressed" }, { "id": "efd8b972-9a37-43f2-b9bc-f9dfe144a96d", "idName": "dimDownPressed", + "index": 4, "name": "dim down pressed" }, { "id": "1986d4c6-4c9f-4e43-ba70-0ff06c6f177b", "idName": "dimDownLongPressed", + "index": 5, "name": "dim down long pressed" }, { "id": "7c2a58f1-137c-4bf3-8f9e-453dff020487", "idName": "offPressed", + "index": 6, "name": "off pressed" }, { "id": "d69306eb-ea52-4841-9e26-89c69e9cf6fc", "idName": "offLongPressed", + "index": 7, "name": "off long pressed" } ] diff --git a/plugins/deviceplugins/plantcare/devicepluginplantcare.json b/plugins/deviceplugins/plantcare/devicepluginplantcare.json index b718a755..7baede00 100644 --- a/plugins/deviceplugins/plantcare/devicepluginplantcare.json +++ b/plugins/deviceplugins/plantcare/devicepluginplantcare.json @@ -6,6 +6,7 @@ { "name": "RPL address", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "fdaa:e9b8:d03a::ff:fe00:1" } @@ -29,6 +30,7 @@ { "name": "host", "type": "QString", + "index": 0, "inputType": "TextLine" } ], @@ -37,6 +39,7 @@ "id": "2b4b5123-14b7-4aa1-9c83-27cef333395d", "idName": "battery", "name": "battery voltage", + "index": 0, "type": "double", "unit": "Volt", "defaultValue": 0 @@ -45,6 +48,7 @@ "id": "8a7efda1-b6b7-41c8-ad07-4d892a532d1c", "idName": "moisture", "name": "moisture", + "index": 1, "type": "int", "unit": "Percentage", "defaultValue": 0 @@ -53,6 +57,7 @@ "id": "26deeba1-487a-4dee-940a-a3bd48344f33", "idName": "water", "name": "water empty", + "index": 2, "type": "bool", "defaultValue": false }, @@ -60,6 +65,7 @@ "id": "819aca98-25e5-4733-81e0-5921478b3e89", "idName": "ledPower", "name": "led power", + "index": 3, "type": "bool", "defaultValue": false, "writable": true @@ -68,6 +74,7 @@ "id": "6c65ae32-18ce-400f-afd6-47fb5b805ccd", "idName": "waterPump", "name": "water pump power", + "index": 4, "type": "bool", "defaultValue": false, "writable": true @@ -76,6 +83,7 @@ "id": "8384e07b-8b91-492a-b6c8-e72b325ba0b4", "idName": "reachable", "name": "reachable", + "index": 5, "type": "bool", "defaultValue": false } @@ -84,6 +92,7 @@ { "id": "9afbcc80-1c97-4c18-bc08-5209d6297f2e", "idName": "toggleLed", + "index": 0, "name": "toggle led" } ] diff --git a/plugins/deviceplugins/udpcommander/devicepluginudpcommander.json b/plugins/deviceplugins/udpcommander/devicepluginudpcommander.json index f22cc116..4176e6c0 100644 --- a/plugins/deviceplugins/udpcommander/devicepluginudpcommander.json +++ b/plugins/deviceplugins/udpcommander/devicepluginudpcommander.json @@ -20,11 +20,13 @@ "paramTypes": [ { "name": "port", + "index": 0, "type": "int" }, { "name": "command", "type": "QString", + "index": 1, "inputType": "TextLine" } ], @@ -32,6 +34,7 @@ { "id": "5fecbba3-ffbb-456b-872c-a2f571c681cb", "idName": "commandReceived", + "index": 0, "name": "command received" } ] diff --git a/plugins/deviceplugins/unitec/devicepluginunitec.json b/plugins/deviceplugins/unitec/devicepluginunitec.json index 66cf7479..016a4b97 100644 --- a/plugins/deviceplugins/unitec/devicepluginunitec.json +++ b/plugins/deviceplugins/unitec/devicepluginunitec.json @@ -22,6 +22,7 @@ { "name": "channel", "type": "QString", + "index": 0, "allowedValues": ["A", "B", "C", "D"] } ], @@ -30,10 +31,12 @@ "id": "3ca1ebc2-bb8e-4429-9664-a7bc4569e73b", "idName": "power", "name": "set power", + "index": 0, "paramTypes": [ { "name": "power", - "type": "bool" + "type": "bool", + "index": 0 } ] } diff --git a/plugins/deviceplugins/wakeonlan/devicepluginwakeonlan.json b/plugins/deviceplugins/wakeonlan/devicepluginwakeonlan.json index 04240b94..cdbb0442 100644 --- a/plugins/deviceplugins/wakeonlan/devicepluginwakeonlan.json +++ b/plugins/deviceplugins/wakeonlan/devicepluginwakeonlan.json @@ -21,6 +21,7 @@ { "name": "mac", "type": "QString", + "index": 0, "inputType": "MacAddress" } ], @@ -28,6 +29,7 @@ { "id": "fb9b9d87-218f-4f0d-9e16-39f8a105029a", "idName": "wol", + "index": 0, "name": "wake up device" } ] diff --git a/plugins/deviceplugins/wemo/devicepluginwemo.json b/plugins/deviceplugins/wemo/devicepluginwemo.json index 1eb65b58..5ae6ac04 100644 --- a/plugins/deviceplugins/wemo/devicepluginwemo.json +++ b/plugins/deviceplugins/wemo/devicepluginwemo.json @@ -22,20 +22,24 @@ { "name": "name", "type": "QString", + "index": 0, "inputType": "TextLine" }, { "name": "host address", "type": "QString", + "index": 1, "inputType": "IPv4Address" }, { "name": "port", + "index": 2, "type": "int" }, { "name": "serial number", "type": "QString", + "index": 3, "inputType": "TextLine" } ], @@ -44,6 +48,7 @@ "id": "7166c4f6-f68c-4188-8f7c-2205d72a5a6d", "idName": "power", "name": "power", + "index": 0, "type": "bool", "defaultValue": false, "writable": true @@ -53,6 +58,7 @@ "id": "ec2f5b49-585c-4455-a233-b7aa4c608dbc", "idName": "reachable", "name": "reachable", + "index": 1, "type": "bool", "defaultValue": false } diff --git a/plugins/deviceplugins/wifidetector/devicepluginwifidetector.json b/plugins/deviceplugins/wifidetector/devicepluginwifidetector.json index cac3a422..fd228ba2 100644 --- a/plugins/deviceplugins/wifidetector/devicepluginwifidetector.json +++ b/plugins/deviceplugins/wifidetector/devicepluginwifidetector.json @@ -22,6 +22,7 @@ { "name": "mac address", "type": "QString", + "index": 0, "inputType": "MacAddress" } ], @@ -30,6 +31,7 @@ "id": "cb43e1b5-4f61-4538-bfa2-c33055c542cf", "idName": "inRange", "name": "in Range", + "index": 0, "type": "bool", "defaultValue": false } diff --git a/plugins/deviceplugins/ws2812/devicepluginws2812.json b/plugins/deviceplugins/ws2812/devicepluginws2812.json index 2751a944..7bd8da4f 100644 --- a/plugins/deviceplugins/ws2812/devicepluginws2812.json +++ b/plugins/deviceplugins/ws2812/devicepluginws2812.json @@ -6,6 +6,7 @@ { "name": "RPL address", "type": "QString", + "index": 0, "inputType": "TextLine", "defaultValue": "fdaa:e9b8:d03a::ff:fe00:1" } @@ -29,6 +30,7 @@ { "name": "host", "type": "QString", + "index": 0, "inputType": "TextLine" } ], @@ -37,6 +39,7 @@ "id": "c9f6042f-1193-4075-94b1-37b29641ec24", "idName": "battery", "name": "battery voltage", + "index": 0, "type": "double", "unit": "Volt", "defaultValue": 0 @@ -45,6 +48,7 @@ "id": "08091cde-983d-42f7-bdd7-d89c312ccbed", "idName": "reachable", "name": "reachable", + "index": 1, "type": "bool", "defaultValue": false }, @@ -52,6 +56,7 @@ "id": "8a73c60a-1da9-4228-8dba-2ffccc6531a6", "idName": "effectColor", "name": "color", + "index": 2, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -62,6 +67,7 @@ "idName": "brightness", "name": "brightness", "type": "int", + "index": 3, "unit": "Percentage", "defaultValue": 0, "minValue": 0, @@ -72,6 +78,7 @@ "id": "ac372b72-c2ae-4f0f-9fca-bd7cf654603a", "idName": "maxPix", "name": "leds", + "index": 4, "type": "int", "defaultValue": 240, "minValue": 0, @@ -82,6 +89,7 @@ "id": "e53ae524-ca10-49c5-b530-e414779ecc1d", "idName": "speed", "name": "speed", + "index": 4, "type": "int", "defaultValue": 60, "minValue": 60, @@ -92,6 +100,7 @@ "id": "f4fe5d31-1edb-4944-9ddb-c89e7da8bee7", "idName": "effectMode", "name": "effect mode", + "index": 5, "type": "QString", "writable": true, "possibleValues": [ @@ -112,6 +121,7 @@ "id": "8fe2e42a-7b9d-4c76-ae77-355759c81350", "name": "tricolore color 1", "idName": "tcolor1", + "index": 6, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -121,6 +131,7 @@ "id": "dd4ad65b-007a-4eae-8ce0-b76d6cbf093e", "name": "tricolore color 2", "idName": "tcolor2", + "index": 7, "type": "QColor", "defaultValue": "#000000", "writable": true @@ -130,6 +141,7 @@ "id": "97c83be0-7ba7-4758-b52b-d997a80bfbe5", "name": "tricolore color 3", "idName": "tcolor3", + "index": 8, "type": "QColor", "defaultValue": "#000000", "writable": true