iobroker.dysonairpurifier
Version:
dyson air purifiers and fans
251 lines (250 loc) • 6.15 kB
JSON
{
"i18n": true,
"type": "panel",
"items": {
"testAlive": {
"newLine": true,
"type": "alive",
"label": "",
"textAlive": "",
"textNotAlive": "Lbl_UpAndRunning",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"_basicSection": {
"newLine": true,
"type": "header",
"text": "Settings",
"size": 2,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"email": {
"newLine": true,
"type": "text",
"label": "Lbl_email",
"tooltip": "email_desc",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"Password": {
"type": "password",
"label": "Lbl_Password",
"tooltip": "password_desc",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"country": {
"newLine": true,
"type": "select",
"label": "Lbl_country",
"default": "de",
"tooltip": "country_desc",
"options": [
{ "label": "Germany", "value": "DE" },
{ "label": "Switzerland", "value": "CH" },
{ "label": "Austria", "value": "AT" },
{ "label": "Belgium", "value": "BE" },
{ "label": "Netherlands", "value": "NL" },
{ "label": "Poland", "value": "PL" },
{ "label": "France", "value": "FR" },
{ "label": "United Kingdom", "value": "GK" },
{ "label": "Ireland", "value": "IE" },
{ "label": "Canada", "value": "CA" },
{ "label": "USA", "value": "US" },
{ "label": "Russia", "value": "RU" },
{ "label": "China", "value": "CN" }
],
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"temperatureUnit": {
"type": "select",
"label": "temperatureUnit",
"default": "de",
"tooltip": "temperatureUnit_desc",
"options": [
{ "label": { "en": "Celsius" }, "value": "C" },
{ "label": { "en": "Fahrenheit" }, "value": "F" },
{ "label": { "en": "Kelvin" }, "value": "K" }
],
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"pollInterval": {
"type": "number",
"label": "Poll_Interval",
"tooltip": "Poll_Interval_desc",
"min": 0,
"max": 10000,
"default": 30,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"keepValues": {
"newLine": true,
"type": "checkbox",
"label": "keepValues",
"tooltip": "keepValues_desc",
"default": false,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"disableReconnectLogging": {
"type": "checkbox",
"label": "disableReconnectLogging",
"tooltip": "disableReconnectLogging_desc",
"default": false,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"_2FactorSection": {
"newLine": true,
"type": "header",
"text": "Lbl_2FA",
"tooltip": "desc_2FA",
"size": 2,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"token_received": {
"type": "checkbox",
"label": "token_received",
"tooltip": "token_received_desc",
"defaultFunc": "data.token_received=(data.token.length > 0)",
"disabled": "true",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"getDyson2faMail": {
"newLine": true,
"type": "sendTo",
"label": "Start 2FA Process",
"variant": "outlined",
"showProcess": true,
"command": "getDyson2faMail",
"jsonData": "{ \"email\": \"${data.email}\", \"password\": \"${data.Password}\" , \"country\": \"${data.country}\", \"locale\": \"${data.locale}\"}",
"useNative": true,
"tooltip": "Start the 2FA Process and get the One-Time-Password eMail.",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"getDysonToken": {
"type": "sendTo",
"label": "Finish 2FA Process",
"variant": "outlined",
"showProcess": true,
"command": "getDysonToken",
"jsonData": "{ \"email\": \"${data.email}\", \"password\": \"${data.Password}\" , \"country\": \"${data.country}\", \"challengeId\": \"${data.challengeId}\", \"PIN\": \"${data.dyson_code}\"}",
"useNative": true,
"tooltip": "finish_desc",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"challengeId": {
"newLine": true,
"type": "text",
"label": "Lbl_ChallengeId",
"tooltip": "challengeId_desc",
"default": "",
"doNotSave": true,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"dyson_code": {
"type": "text",
"label": "Lbl_dyson_code",
"tooltip": "dyson_code_desc",
"doNotSave": true,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"token": {
"type": "password",
"label": "Token",
"tooltip": "token_desc",
"disabled": "true",
"hidden": "true",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"_donateSection": {
"newLine": true,
"type": "header",
"text": "Lbl_Donation",
"tooltip": "donation",
"size": 2,
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"donationHelp": {
"newLine": true,
"type": "staticText",
"text": "donation",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"donateButton": {
"type": "staticImage",
"src": "adapter/dysonairpurifier/admin/paypal-donate-button.png",
"href": "https://www.paypal.com/donate/?hosted_button_id=SPUDTXGNG2MYG",
"style": {
"maxWidth": 194
}
}
}
}