{ "name": "MockDevice", "displayName": "Mock Devices", "id": "727a4a9a-c187-446f-aadf-f1b2220607d1", "paramTypes": [ { "id": "e1f72121-a426-45e2-b475-8262b5cdf103", "name": "configParamInt", "displayName": "configParamInt", "type": "int", "defaultValue": 42, "minValue": 1, "maxValue": 50 }, { "id": "c75723b6-ea4f-4982-9751-6c5e39c88145", "name": "configParamBool", "displayName": "configParamBool", "type": "bool", "defaultValue": true } ], "vendors": [ { "id": "2062d64d-3232-433c-88bc-0d33c0ba2ba6", "name": "guh", "displayName": "guh", "deviceClasses": [ { "id": "753f0d32-0468-4d08-82ed-1964aab03298", "name": "mock", "displayName": "Mock Device", "deviceIcon": "Tune", "interfaces": ["gateway", "light", "mediacontroller", "battery"], "basicTags": [ "Device", "Actuator", "Gateway" ], "createMethods": ["user", "discovery"], "primaryActionTypeId": "defd3ed6-1a0d-400b-8879-a0202cf39935", "primaryStateTypeId": "80baec19-54de-4948-ac46-31eabfaceb83", "discoveryParamTypes": [ { "id": "d222adb4-2f9c-4c3f-8655-76400d0fb6ce", "name": "resultCount", "displayName": "resultCount", "type": "int", "defaultValue": 2, "allowedValues": [1, 2] } ], "paramTypes": [ { "id": "d4f06047-125e-4479-9810-b54c189917f5", "name": "httpport", "displayName": "http port", "type": "int" }, { "id": "f2977061-4dd0-4ef5-85aa-3b7134743be3", "name": "async", "displayName": "async", "type": "bool", "defaultValue": false, "readOnly": true }, { "id": "ae8f8901-f2c1-42a5-8111-6d2fc8e4c1e4", "name": "broken", "displayName": "broken", "type": "bool", "defaultValue": false } ], "stateTypes": [ { "id": "80baec19-54de-4948-ac46-31eabfaceb83", "name": "int", "displayName": "Dummy int state", "displayNameEvent": "Dummy int state changed", "defaultValue": 10, "graphRelevant": true, "type": "int" }, { "id": "9dd6a97c-dfd1-43dc-acbd-367932742310", "name": "boolValue", "displayName": "Dummy bool state", "displayNameEvent": "Dummy bool state changed", "defaultValue": false, "type": "bool", "cached": false }, { "id": "6c8ab9a6-0164-4795-b829-f4394fe4edc4", "name": "batteryLevel", "displayName": "battery level", "displayNameEvent": "battery level", "type": "int", "minValue": 0, "maxValue": 100, "defaultValue": 0 }, { "id": "580bc611-1a55-41f3-996f-8d3ccf543db3", "name": "batteryCritical", "displayName": "battery level critical", "displayNameEvent": "battery level critical", "type": "bool", "defaultValue": false }, { "id": "064aed0d-da4c-49d4-b236-60f97e98ff84", "name": "power", "displayName": "powered", "displayNameEvent": "powered changed", "displayNameAction": "set power", "type": "bool", "defaultValue": false, "writable": true } ], "eventTypes": [ { "id": "45bf3752-0fc6-46b9-89fd-ffd878b5b22b", "name": "mockEvent1", "displayName": "Mock Event 1", "graphRelevant": true }, { "id": "863d5920-b1cf-4eb9-88bd-8f7b8583b1cf", "name": "mockEvent2", "displayName": "Mock Event 2", "paramTypes": [ { "id": "0550e16d-60b9-4ba5-83f4-4d3cee656121", "name": "mockParamInt", "displayName": "mockParamInt", "type": "int", "defaultValue": 10 } ] } ], "actionTypes": [ { "id": "dea0f4e1-65e3-4981-8eaa-2701c53a9185", "displayName": "Mock Action 1 (with params)", "name": "withParams", "paramTypes": [ { "id": "a2d3a256-a551-4712-a65b-ecd5a436a1cb", "name": "mockActionParam1", "displayName": "mockActionParam1", "type": "int" }, { "id": "304a4899-18be-4e3b-94f4-d03be52f3233", "name": "mockActionParam2", "displayName": "mockActionParam2", "type": "bool" } ] }, { "id": "defd3ed6-1a0d-400b-8879-a0202cf39935", "name": "withoutParams", "displayName": "Mock Action 2 (without params)" }, { "id": "fbae06d3-7666-483e-a39e-ec50fe89054e", "name": "mockAsync", "displayName": "Mock Action 3 (async)" }, { "id": "df3cf33d-26d5-4577-9132-9823bd33fad0", "name": "mockFailing", "displayName": "Mock Action 4 (broken)" }, { "id": "bfe89a1d-3497-4121-8318-e77c37537219", "name": "mockAsyncFailing", "displayName": "Mock Action 5 (async, broken)" } ] }, { "id": "ab4257b3-7548-47ee-9bd4-7dc3004fd197", "name": "mockDeviceAuto", "displayName": "Mock Device (Auto created)", "interfaces": ["gateway"], "basicTags": [ "Device", "Actuator", "Gateway" ], "createMethods": ["auto"], "primaryActionTypeId": "defd3ed6-1a0d-400b-8879-a0202cf39935", "primaryStateTypeId": "80baec19-54de-4948-ac46-31eabfaceb83", "deviceIcon": "Tune", "paramTypes": [ { "id": "d4f06047-125e-4479-9810-b54c189917f5", "name": "httpport", "displayName": "http port", "type": "int" }, { "id": "f2977061-4dd0-4ef5-85aa-3b7134743be3", "name": "async", "displayName": "async", "type": "bool", "defaultValue": false, "readOnly": true }, { "id": "ae8f8901-f2c1-42a5-8111-6d2fc8e4c1e4", "name": "broken", "displayName": "broken", "type": "bool", "defaultValue": false } ], "stateTypes": [ { "id": "80baec19-54de-4948-ac46-31eabfaceb83", "name": "int", "displayName": "Dummy int state", "displayNameEvent": "Dummy int state changed", "defaultValue": 10, "graphRelevant": true, "type": "int" }, { "id": "9dd6a97c-dfd1-43dc-acbd-367932742310", "name": "boolValue", "displayName": "Dummy bool state", "displayNameEvent": "Dummy bool state changed", "defaultValue": false, "type": "bool", "cached": false } ], "eventTypes": [ { "id": "45bf3752-0fc6-46b9-89fd-ffd878b5b22b", "name": "event1", "displayName": "Mock Event 1" }, { "id": "863d5920-b1cf-4eb9-88bd-8f7b8583b1cf", "name": "event2", "displayName": "Mock Event 2", "paramTypes": [ { "id": "0550e16d-60b9-4ba5-83f4-4d3cee656121", "name": "mockParamInt", "displayName": "mockParamInt", "type": "int", "defaultValue": 10 } ] } ], "actionTypes": [ { "id": "dea0f4e1-65e3-4981-8eaa-2701c53a9185", "name": "withParams", "displayName": "Mock Action 1 (with params)", "paramTypes": [ { "id": "a2d3a256-a551-4712-a65b-ecd5a436a1cb", "name": "mockActionParam1", "displayName": "mockActionParam1", "type": "int" }, { "id": "304a4899-18be-4e3b-94f4-d03be52f3233", "name": "mockActionParam2", "displayName": "mockActionParam2", "type": "bool" } ] }, { "id": "defd3ed6-1a0d-400b-8879-a0202cf39935", "name": "mockActionNoParms", "displayName": "Mock Action 2 (without params)" }, { "id": "fbae06d3-7666-483e-a39e-ec50fe89054e", "name": "mockActionAsync", "displayName": "Mock Action 3 (async)" }, { "id": "df3cf33d-26d5-4577-9132-9823bd33fad0", "name": "mockActionBroken", "displayName": "Mock Action 4 (broken)" }, { "id": "bfe89a1d-3497-4121-8318-e77c37537219", "name": "mockActionAsyncBroken", "displayName": "Mock Action 5 (async, broken)" } ] }, { "id": "9e03144c-e436-4eea-82d9-ccb33ef778db", "name": "mockPushButton", "displayName": "Mock Device (Push Button)", "interfaces": ["gateway"], "basicTags": [ "Device", "Actuator", "Gateway" ], "createMethods": ["discovery"], "setupMethod": "pushButton", "deviceIcon": "Tune", "pairingInfo": "Wait 3 second before you continue, the push button will be pressed automatically.", "paramTypes": [ ], "discoveryParamTypes": [ { "id": "d222adb4-2f9c-4c3f-8655-76400d0fb6ce", "name": "resultCount", "displayName": "resultCount", "type": "int", "defaultValue": 2, "allowedValues": [1, 2] } ], "stateTypes": [ { "id": "20dc7c22-c50e-42db-837c-2bbced939f8e", "name": "color", "displayName": "color", "displayNameEvent": "color changed", "displayNameAction": "Set color", "type": "QColor", "defaultValue": "#000000", "ruleRelevant": false, "eventRuleRelevant": false, "writable": true }, { "id": "72981c04-267a-4ba0-a59e-9921d2f3af9c", "name": "percentage", "displayName": "percentage", "displayNameEvent": "percentage changed", "displayNameAction": "Set percentage", "type": "int", "unit": "Percentage", "defaultValue": 0, "ruleRelevant": false, "minValue": 0, "maxValue": 100, "writable": true }, { "id": "05f63f9c-f61e-4dcf-ad55-3f13fde2765b", "name": "allowedValues", "displayName": "allowed values", "displayNameEvent": "allowed values changed", "displayNameAction": "Set allowed values", "type": "QString", "defaultValue": "String value 1", "possibleValues": [ "String value 1", "String value 2", "String value 3", "String value 4" ], "writable": true }, { "id": "53cd7c55-49b7-441b-b970-9048f20f0e2c", "name": "double", "displayName": "double value", "displayNameEvent": "double value changed", "displayNameAction": "Set double value", "type": "double", "defaultValue": 0.0, "minValue": -100.0, "maxValue": 100.0, "writable": true }, { "id": "e680f7a4-b39e-46da-be41-fa3170fe3768", "name": "bool", "displayName": "bool value", "displayNameEvent": "bool value changed", "displayNameAction": "Set bool value", "type": "bool", "defaultValue": false, "writable": true } ], "actionTypes": [ { "id": "54646e7c-bc54-4895-81a2-590d72d120f9", "name": "timeout", "displayName": "Timeout action" } ] }, { "id": "296f1fd4-e893-46b2-8a42-50d1bceb8730", "name": "mockDisplayPin", "displayName": "Mock Device (Display Pin)", "deviceIcon": "Tune", "interfaces": ["gateway"], "basicTags": [ "Device", "Actuator", "Gateway" ], "createMethods": ["discovery"], "setupMethod": "displayPin", "pairingInfo": "Please enter the secret which normaly will be displayed on the device. For the mockdevice the pin is 243681.", "discoveryParamTypes": [ { "id": "d222adb4-2f9c-4c3f-8655-76400d0fb6ce", "name": "resultCount", "displayName": "resultCount", "type": "int", "defaultValue": 2, "allowedValues": [1, 2] } ], "paramTypes": [ { "id": "da820e07-22dc-4173-9c07-2f49a4e265f9", "name": "pin", "displayName": "pin", "type": "QString", "inputType": "TextLine", "defaultValue": "243681", "readOnly": true } ], "stateTypes": [ { "id": "20dc7c22-c50e-42db-837c-2bbced939f8e", "name": "color", "displayName": "color", "displayNameEvent": "color changed", "displayNameAction": "Set color", "type": "QColor", "defaultValue": "#000000", "ruleRelevant": false, "eventRuleRelevant": false, "writable": true }, { "id": "72981c04-267a-4ba0-a59e-9921d2f3af9c", "name": "percentage", "displayName": "percentage", "displayNameEvent": "percentage changed", "displayNameAction": "Set percentage", "type": "int", "unit": "Percentage", "defaultValue": 0, "ruleRelevant": false, "minValue": 0, "maxValue": 100, "writable": true }, { "id": "05f63f9c-f61e-4dcf-ad55-3f13fde2765b", "name": "allowedValues", "displayName": "allowed values", "displayNameEvent": "allowed values changed", "displayNameAction": "Set allowed values", "type": "QString", "defaultValue": "String value 1", "possibleValues": [ "String value 1", "String value 2", "String value 3", "String value 4" ], "writable": true }, { "id": "53cd7c55-49b7-441b-b970-9048f20f0e2c", "name": "double", "displayName": "double value", "displayNameEvent": "double value changed", "displayNameAction": "Set double value", "type": "double", "defaultValue": 0.0, "minValue": -100.0, "maxValue": 100.0, "writable": true }, { "id": "e680f7a4-b39e-46da-be41-fa3170fe3768", "name": "bool", "displayName": "bool value", "displayNameEvent": "bool value changed", "displayNameAction": "Set bool value", "type": "bool", "defaultValue": false, "writable": true } ], "actionTypes": [ { "id": "54646e7c-bc54-4895-81a2-590d72d120f9", "name": "timeout", "displayName": "Timeout action" } ] }, { "id": "a71fbde9-9a38-4bf8-beab-c8aade2608ba", "name": "mockParent", "displayName": "Mock Device (Parent)", "deviceIcon": "Tune", "interfaces": ["gateway"], "basicTags": [ "Device", "Actuator", "Gateway" ], "createMethods": ["user"], "paramTypes": [ ], "stateTypes": [ { "id": "d24ede5f-4064-4898-bb84-cfb533b1fbc0", "name": "boolValueParent", "displayName": "bool value", "displayNameEvent": "bool value changed", "displayNameAction": "Set bool value", "type": "bool", "defaultValue": false, "writable": true } ] }, { "id": "40893c9f-bc47-40c1-8bf7-b390c7c1b4fc", "name": "mockChild", "displayName": "Mock Device (Child)", "createMethods": ["auto"], "basicTags": [ "Device", "Actuator" ], "paramTypes": [ { "id": "104b5288-404e-42d3-bf38-e40682e75681", "name": "parentUuid", "displayName": "parent uuid", "type": "QUuid", "readOnly": true } ], "stateTypes": [ { "id": "d24ede5f-4064-4898-bb84-cfb533b1fbc0", "name": "boolValueParent", "displayName": "bool value", "displayNameEvent": "bool value changed", "displayNameAction": "Set bool value", "type": "bool", "defaultValue": false, "writable": true } ] }, { "id": "515ffdf1-55e5-498d-9abc-4e2fe768f3a9", "name": "mockInputType", "displayName": "Mock Device (InputTypes)", "deviceIcon": "Tune", "basicTags": [ "Device" ], "createMethods": ["user"], "paramTypes": [ { "id": "e6acf0c7-4b8e-4296-ac62-855d20deb816", "name": "textLine", "displayName": "Text line", "type": "QString", "inputType": "TextLine", "defaultValue": "This is a text line" }, { "id": "716f0994-bc01-42b0-b64d-59236f7320d2", "name": "textArea", "displayName": "Text area", "type": "QString", "inputType": "TextArea", "defaultValue": "This is a text area" }, { "id": "e5c0d14b-c9f1-4aca-a56e-85bfa6977150", "name": "password", "displayName": "Password text", "type": "QString", "inputType": "Password", "defaultValue": "secret" }, { "id": "22add8c9-ee4f-43ad-8931-58e999313ac3", "name": "search", "displayName": "Search text", "type": "QString", "inputType": "Search", "defaultValue": "Search text..." }, { "id": "a8494faf-3a0f-4cf3-84b7-4b39148a838d", "name": "mail", "displayName": "Mail address", "type": "QString", "inputType": "Mail", "defaultValue": "name@example.com" }, { "id": "9e5f86a0-4bb3-4892-bff8-3fc4032af6e2", "name": "ip4", "displayName": "IPv4 address", "type": "QString", "inputType": "IPv4Address", "defaultValue": "127.0.0.1" }, { "id": "43bf3832-dd48-4090-a836-656e8b60216e", "name": "ip6", "displayName": "IPv6 address", "type": "QString", "inputType": "IPv6Address", "defaultValue": "::1" }, { "id": "fa67229f-fcef-496f-b671-59a4b48f3ab5", "name": "url", "displayName": "URL", "type": "QString", "inputType": "Url", "defaultValue": "http://guh.guru" }, { "id": "e93db587-7919-48f3-8c88-1651de63c765", "name": "mac", "displayName": "Mac address", "type": "QString", "inputType": "MacAddress", "defaultValue": "11:22:33:aa:bb:cc" } ] } ] } ] }