iobroker.pjlink
Version:
PJLink Projector controll
580 lines • 21 kB
JSON
{
"i18n": true,
"type": "tabs",
"items": {
"_options": {
"type": "panel",
"label": "lblOptions",
"items": {
"host": {
"type": "text",
"maxLength": 255,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblHost",
"help": "hlpHost"
},
"port": {
"type": "number",
"min": 1,
"max": 65565,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblPort",
"help": "hlpPort"
},
"password": {
"type": "password",
"maxLength": 32,
"visible": false,
"repeat": false,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblPassword",
"help": "hlpPassword",
"newLine": true
},
"class": {
"type": "select",
"options": [
{
"label": "Class 1",
"value": 1
},
{
"label": "Class 1 & 2",
"value": 2
}
],
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblClass",
"help": "hlpClass",
"disabled": "true"
},
"socketTimeout": {
"type": "number",
"min": 0,
"max": 10000,
"step": 10,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblSocketTimeout",
"help": "hlpSocketTimeout"
},
"reconnectDelay": {
"type": "number",
"min": 10000,
"max": 3600000,
"step": 1000,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblReconnectDelay",
"help": "hlpReconnectDelay"
},
"statusDelay": {
"type": "number",
"min": 100,
"max": 60000,
"step": 100,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblStatusDelay",
"help": "hlpStatusDelay",
"newLine": true
},
"informationDelay": {
"type": "number",
"min": 1000,
"max": 36000000,
"step": 100,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblInformationDelay",
"help": "hlpInformationDelay",
"tooltip": "ttpInformationDelay",
"validator": "(data.informationDelay % data.statusDelay) === 0",
"validatorErrorText": "ttpInformationDelay",
"validatorNoSaveOnError": true
},
"skippedCyclesAfterPowerOn": {
"type": "number",
"min": 0,
"max": 100,
"step": 1,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblSkippedCyclesAfterPowerOn",
"help": "hlpSkippedCyclesAfterPowerOn",
"newLine": true
},
"_divider01": {
"type": "divider"
},
"connectionCheckMethod": {
"type": "select",
"options": [
{ "label": "lblOff", "value": 0 },
{ "label": "lblTcpPing", "value": 1 }
],
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblConnectionCheckMethod"
},
"tcpPingPort": {
"type": "number",
"disabled": "data.connectionCheckMethod < 1",
"min": 1,
"max": 65565,
"xs": 12,
"sm": 6,
"md": 6,
"lg": 3,
"xl": 3,
"label": "lblTcpPort",
"help": "hlpTcpPort",
"onChange": {
"alsoDependsOn": ["port"],
"calculateFunc": "data.port",
"ignoreOwnChanges": true
}
},
"checkTimeout": {
"type": "number",
"disabled": "data.connectionCheckMethod < 1",
"min": 0,
"max": 10000,
"step": 100,
"xs": 12,
"sm": 6,
"md": 6,
"lg": 3,
"xl": 3,
"label": "lblCheckTimeout",
"help": "hlpCheckTimeout"
}
}
},
"_exten": {
"type": "panel",
"label": "lblExtended",
"items": {
"_queryType": {
"type": "staticText",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"label": "lblQueryType",
"style": {"fontSize": 20}
},
"queryTypeCLSS": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeCLSS"
},
"queryTypePOWR": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypePWR",
"newLine": true
},
"queryTypeINPT": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeINPT",
"newLine": true
},
"queryOnlyPwrINPT": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeAVMT": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeAVMT"
},
"queryOnlyPwrAVMT": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeERST": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeERST"
},
"queryOnlyPwrERST": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeLAMP": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeLAMP"
},
"queryOnlyPwrLAMP": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeINST": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeINST"
},
"queryOnlyPwrINST": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeNAME": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeNAME"
},
"queryOnlyPwrNAME": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeINF1": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeINF1"
},
"queryOnlyPwrINF1": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeINF2": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeINF2"
},
"queryOnlyPwrINF2": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
},
"queryTypeINFO": {
"type": "select",
"options": [
{ "label": "lblNever", "value": 0 },
{ "label": "lblOnlyOnStartup", "value": 1 },
{ "label": "lblOnStatusPoll", "value": 2 },
{ "label": "lblOnInformationPoll", "value": 3 }
],
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryTypeINFO"
},
"queryOnlyPwrINFO": {
"type": "checkbox",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 6,
"xl": 6,
"label": "lblQueryOnlyPwrOn"
}
}
},
"_inputs": {
"type": "panel",
"label": "lblInputs",
"disabled": "false",
"items": {
"_customizeInputs": {
"type": "staticText",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"label": "lblCustomizeInputs",
"style": {"fontSize": 20}
},
"_divider01": {
"type": "divider"
},
"_updateInputInfo": {
"type": "sendTo",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"newLine": true,
"label": "lblUpdateInputInfo",
"style": {"fontSize": 20},
"command": "updateInputs",
"variant": "outlined",
"icon": "info",
"showProcess": true,
"confirm": {
"condition": "1==1",
"text": "wrnOverwriteInputInfo",
"type": "warning"
}
},
"_divider02": {
"type": "divider"
},
"inputInfo": {
"type": "table",
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"items": [
{
"type": "select",
"options": [{"label": "RGB", "value": 1},{"label": "VIDEO", "value": 2},{"label": "DIGITAL", "value": 3},{"label": "STORAGE", "value": 4},{"label": "NETWORK", "value": 5}],
"disabled": "1==1",
"width": "20%",
"title": "Source",
"attr": "source",
"filter": false,
"sort": false
},
{
"type": "number",
"min": 1, "max": 9, "step": 1,
"disabled": "1==1",
"width": "20%",
"title": "Channel",
"attr": "channel"
},
{
"type": "text",
"disabled": "1==1",
"width": "20%",
"title": "Code",
"attr": "code"
},
{
"type": "text",
"width": "40%",
"title": "Name",
"trim": false,
"attr": "name"
}
],
"noDelete": true
},
"_divider03": {
"type": "divider"
},
"_setInstanceInput": {
"type": "sendTo",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblSetInstanceInput",
"style": {"fontSize": 20},
"command": "setInstanceInputs",
"variant": "outlined",
"icon": "send",
"showProcess": true,
"confirm": {
"condition": "1==1",
"text": "wrnSetInstanceInput",
"type": "warning"
}
},
"_resetInstanceInput": {
"type": "sendTo",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6,
"label": "lblResetInstanceInput",
"style": {"fontSize": 20},
"command": "resetInstanceInputs",
"variant": "contained",
"icon": "send",
"showProcess": true,
"confirm": {
"condition": "1==1",
"text": "wrnResetInstanceInput",
"type": "warning"
}
}
}
}
}
}