iobroker.nspanel-lovelace-ui
Version:
NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of Lovelace UI Design.
1,958 lines (1,955 loc) • 172 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var config_exports = {};
__export(config_exports, {
Testconfig: () => Testconfig,
pageMediaTest: () => pageMediaTest,
pageMediaTest2: () => pageMediaTest2,
popupTest: () => popupTest,
popupTest2: () => popupTest2,
testCaseConfig: () => testCaseConfig
});
module.exports = __toCommonJS(config_exports);
var import_Color = require("./const/Color");
const pageEntitiesTest1 = {
//type: 'sonstiges',
//card: 'cardEntities',
dpInit: "",
alwaysOn: "none",
uniqueID: "entities1",
useColor: false,
config: {
card: "cardEntities",
data: {
headline: {
type: "const",
constVal: "entities1"
}
}
},
pageItems: [
{
role: "text.list",
type: "number",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.activated }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.deactivated }
}
},
entity1: {
value: {
type: "triggered",
dp: "0_userdata.0.dimmer"
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: {
type: "const",
constVal: "Number"
},
false: void 0
}
}
},
{
template: "button.service.adapter.noconnection",
dpInit: ""
},
{
template: "button.service.adapter.stopped",
dpInit: ""
},
{
role: "rgbSingle",
type: "light",
dpInit: "",
data: {
color: {
true: { type: "triggered", dp: "0_userdata.0.RGB" },
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "lightbulb" },
color: { type: "const", constVal: import_Color.Color.Yellow }
},
false: {
value: { type: "const", constVal: "lightbulb-outline" },
color: { type: "const", constVal: import_Color.Color.HMIOff }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
colorMode: { type: "const", constVal: true },
dimmer: {
value: {
type: "triggered",
dp: "0_userdata.0.dimmer"
}
},
entity1: {
// button
value: { type: "triggered", dp: "0_userdata.0.example_state" },
decimal: void 0,
factor: void 0,
unit: void 0
},
entityInSel: void 0,
text1: {
true: {
type: "const",
constVal: "Licht"
},
false: void 0
},
text2: {
true: {
type: "const",
constVal: "Picker1"
},
false: void 0
},
text3: {
true: {
type: "const",
constVal: "Picker2"
},
false: void 0
},
ct: {
value: {
type: "triggered",
dp: "0_userdata.0.ct"
}
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "home?butter" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "fan",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Blue }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
speed: {
value: {
type: "const",
constVal: 1e3
},
factor: void 0,
maxScale: {
type: "const",
constVal: 3e3
}
},
headline: {
type: "const",
constVal: "Football-Fan"
},
text: {
true: {
type: "const",
constVal: "Details"
},
false: void 0
},
entityInSel: { value: { type: "const", constVal: "2" } },
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "1?2?3?4" }
}
},
{
role: "text.list",
type: "number",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.Blue }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "triggered",
dp: "0_userdata.0.dimmer"
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: {
type: "const",
constVal: "Number"
},
false: void 0
}
}
},
{
template: "generic.shutter",
dpInit: "0_userdata.0.shutter_test",
data: {
icon: {
true: {
value: { type: "const", constVal: "window-open" },
color: { type: "const", constVal: "aqua", role: "level.color.name" }
},
false: null
}
}
},
{
role: "rgbSingle",
type: "light",
dpInit: "",
data: {
color: {
true: { type: "triggered", dp: "0_userdata.0.RGB" },
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "lightbulb" },
color: { type: "const", constVal: import_Color.Color.Yellow }
},
false: {
value: { type: "const", constVal: "lightbulb-outline" },
color: { type: "const", constVal: import_Color.Color.HMIOff }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
colorMode: { type: "const", constVal: true },
dimmer: {
value: {
type: "triggered",
dp: "0_userdata.0.dimmer"
}
},
entity1: {
// button
value: { type: "triggered", dp: "0_userdata.0.example_state" },
decimal: void 0,
factor: void 0,
unit: void 0
},
entityInSel: void 0,
text1: {
true: {
type: "const",
constVal: "Licht"
},
false: void 0
},
text2: {
true: {
type: "const",
constVal: "Picker1"
},
false: void 0
},
text3: {
true: {
type: "const",
constVal: "Picker2"
},
false: void 0
},
ct: {
value: {
type: "triggered",
dp: "0_userdata.0.ct"
}
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "home?butter" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "fan",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Blue }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
speed: {
value: {
type: "const",
constVal: 1e3
},
factor: void 0,
maxScale: {
type: "const",
constVal: 3e3
}
},
headline: {
type: "const",
constVal: "Football-Fan"
},
text: {
true: {
type: "const",
constVal: "Details"
},
false: void 0
},
entityInSel: { value: { type: "const", constVal: "2" } },
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "1?2?3?4" }
}
}
],
items: void 0
};
const popupTest2 = {
//card: 'popupNotify',
dpInit: "",
alwaysOn: "none",
uniqueID: "popup2",
useColor: false,
config: {
card: "popupNotify",
data: {
entity1: { value: { type: "state", dp: "0_userdata.0.example_state" } },
headline: { type: "const", constVal: "welcomeHToken" },
colorHeadline: { true: { color: { type: "const", constVal: import_Color.Color.White } } },
buttonLeft: { type: "const", constVal: "" },
colorButtonLeft: { true: { color: { type: "const", constVal: import_Color.Color.White } } },
buttonRight: { type: "const", constVal: "" },
colorButtonRight: { true: { color: { type: "const", constVal: import_Color.Color.White } } },
text: { type: "const", constVal: "Text Test ${pl}" },
colorText: { true: { color: { type: "const", constVal: import_Color.Color.White } } },
timeout: { type: "const", constVal: 0 },
// {placeholder: {text: '' oder dp: ''}}
optionalValue: { type: "const", constVal: { pl: { text: "das ist ein placeholder" } } },
setValue1: { type: "const", constVal: true }
}
},
pageItems: [],
items: void 0
};
const pageEntitiesTest3 = {
//card: 'cardEntities',
dpInit: "",
alwaysOn: "none",
uniqueID: "entities3",
config: {
card: "cardEntities",
cardRole: "AdapterConnection",
scrollType: "page",
filterType: "true",
data: {
headline: {
type: "const",
constVal: "Adapter Offline"
}
}
},
pageItems: [
/*
{
role: 'timer',
type: 'timer',
dpInit: '',
data: {
icon: {
true: {
value: { type: 'const', constVal: 'timer' },
color: { type: 'const', constVal: Color.Red },
},
false: {
value: undefined,
color: { type: 'const', constVal: Color.Green },
},
scale: undefined,
maxBri: undefined,
minBri: undefined,
},
entity1: {
value: {
type: 'const',
constVal: true,
},
decimal: undefined,
factor: undefined,
unit: undefined,
},
headline: { type: 'const', constVal: 'Timer' },
setValue1: { type: 'state', dp: '0_userdata.0.example_state' },
},
},
{
role: 'rgbSingle',
type: 'light',
dpInit: '0_userdata.0.shelly.0.SHRGBW2#258794#1',
template: 'light.shelly.rgbw2',
},
{
type: 'shutter',
dpInit: '0_userdata.0.shelly.0.SHSW-25#C45BBE5FC53F#1',
template: 'shutter.shelly.2PM',
},
{
dpInit: 'bydhvs',
template: 'text.battery.bydhvs',
},
*/
],
items: void 0
};
const pageEntitiesTest2 = {
//type: 'sonstiges',
//card: 'cardEntities',
dpInit: "",
alwaysOn: "none",
uniqueID: "entities2",
useColor: false,
config: {
card: "cardEntities",
data: {
headline: {
type: "const",
constVal: "entities2"
}
}
},
pageItems: [
{
role: "text.list",
type: "button",
template: "button.iconLeftSize",
dpInit: ""
},
{
role: "text.list",
type: "button",
template: "button.iconRightSize",
dpInit: ""
},
{
role: "",
type: "number",
data: {
entity1: {
value: { type: "internal", dp: "cmd/screenSaverTimeout" },
minScale: { type: "const", constVal: 0 },
maxScale: { type: "const", constVal: 90 }
},
icon: {
true: {
value: { type: "const", constVal: "clock-time-twelve-outline" },
color: { type: "const", constVal: import_Color.Color.White }
},
false: void 0
},
text: { true: { type: "const", constVal: "screenSaverTimeout" }, false: void 0 }
}
}
],
items: void 0
};
const pagePowerTest1 = {
//type: 'sonstiges',
//card: 'cardPower',
dpInit: "",
alwaysOn: "none",
uniqueID: "power1",
useColor: false,
pageItems: [],
config: {
card: "cardPower",
index: 0,
data: {
headline: { type: "const", constVal: "headline" },
homeValueTop: {
value: { type: "const", constVal: "top" }
},
homeValueBot: {
value: { type: "internal", dp: "///power1/powerSum" },
math: { type: "const", constVal: "return r1+r2+r3+l1+l2+l3 -999" }
},
leftTop: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 1e3 }
}
},
leftMiddle: {
icon: {
true: {
value: { type: "const", constVal: "arrow-left" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 2 }
}
},
leftBottom: {
icon: {
true: {
value: { type: "const", constVal: "arrow-down" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 3 }
}
},
rightTop: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 4 }
}
},
rightMiddle: {
icon: {
true: {
value: { type: "const", constVal: "arrow-right" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 5 }
}
},
rightBottom: {
icon: {
true: {
value: { type: "const", constVal: "arrow-down" },
color: void 0
},
false: {
value: void 0,
color: void 0
}
},
value: {
value: { type: "const", constVal: 6 }
}
},
homeIcon: void 0
}
},
items: void 0
};
const pageMediaTest = {
//type: 'sonstiges',
//card: 'cardMedia',
dpInit: "alexa2.0.Echo-Devices.G091EV0704641J8R.Player",
alwaysOn: "none",
config: {
card: "cardMedia",
data: {
headline: {
type: "const",
constVal: "home"
},
alwaysOnDisplay: {
type: "const",
constVal: "test"
},
album: {
mode: "auto",
type: "state",
role: "media.album",
dp: ""
},
title: {
on: {
type: "const",
constVal: true
},
text: {
type: "triggered",
dp: "0_userdata.0.spotify-premium.0.player.playlist.trackNo"
},
color: {
type: "const",
constVal: { r: 250, g: 2, b: 3 }
}
},
duration: {
mode: "auto",
type: "state",
role: "media.duration",
dp: ""
},
elapsed: {
mode: "auto",
type: "triggered",
role: ["media.elapsed", "media.elapsed.text"],
dp: ""
},
volume: {
value: {
mode: "auto",
type: "state",
role: ["level.volume"],
scale: { min: 0, max: 100 },
dp: ""
},
set: {
mode: "auto",
type: "state",
role: ["level.volume"],
scale: { min: 0, max: 100 },
dp: ""
}
},
artist: {
on: {
type: "const",
constVal: true
},
text: {
mode: "auto",
type: "state",
role: "media.artist",
dp: ""
},
color: void 0,
icon: {
type: "const",
constVal: "diameter"
},
list: void 0
},
shuffle: {
value: {
mode: "auto",
type: "state",
role: "media.mode.shuffle",
dp: ""
},
set: {
mode: "auto",
type: "state",
role: "media.mode.shuffle",
dp: ""
}
},
icon: {
type: "const",
constVal: "dialpad"
},
play: {
mode: "auto",
type: "state",
role: ["button.play"],
dp: ""
},
mediaState: {
mode: "auto",
type: "triggered",
role: ["media.state"],
dp: ""
},
stop: {
mode: "auto",
type: "state",
role: ["button.stop"],
dp: ""
},
pause: {
mode: "auto",
type: "state",
role: "button.pause",
dp: ""
},
forward: {
mode: "auto",
type: "state",
role: "button.next",
dp: ""
},
backward: {
mode: "auto",
type: "state",
role: "button.prev",
dp: ""
},
logo: {
on: {
type: "const",
constVal: true
},
text: { type: "const", constVal: "1" },
icon: { type: "const", constVal: "home" },
color: { type: "const", constVal: { r: 250, b: 250, g: 0 } },
list: void 0,
action: "cross"
}
}
},
items: void 0,
pageItems: [
{
role: "spotify-playlist",
type: "input_sel",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entityInSel: {
value: {
type: "triggered",
dp: "0_userdata.0.spotify-premium.0.player.playlist.trackNo"
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "state", dp: "0_userdata.0.spotify-premium.0.player.playlist.trackListArray" }
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
//setList: { type: 'const', constVal: '0_userdata.0.test?1|0_userdata.0.test?2' },
}
},
{
role: "text.list",
type: "input_sel",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entityInSel: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "home?butter" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
}
],
uniqueID: "media1",
useColor: false
};
const pageAbfall = {
//type: 'sonstiges',
card: "cardEntities",
dpInit: "0_userdata.0.Abfallkalender",
uniqueID: "abfall1",
template: "entities.waste-calendar"
};
const pageMediaTest2 = {
//type: 'sonstiges',
//card: 'cardMedia',
dpInit: "alexa2.0.Echo-Devices.G091EV0704641J8R.Player",
alwaysOn: "none",
config: {
card: "cardMedia",
data: {
headline: {
type: "const",
constVal: "home"
},
alwaysOnDisplay: {
type: "const",
constVal: "test"
},
album: {
mode: "auto",
type: "state",
role: "media.album",
dp: ""
},
title: {
on: {
type: "const",
constVal: true
},
text: {
mode: "auto",
type: "triggered",
role: "media.title",
dp: ""
},
color: {
type: "const",
constVal: { r: 250, g: 2, b: 3 }
}
},
duration: {
mode: "auto",
type: "state",
role: "media.duration",
dp: ""
},
elapsed: {
mode: "auto",
type: "triggered",
role: ["media.elapsed", "media.elapsed.text"],
dp: ""
},
volume: {
value: {
mode: "auto",
type: "state",
role: ["level.volume"],
scale: { min: 0, max: 100 },
dp: ""
},
set: {
mode: "auto",
type: "state",
role: ["level.volume"],
scale: { min: 0, max: 100 },
dp: ""
}
},
artist: {
on: {
type: "const",
constVal: true
},
text: {
mode: "auto",
type: "state",
role: "media.artist",
dp: ""
},
color: void 0,
icon: {
type: "const",
constVal: "diameter"
},
list: void 0
},
shuffle: {
value: {
mode: "auto",
type: "state",
role: "media.mode.shuffle",
dp: ""
},
set: {
mode: "auto",
type: "state",
role: "media.mode.shuffle",
dp: ""
}
},
icon: {
type: "const",
constVal: "dialpad"
},
play: {
mode: "auto",
type: "state",
role: ["button.play"],
dp: ""
},
mediaState: {
mode: "auto",
type: "triggered",
role: ["media.state"],
dp: ""
},
stop: {
mode: "auto",
type: "state",
role: ["button.stop"],
dp: ""
},
pause: {
mode: "auto",
type: "state",
role: "button.pause",
dp: ""
},
forward: {
mode: "auto",
type: "state",
role: "button.next",
dp: ""
},
backward: {
mode: "auto",
type: "state",
role: "button.prev",
dp: ""
},
logo: {
on: {
type: "const",
constVal: true
},
text: { type: "const", constVal: "1" },
icon: { type: "const", constVal: "home" },
color: { type: "const", constVal: { r: 250, b: 250, g: 0 } },
list: void 0,
action: "cross"
}
}
},
items: void 0,
pageItems: [
{
role: "spotify-playlist",
type: "input_sel",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entityInSel: {
value: {
type: "state",
dp: "0_userdata.0.spotify-premium.0.player.playlist.trackNo"
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "state", dp: "0_userdata.0.spotify-premium.0.player.playlist.trackListArray" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
}
}
}
],
uniqueID: "media2",
useColor: false
};
const pageMediaTest3 = {
//type: 'sonstiges',
template: "media.spotify-premium",
dpInit: "0_userdata.0.spotify-premium.0",
uniqueID: "media3",
card: "cardMedia"
};
const pageGridTest1 = {
//type: 'sonstiges',
//card: 'cardGrid',
dpInit: "",
alwaysOn: "none",
uniqueID: "grid1",
useColor: false,
config: {
card: "cardGrid",
data: {
headline: {
type: "const",
constVal: "grid1"
}
}
},
pageItems: [
{
role: "text.list",
type: "number",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.Blue }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: 23
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: {
type: "const",
constVal: "Number"
},
false: void 0
}
}
},
{
/**
* zu 100% geschlossen zu 0% geschlossen read und write mit jeweils 100-val benutzen um das zu 100% geöffnet zu ändern.
*/
role: "rgbSingle",
type: "shutter",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "window-shutter-open" },
color: { type: "const", constVal: import_Color.Color.Yellow }
},
false: {
value: { type: "const", constVal: "window-shutter" },
color: { type: "const", constVal: import_Color.Color.HMIOff }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
// 1. slider
entity1: {
// button
value: { mode: "auto", role: "level.blind", type: "triggered", dp: "" },
decimal: void 0,
factor: void 0,
unit: void 0,
minScale: { type: "const", constVal: 0 },
maxScale: { type: "const", constVal: 100 }
},
// 2. slider
entity2: {
// button
value: { mode: "auto", role: "level.tilt", type: "triggered", dp: "" },
decimal: void 0,
factor: void 0,
unit: void 0,
minScale: { type: "const", constVal: 0 },
maxScale: { type: "const", constVal: 100 }
},
text: {
true: {
type: "const",
constVal: "text"
},
false: void 0
},
headline: {
type: "const",
constVal: "Shutter"
},
text1: {
true: {
type: "const",
constVal: "text1"
},
false: void 0
},
text2: {
true: {
type: "const",
constVal: "text2"
},
false: void 0
},
up: {
type: "state",
dp: "",
mode: "auto",
role: ["button.open.blind", "button.open"]
},
down: {
type: "state",
dp: "",
mode: "auto",
role: ["button.close.blind", "button.close"]
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
//valueList: { type: 'const', constVal: 'home?butter' },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "rgbSingle",
type: "light",
dpInit: "",
data: {
color: {
true: { type: "triggered", dp: "0_userdata.0.RGB" },
false: void 0
},
icon: {
true: {
value: { type: "const", constVal: "lightbulb" },
color: { type: "const", constVal: import_Color.Color.Yellow }
},
false: {
value: { type: "const", constVal: "lightbulb-outline" },
color: { type: "const", constVal: import_Color.Color.HMIOff }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
colorMode: { type: "const", constVal: true },
dimmer: {
value: {
type: "triggered",
dp: "0_userdata.0.dimmer"
}
},
entity1: {
// button
value: { type: "triggered", dp: "0_userdata.0.example_state" },
decimal: void 0,
factor: void 0,
unit: void 0
},
entityInSel: void 0,
text1: {
true: {
type: "const",
constVal: "Licht"
},
false: void 0
},
text2: {
true: {
type: "const",
constVal: "Picker1"
},
false: void 0
},
text3: {
true: {
type: "const",
constVal: "Picker2"
},
false: void 0
},
ct: {
value: {
type: "triggered",
dp: "0_userdata.0.ct"
}
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "home?butter" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "input_sel",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
headline: { type: "const", constVal: "insel" },
icon: {
true: {
value: { type: "const", constVal: "home" },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entityInSel: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: void 0,
false: void 0
},
/**
* valueList string[]/stringify oder string?string?string?string stelle korreliert mit setList {input_sel}
*/
valueList: { type: "const", constVal: "home?butter" },
/**
* setList: {id:Datenpunkt, value: zu setzender Wert}[] bzw. stringify oder ein String nach dem Muster datenpunkt?Wert|Datenpunkt?Wert {input_sel}
*/
setList: { type: "const", constVal: "0_userdata.0.test?1|0_userdata.0.test?2" }
}
},
{
role: "text.list",
type: "button",
dpInit: "",
data: {
color: {
true: {
type: "const",
constVal: import_Color.Color.HMIOn
},
false: void 0,
scale: void 0
},
icon: {
true: {
value: { type: "const", constVal: "music" },
color: { type: "const", constVal: import_Color.Color.Gray }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: { type: "const", constVal: "Navbutton" },
false: void 0
},
setNavi: {
type: "const",
constVal: "3"
}
}
},
{
role: "text.list",
type: "text",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "home" },
text: { value: { type: "const", constVal: "22.2" }, textSize: { type: "const", constVal: 3 } },
color: { type: "const", constVal: import_Color.Color.Green }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
}
},
entity1: {
value: {
type: "const",
constVal: true
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: { type: "const", constVal: "text" },
false: void 0
},
text1: {
true: { type: "const", constVal: "text1" },
false: void 0
}
}
},
{
role: "text.list",
type: "number",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "arrow-up" },
color: { type: "const", constVal: import_Color.Color.Blue }
},
false: {
value: { type: "const", constVal: "fan" },
color: { type: "const", constVal: import_Color.Color.Red }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
entity1: {
value: {
type: "const",
constVal: 23
},
decimal: void 0,
factor: void 0,
unit: void 0
},
text: {
true: {
type: "const",
constVal: "Number"
},
false: void 0
}
}
},
{
/**
* zu 100% geschlossen zu 0% geschlossen read und write mit jeweils 100-val benutzen um das zu 100% geöffnet zu ändern.
*/
role: "rgbSingle",
type: "shutter",
dpInit: "",
data: {
icon: {
true: {
value: { type: "const", constVal: "window-shutter-open" },
color: { type: "const", constVal: import_Color.Color.Yellow }
},
false: {
value: { type: "const", constVal: "window-shutter" },
color: { type: "const", constVal: import_Color.Color.HMIOff }
},
scale: void 0,
maxBri: void 0,
minBri: void 0
},
// 1. slider
entity1: {
// button
value: { mode: "auto", role: "level.blind", type: "triggered", dp: "" },
decimal: void 0,
factor: void 0,
unit: void 0,
minScale: { type: "const", constVal: 0 },
maxScale: { type: "const", constVal: 100 }
},
// 2. slider
entity2: {