mirror of https://github.com/nymea/nymea.git
218 lines
8.6 KiB
JSON
218 lines
8.6 KiB
JSON
{
|
|
"name": "Gpio Controller",
|
|
"idName": "GpioController",
|
|
"id": "127ead55-996a-44ac-ba82-fc3c634e018a",
|
|
"vendors": [
|
|
{
|
|
"name": "Raspberry Pi 2",
|
|
"idName": "raspberryPi",
|
|
"id": "f0d00b66-bbd8-4a07-8591-ea48a61b229e",
|
|
"deviceClasses": [
|
|
{
|
|
"id": "3885c520-e202-4435-88f6-3c35c362b2e6",
|
|
"name": "GPIO Switch",
|
|
"idName": "gpioSwitchRpi",
|
|
"deviceIcon": "Switch",
|
|
"basicTags": [
|
|
"Device",
|
|
"Actuator"
|
|
],
|
|
"createMethods": ["discovery"],
|
|
"paramTypes": [
|
|
{
|
|
"id": "9eda783f-6d9f-4d39-986d-d2cbfff5a7dd",
|
|
"idName": "gpio",
|
|
"name": "GPIO",
|
|
"type": "int",
|
|
"index": 0,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "2204d278-7bc7-407f-ac82-ce3ae1d5779c",
|
|
"idName": "pin",
|
|
"name": "Pin number",
|
|
"type": "int",
|
|
"index": 1,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "504798eb-1faa-4703-a57a-2778e4bf9a67",
|
|
"idName": "description",
|
|
"name": "Description",
|
|
"type": "QString",
|
|
"index": 2,
|
|
"defaultValue": "-"
|
|
}
|
|
],
|
|
"stateTypes": [
|
|
{
|
|
"id": "06843766-358e-44b0-8d52-2b46ef98459a",
|
|
"idName": "powerValue",
|
|
"name": "Power",
|
|
"index": 0,
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"writable": true,
|
|
"eventTypeName": "Power changed",
|
|
"actionTypeName": "Set power"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6aff228b-0410-4ef9-9593-51e8639aacea",
|
|
"name": "GPIO Button",
|
|
"idName": "gpioButtonRpi",
|
|
"deviceIcon": "Power",
|
|
"basicTags": [
|
|
"Device",
|
|
"Sensor"
|
|
],
|
|
"createMethods": ["discovery"],
|
|
"paramTypes": [
|
|
{
|
|
"id": "9eda783f-6d9f-4d39-986d-d2cbfff5a7dd",
|
|
"idName": "gpio",
|
|
"name": "GPIO",
|
|
"type": "int",
|
|
"index": 0,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "2204d278-7bc7-407f-ac82-ce3ae1d5779c",
|
|
"idName": "pin",
|
|
"name": "Pin number",
|
|
"type": "int",
|
|
"index": 1,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "504798eb-1faa-4703-a57a-2778e4bf9a67",
|
|
"idName": "description",
|
|
"name": "Description",
|
|
"type": "QString",
|
|
"index": 2,
|
|
"defaultValue": "-"
|
|
}
|
|
],
|
|
"stateTypes": [
|
|
{
|
|
"id": "57f1b7cc-26c8-434b-ba04-d3077dc886c8",
|
|
"idName": "pressed",
|
|
"name": "Pressed",
|
|
"index": 0,
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"eventTypeName": "Pressed changed"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Beaglebone Black",
|
|
"idName": "beagleboneBlack",
|
|
"id": "7835d14b-b455-49bd-9f31-72c6e8c3033d",
|
|
"deviceClasses": [
|
|
{
|
|
"id": "75d54a59-f9b0-4bc4-a86c-6b1fc47e0663",
|
|
"name": "GPIO Switch",
|
|
"idName": "gpioSwitchBbb",
|
|
"deviceIcon": "Switch",
|
|
"basicTags": [
|
|
"Device",
|
|
"Actuator"
|
|
],
|
|
"createMethods": ["discovery"],
|
|
"paramTypes": [
|
|
{
|
|
"id": "9eda783f-6d9f-4d39-986d-d2cbfff5a7dd",
|
|
"idName": "gpio",
|
|
"name": "GPIO",
|
|
"type": "int",
|
|
"index": 0,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "2204d278-7bc7-407f-ac82-ce3ae1d5779c",
|
|
"idName": "pin",
|
|
"name": "Pin number",
|
|
"type": "int",
|
|
"index": 1,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "504798eb-1faa-4703-a57a-2778e4bf9a67",
|
|
"idName": "description",
|
|
"name": "Description",
|
|
"type": "QString",
|
|
"index": 2,
|
|
"defaultValue": "-"
|
|
}
|
|
],
|
|
"stateTypes": [
|
|
{
|
|
"id": "06843766-358e-44b0-8d52-2b46ef98459a",
|
|
"idName": "powerValue",
|
|
"name": "Power",
|
|
"index": 0,
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"writable": true,
|
|
"eventTypeName": "Power changed",
|
|
"actionTypeName": "Set power"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ffd2aa29-55cc-4824-ba95-c311784f7824",
|
|
"name": "GPIO Button",
|
|
"idName": "gpioButtonBbb",
|
|
"deviceIcon": "Power",
|
|
"basicTags": [
|
|
"Device",
|
|
"Sensor"
|
|
],
|
|
"createMethods": ["discovery"],
|
|
"paramTypes": [
|
|
{
|
|
"id": "9eda783f-6d9f-4d39-986d-d2cbfff5a7dd",
|
|
"idName": "gpio",
|
|
"name": "GPIO",
|
|
"type": "int",
|
|
"index": 0,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "2204d278-7bc7-407f-ac82-ce3ae1d5779c",
|
|
"idName": "pin",
|
|
"name": "Pin number",
|
|
"type": "int",
|
|
"index": 1,
|
|
"defaultValue": -1
|
|
},
|
|
{
|
|
"id": "504798eb-1faa-4703-a57a-2778e4bf9a67",
|
|
"idName": "description",
|
|
"name": "Description",
|
|
"type": "QString",
|
|
"index": 2,
|
|
"defaultValue": "-"
|
|
}
|
|
],
|
|
"stateTypes": [
|
|
{
|
|
"id": "57f1b7cc-26c8-434b-ba04-d3077dc886c8",
|
|
"idName": "pressed",
|
|
"name": "Pressed",
|
|
"index": 0,
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"eventTypeName": "Pressed changed"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|