iobroker.openmediavault
Version:
136 lines • 4.56 kB
JSON
{
"label": "S.M.A.R.T Information",
"items": {
"donation_link": {
"type": "staticLink",
"text": "You like the adapter? Then support me.",
"button": true,
"newLine": true,
"href": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWAXSTS634G88&source=url",
"style": {
"justifyContent": "flex-start !important"
},
"xs": 12,
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12
},
"smartDivider": {
"newLine": true,
"type": "header",
"text": "S.M.A.R.T Information",
"size": 2
},
"smartEnabled": {
"newLine": true,
"type": "checkbox",
"label": "enabled",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"smartBlackListDivider": {
"newLine": true,
"type": "header",
"text": "S.M.A.R.T Blacklist / Whitelist",
"hidden": "!data.smartEnabled",
"size": 2
},
"smartIsWhiteList": {
"newLine": true,
"type": "checkbox",
"label": "${data.smartIsWhiteList ? 'use as whitelist' : 'use as blacklist'}",
"hidden": "!data.smartEnabled",
"xl": 2,
"lg": 2,
"md": 2,
"sm": 12,
"xs": 12
},
"smartBlackList": {
"type": "table",
"xl": 8,
"lg": 8,
"md": 8,
"sm": 12,
"xs": 12,
"hidden": "!data.smartEnabled",
"uniqueColumns": [
"id"
],
"confirm": {
"condition": "!_alive",
"title": "Attention!",
"text": "This selection is only possible with a running instance!",
"ok": "Got it!",
"cancel": "cancel",
"type": "warning"
},
"items": [
{
"type": "autocompleteSendTo",
"title": "${data.smartIsWhiteList ? 'Choose which S.M.A.R.T should be included' : 'Choose which S.M.A.R.T should be excluded'}",
"attr": "id",
"filter": true,
"sort": true,
"noMultiEdit": true,
"jsonData": "${instanceObj}",
"command": "smartBlackList"
}
]
},
"smartBlackListStatesDivider": {
"newLine": true,
"type": "header",
"text": "Datapoints Blacklist / Whitelist",
"hidden": "!data.smartEnabled",
"size": 2
},
"smartStatesIsWhiteList": {
"newLine": true,
"type": "checkbox",
"label": "${data.smartStatesIsWhiteList ? 'use as whitelist' : 'use as blacklist'}",
"hidden": "!data.smartEnabled",
"xl": 2,
"lg": 2,
"md": 2,
"sm": 12,
"xs": 12
},
"smartStatesBlackList": {
"type": "table",
"xl": 8,
"lg": 8,
"md": 8,
"sm": 12,
"xs": 12,
"hidden": "!data.smartEnabled",
"uniqueColumns": [
"id"
],
"confirm": {
"condition": "!_alive",
"title": "Attention!",
"text": "This selection is only possible with a running instance!",
"ok": "Got it!",
"cancel": "cancel",
"type": "warning"
},
"items": [
{
"type": "autocompleteSendTo",
"title": "${data.smartStatesIsWhiteList ? 'Choose which datapoint should be included' : 'Choose which datapoint should be excluded'}",
"attr": "id",
"filter": true,
"sort": true,
"noMultiEdit": true,
"jsonData": "{\"instanceID\": \"${globalData.instanceID}\",\"adapter\": \"${globalData.adapter}\"}",
"command": "smartStateList"
}
]
}
}
}