This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/plugins/deviceplugins/kodi/devicepluginkodi.json
Michael Zanetti 45caf66851 initial work on interfaces
have some interfaces defined and in use by DeviceManager and the API.
this can be used to build first prototypes in apps using the interfaces
stuff. Currently the lights interfaces are mostly defined and fully
implemented by the Hue plugin.

TODO: more interfaces to be defined, make more plugins follow
interfaces.
TODO: tests for the interface code
TODO: docs for the interface code
2019-04-02 01:02:45 +02:00

254 lines
11 KiB
JSON

{
"id": "e7186890-99fa-4c5b-8247-09c6d450d490",
"name": "Kodi",
"idName": "Kodi",
"vendors": [
{
"id": "447bf3d6-a86e-4636-9db0-8936c0e4d9e9",
"name": "Kodi",
"idName": "kodi",
"deviceClasses": [
{
"id": "d09953e3-c5bd-415b-973b-0d0bf2be3f69",
"idName": "kodi",
"name": "Kodi",
"deviceIcon": "Tv",
"interfaces": ["mediacontroller"],
"basicTags": [
"Service",
"Multimedia",
"Actuator"
],
"createMethods": ["user", "discovery"],
"criticalStateTypeId": "09dfbd40-c97c-4a20-9ecd-f80e389a4864",
"paramTypes": [
{
"id": "a704beb1-b0b0-46fc-91fc-3aac01e1a364",
"idName": "name",
"name": "name",
"type": "QString",
"index": 0,
"inputType": "TextLine"
},
{
"id": "1a897065-57c6-49b3-bac9-1e5db27859e5",
"idName": "ip",
"name": "ip",
"type" : "QString",
"index": 1,
"inputType": "IPv4Address"
},
{
"id": "660fb4d7-9479-4c9d-a900-ce221d2b8ae4",
"idName": "port",
"name": "port",
"index": 2,
"type" : "int"
}
],
"stateTypes": [
{
"id": "09dfbd40-c97c-4a20-9ecd-f80e389a4864",
"idName": "connected",
"name": "connected",
"eventTypeName": "connected changed",
"index": 0,
"defaultValue": false,
"type": "bool"
},
{
"id": "bc98cdb0-4d0e-48ca-afc7-922e49bb7813",
"idName": "mute",
"name": "mute",
"eventTypeName": "mute changed",
"actionTypeName": "Set mute",
"index": 1,
"type": "bool",
"defaultValue": true,
"ruleRelevant": false,
"eventRuleRelevant": false,
"writable": true
},
{
"id": "9dfe5d78-4c3f-497c-bab1-bb9fdf7e93a9",
"idName": "volume",
"name": "volume",
"eventTypeName": "volume changed",
"actionTypeName": "Set volume",
"unit": "Percentage",
"type": "int",
"index": 2,
"minValue": 0,
"maxValue": 100,
"ruleRelevant": false,
"eventRuleRelevant": false,
"defaultValue": 50,
"writable": true
}
],
"eventTypes": [
{
"id": "2535a1eb-7643-4874-98f6-b027fdff6311",
"idName": "onPlayerPlay",
"index": 0,
"name": "player play"
},
{
"id": "99498b1c-e9c0-480a-9e91-662ee79ba976",
"idName": "onPlayerPause",
"index": 1,
"name": "player pause"
},
{
"id": "a02ce255-3abb-435d-a92e-7f99c952ecb2",
"idName": "onPlayerStop",
"index": 2,
"name": "player stop"
}
],
"actionTypes": [
{
"id": "dc0aa3b5-4eae-4e58-a4ac-d4c124da53f1",
"idName": "showNotification",
"name": "show notification",
"index": 0,
"paramTypes": [
{
"id": "798f720a-cc4f-40e7-91d7-2ef5957ca7ad",
"idName": "message",
"name": "message",
"type": "QString",
"index": 0,
"inputType": "TextLine"
},
{
"id": "86df6a45-ee8a-4e1f-94e2-4081e14eb557",
"idName": "type",
"name": "type",
"type": "QString",
"index": 1,
"defaultValue": "info",
"allowedValues": [
"info",
"warning",
"error"
]
}
]
},
{
"id": "28060803-aa85-44a4-9dec-ee669dfb629f",
"idName": "pressButton",
"name": "press button",
"index": 1,
"paramTypes": [
{
"id": "93861dac-0c24-4a3b-903d-d1be44eae611",
"idName": "button",
"name": "button",
"type": "QString",
"index": 0,
"allowedValues": [
"left",
"right",
"up",
"down",
"pageup",
"pagedown",
"select",
"back",
"info",
"pause",
"stop",
"skipnext",
"skipprevious",
"stepforward",
"stepback",
"osd",
"play",
"playpause",
"fastforward",
"rewind",
"fullscreen",
"mute",
"volumeup",
"volumedown",
"channelup",
"channeldown",
"red",
"green",
"yellow",
"blue"
]
}
]
},
{
"id": "8d51cd64-ecef-44f8-85b0-697bef252ce5",
"idName": "system",
"name": "system",
"index": 2,
"paramTypes": [
{
"id": "8f3413fb-018e-40d6-903c-c8a915a6f498",
"idName": "systemCommand",
"name": "command",
"type": "QString",
"index": 0,
"defaultValue": "shutdown",
"allowedValues": [
"hibernate",
"reboot",
"shutdown",
"suspend"
]
}
]
},
{
"id": "59f7ad10-16eb-40b7-a88b-c8393ae8e413",
"idName": "videoLibrary",
"name": "video library",
"index": 3,
"paramTypes": [
{
"id": "3219855b-e043-43aa-91ae-794b474379bf",
"idName": "videoCommand",
"name": "command",
"type": "QString",
"index": 0,
"defaultValue": "scan",
"allowedValues": [
"scan",
"clean"
]
}
]
},
{
"id": "3d5120eb-1007-46c3-b76e-d9d4b105b9f2",
"idName": "audioLibrary",
"name": "audio library",
"index": 4,
"paramTypes": [
{
"id": "ba89d098-56d7-40a2-b499-c02499c1ec0c",
"idName": "audioCommand",
"name": "command",
"type": "QString",
"index": 0,
"defaultValue": "scan",
"allowedValues": [
"scan",
"clean"
]
}
]
}
]
}
]
}
]
}