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.
2,036 lines • 113 kB
JavaScript
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var definition_exports = {};
__export(definition_exports, {
Defaults: () => Defaults,
InternalStates: () => InternalStates,
ReiveTopicAppendix: () => ReiveTopicAppendix,
ScreenSaverConst: () => ScreenSaverConst,
SendTopicAppendix: () => SendTopicAppendix,
defaultChannel: () => defaultChannel,
genericStateObjects: () => genericStateObjects,
getTasmotaTimeZone: () => getTasmotaTimeZone,
isDimConfigKey: () => isDimConfigKey,
isDimValueForKey: () => isDimValueForKey,
tasmotaOtaUrl: () => tasmotaOtaUrl,
tasmotaTimeZones: () => tasmotaTimeZones,
tasmotaTimeZonesAdmin: () => tasmotaTimeZonesAdmin,
weatherEntities: () => weatherEntities
});
module.exports = __toCommonJS(definition_exports);
var globals = __toESM(require("../types/function-and-const"));
const defaultChannel = {
_id: "",
type: "channel",
common: {
name: "Hey no description... "
},
native: {}
};
const genericStateObjects = {
default: {
_id: "No_definition",
type: "state",
common: {
name: "StateObjects.state",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
panel: {
_channel: {
_id: "",
type: "folder",
common: {
name: "StateObjects.panel"
},
native: {}
},
panels: {
_channel: {
_id: "",
type: "device",
common: {
name: "StateObjects.panels",
statusStates: {
onlineId: "info.isOnline"
}
},
native: {}
},
pagePopup: {
_channel: {
_id: "",
type: "channel",
common: {
name: "StateObjects.pagePopup"
},
native: {}
},
id: {
_id: "",
type: "state",
common: {
name: "Id of the popup",
type: "string",
role: "text",
read: true,
write: false,
def: ""
},
native: {}
},
buttonRight: {
_id: "",
type: "state",
common: {
name: "Button right",
type: "string",
role: "text",
read: true,
write: false,
def: ""
},
native: {}
},
buttonMid: {
_id: "",
type: "state",
common: {
name: "Button middle",
type: "string",
role: "text",
read: true,
write: false,
def: ""
},
native: {}
},
buttonLeft: {
_id: "",
type: "state",
common: {
name: "Button left",
type: "string",
role: "text",
read: true,
write: false,
def: ""
},
native: {}
}
},
buttons: {
_channel: {
_id: "",
type: "channel",
common: {
name: "StateObjects.buttons"
},
native: {}
},
left: {
_id: "",
type: "state",
common: {
name: "StateObjects.buttons.left",
type: "boolean",
role: "button.press",
read: true,
write: false
},
native: {}
},
right: {
_id: "",
type: "state",
common: {
name: "StateObjects.buttons.right",
type: "boolean",
role: "button.press",
read: true,
write: false
},
native: {}
},
indicator: {
_id: "",
type: "state",
common: {
name: "StateObjects.buttons.indicator",
type: "boolean",
role: "button.press",
read: true,
write: false,
def: true
},
native: {}
},
screensaverGesture: {
_id: "",
type: "state",
common: {
name: "StateObjects.buttons.screensaverGesture",
type: "number",
role: "value",
read: true,
write: false,
def: 0,
states: ["inactive", "active", "exit", "swipeUp", "swipeDown", "swipeLeft", "swipeRight"]
},
native: {}
}
},
cmd: {
_channel: {
_id: "",
type: "channel",
common: {
name: "StateObjects.cmd"
},
native: {}
},
isBuzzerAllowed: {
_id: "",
type: "state",
common: {
name: "Allow buzzer from notifications and popups",
type: "boolean",
role: "switch",
read: true,
write: true,
def: true
},
native: {}
},
hideCards: {
_id: "",
type: "state",
common: {
name: "StateObjects.hideCards",
type: "boolean",
role: "switch",
read: true,
write: true,
def: false
},
native: {}
},
buzzer: {
_id: "",
type: "state",
common: {
name: "StateObjects.buzzer",
type: "string",
role: "text",
read: true,
write: true,
desc: 'Send buzzer command to panel (e.g., "1,2,3,0xF54" for tone, duration, count, frequency)',
def: ""
},
native: {}
},
mainNavigationPoint: {
_id: "",
type: "state",
common: {
name: "StateObjects.mainNavigationPoint",
type: "string",
role: "level.text",
read: true,
write: true,
states: {}
},
native: {}
},
goToNavigationPoint: {
_id: "",
type: "state",
common: {
name: "StateObjects.navigateToPage",
type: "string",
role: "level.text",
read: true,
write: true,
states: {}
},
native: {}
},
power1: {
_id: "",
type: "state",
common: {
name: "StateObjects.power1",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
power2: {
_id: "",
type: "state",
common: {
name: "StateObjects.power2",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
detachLeft: {
_id: "",
type: "state",
common: {
name: "StateObjects.detachLeft",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
detachRight: {
_id: "",
type: "state",
common: {
name: "StateObjects.detachRight",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
screenSaver: {
_channel: {
_id: "",
type: "folder",
common: {
name: "StateObjects.screenSaver.screenSaver"
},
native: {}
},
infoIcon: {
_id: "",
type: "state",
common: {
name: "StateObjects.screenSaver.infoIcon",
type: "string",
role: "text",
states: globals.screenSaverInfoIcons,
read: true,
write: true,
def: ""
},
native: {}
},
timeout: {
_id: "",
type: "state",
common: {
name: "StateObjects.screenSaver.timeout",
type: "number",
role: "level",
unit: "s",
read: true,
write: true
},
native: {}
},
headingNotification: {
_id: "",
type: "state",
common: {
name: "StateObjects.headingNotification",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
textNotification: {
_id: "",
type: "state",
common: {
name: "StateObjects.textNotification",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
activateNotification: {
_id: "",
type: "state",
common: {
name: "StateObjects.activateNotification",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
layout: {
_id: "",
type: "state",
common: {
name: "StateObjects.screenSaver.layout",
type: "number",
role: "level",
read: true,
write: true,
states: globals.arrayOfScreensaverModes
},
native: {}
},
rotationTime: {
_id: "",
type: "state",
common: {
name: "StateObjects.screenSaver.rotationTime",
type: "number",
role: "level",
unit: "s",
min: 0,
max: 3600,
step: 1,
read: true,
write: true
},
native: {}
},
doubleClick: {
_id: "",
type: "state",
common: {
name: "StateObjects.screenSaver.doubleClick",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
}
},
dim: {
_channel: {
_id: "",
type: "folder",
common: {
name: "StateObjects.dim"
},
native: {}
},
standby: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimStandby",
type: "number",
role: "level",
unit: "%",
read: true,
write: true,
def: 15
},
native: {}
},
active: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimActive",
type: "number",
role: "level",
unit: "%",
read: true,
write: true,
def: 80
},
native: {}
},
dayMode: {
_id: "",
type: "state",
common: {
name: "StateObjects.dayMode",
type: "boolean",
role: "switch",
read: true,
write: true,
def: true
},
native: {}
},
nightStandby: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimNightStandby",
type: "number",
role: "level",
unit: "%",
read: true,
write: true,
def: 0
},
native: {}
},
nightActive: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimNightActive",
type: "number",
role: "level",
unit: "%",
read: true,
write: true,
def: 30
},
native: {}
},
nightHourStart: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimNightHourStart",
type: "number",
role: "level",
read: true,
write: true,
min: -1,
max: 23,
step: 1,
unit: "h",
def: 22
},
native: {}
},
schedule: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimSchedule",
type: "boolean",
role: "switch",
read: true,
write: true,
def: true
},
native: {}
},
nightHourEnd: {
_id: "",
type: "state",
common: {
name: "StateObjects.dimNightHourEnd",
type: "number",
role: "level",
read: true,
write: true,
min: -1,
max: 23,
unit: "h",
step: 1,
def: 7
},
native: {}
}
},
pagePopup: {
_channel: {
_id: "",
type: "folder",
common: {
name: "StateObjects.popup"
},
native: {}
},
id: {
_id: "",
type: "state",
common: {
name: "StateObjects.popup.id",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
global: {
_id: "",
type: "state",
common: {
name: "StateObjects.popup.global",
type: "boolean",
role: "switch",
read: true,
write: true,
def: false
},
native: {}
},
activate: {
_id: "",
type: "state",
common: {
name: "StateObjects.popup.activate",
type: "boolean",
role: "button",
read: false,
write: true,
def: false
},
native: {}
},
priority: {
_id: "",
type: "state",
common: {
name: "StateObjects.popup.priority",
type: "number",
role: "level",
read: true,
write: true,
def: 50
},
native: {}
},
type: {
_id: "",
type: "state",
common: {
name: "StateObjects.popup.type",
type: "string",
role: "text",
read: true,
write: true,
states: {
information: "information",
acknowledge: "acknowledge"
},
def: "information"
},
native: {}
},
headline: {
_id: "",
type: "state",
common: {
name: "headline",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
colorHeadline: {
_id: "",
type: "state",
common: {
name: "colorHeadline",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
buttonLeft: {
_id: "",
type: "state",
common: {
name: "buttonLeft",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
colorButtonLeft: {
_id: "",
type: "state",
common: {
name: "colorButtonLeft",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
buttonMid: {
_id: "",
type: "state",
common: {
name: "buttonMid",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
colorButtonMid: {
_id: "",
type: "state",
common: {
name: "colorButtonMid",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
buzzer: {
_id: "",
type: "state",
common: {
name: "buzzer",
type: "boolean",
role: "switch",
read: true,
write: true,
def: false
},
native: {}
},
buttonRight: {
_id: "",
type: "state",
common: {
name: "buttonRight",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
colorButtonRight: {
_id: "",
type: "state",
common: {
name: "colorButtonRight",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
text: {
_id: "",
type: "state",
common: {
name: "text",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
colorText: {
_id: "",
type: "state",
common: {
name: "colorText",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
textSize: {
_id: "",
type: "state",
common: {
name: "textSize",
type: "number",
role: "level",
read: true,
write: true,
def: 3,
min: 1,
max: 5,
step: 1
},
native: {}
},
icon: {
_id: "",
type: "state",
common: {
name: "icon",
type: "string",
role: "text",
read: true,
write: true,
def: ""
},
native: {}
},
iconColor: {
_id: "",
type: "state",
common: {
name: "colorIcon",
type: "string",
role: "json",
read: true,
write: true,
def: JSON.stringify({ r: 255, g: 255, b: 255 })
},
native: {}
},
alwaysOn: {
_id: "",
type: "state",
common: {
name: "alwaysOn",
type: "boolean",
role: "switch",
read: true,
write: true,
def: true
},
native: {}
}
}
},
info: {
_channel: {
_id: "",
type: "channel",
common: {
name: "Information"
},
native: {}
},
status: {
_id: "",
type: "state",
common: {
name: "StateObjects.status",
type: "string",
role: "json",
read: true,
write: false
},
native: {}
},
nspanel: {
_channel: {
_id: "",
type: "folder",
common: {
name: "StateObjects.nspanel"
},
native: {}
},
currentPage: {
_id: "",
type: "state",
common: {
name: "StateObjects.currentPage",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
displayVersion: {
_id: "",
type: "state",
common: {
name: "StateObjects.displayVersion",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
onlineVersion: {
_id: "",
type: "state",
common: {
name: "StateObjects.onlineVersion",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
firmwareUpdate: {
_id: "",
type: "state",
common: {
name: "StateObjects.firmwareUpdate",
type: "number",
role: "value",
read: true,
write: false,
def: 100,
unit: "%"
},
native: {}
},
berryDriverVersion: {
_id: "",
type: "state",
common: {
name: "StateObjects.berryDriverVersion",
type: "number",
role: "value",
read: true,
write: false,
def: 0
},
native: {}
},
berryDriverVersionOnline: {
_id: "",
type: "state",
common: {
name: "StateObjects.berryDriverVersionOnline",
type: "number",
role: "value",
read: true,
write: false,
def: 0
},
native: {}
},
model: {
_id: "",
type: "state",
common: {
name: "StateObjects.model",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
bigIconLeft: {
_id: "",
type: "state",
common: {
name: "StateObjects.bigIconLeft",
type: "boolean",
role: "indicator",
read: true,
write: false
},
native: {}
},
bigIconRight: {
_id: "",
type: "state",
common: {
name: "StateObjects.bigIconRight",
type: "boolean",
role: "indicator",
read: true,
write: false
},
native: {}
},
scriptVersion: {
_id: "",
type: "state",
common: {
name: "StateObjects.scriptVersion",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
},
isOnline: {
_id: "",
type: "state",
common: {
name: "StateObjects.isOnline",
type: "boolean",
role: "indicator.reachable",
read: true,
write: false
},
native: {}
},
tasmota: {
_channel: {
_id: "",
type: "folder",
common: {
name: "Tasmota"
},
native: {}
},
firmwareversion: {
_id: "",
type: "state",
common: {
name: "StateObjects.firmwareversion",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
safeboot: {
_id: "",
type: "state",
common: {
name: "StateObjects.safeboot",
type: "boolean",
role: "indicator",
read: true,
write: false
},
native: {}
},
onlineVersion: {
_id: "",
type: "state",
common: {
name: "StateObjects.onlineVersion",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
mqttClient: {
_id: "",
type: "state",
common: {
name: "StateObjects.mqttClientId",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
uptime: {
_id: "",
type: "state",
common: {
name: "StateObjects.uptime",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
sts: {
_channel: {
_id: "",
type: "folder",
common: {
name: "sts"
},
native: {}
},
Time: {
_id: "",
type: "state",
common: {
name: "Time",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Uptime: {
_id: "",
type: "state",
common: {
name: "Uptime",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
UptimeSec: {
_id: "",
type: "state",
common: {
name: "UptimeSec",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Heap: {
_id: "",
type: "state",
common: {
name: "Heap",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
SleepMode: {
_id: "",
type: "state",
common: {
name: "SleepMode",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Sleep: {
_id: "",
type: "state",
common: {
name: "Sleep",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
LoadAvg: {
_id: "",
type: "state",
common: {
name: "LoadAvg",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
MqttCount: {
_id: "",
type: "state",
common: {
name: "MqttCount",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Berry: {
_channel: {
_id: "",
type: "folder",
common: {
name: "Berry"
},
native: {}
},
HeapUsed: {
_id: "",
type: "state",
common: {
name: "HeapUsed",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Objects: {
_id: "",
type: "state",
common: {
name: "Objects",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
}
},
POWER1: {
_id: "",
type: "state",
common: {
name: "POWER1",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
POWER2: {
_id: "",
type: "state",
common: {
name: "POWER2",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Wifi: {
_channel: {
_id: "",
type: "folder",
common: {
name: "Wifi"
},
native: {}
},
AP: {
_id: "",
type: "state",
common: {
name: "AP",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
SSId: {
_id: "",
type: "state",
common: {
name: "SSId",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
BSSId: {
_id: "",
type: "state",
common: {
name: "BSSId",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Channel: {
_id: "",
type: "state",
common: {
name: "Channel",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Mode: {
_id: "",
type: "state",
common: {
name: "Mode",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
RSSI: {
_id: "",
type: "state",
common: {
name: "RSSI",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Signal: {
_id: "",
type: "state",
common: {
name: "Signal",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
LinkCount: {
_id: "",
type: "state",
common: {
name: "LinkCount",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
Downtime: {
_id: "",
type: "state",
common: {
name: "Downtime",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
}
},
net: {
_channel: {
_id: "",
type: "folder",
common: {
name: "net"
},
native: {}
},
IPAddress: {
_id: "",
type: "state",
common: {
name: "IPAddress",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Gateway: {
_id: "",
type: "state",
common: {
name: "Gateway",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
DNSServer1: {
_id: "",
type: "state",
common: {
name: "DNSServer1",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
DNSServer2: {
_id: "",
type: "state",
common: {
name: "DNSServer2",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Subnetmask: {
_id: "",
type: "state",
common: {
name: "Subnetmask",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Hostname: {
_id: "",
type: "state",
common: {
name: "Hostname",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Mac: {
_id: "",
type: "state",
common: {
name: "Mac",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
IP6Global: {
_id: "",
type: "state",
common: {
name: "IP6Global",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
IP6Local: {
_id: "",
type: "state",
common: {
name: "IP6Local",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Ethernet: {
_channel: {
_id: "",
type: "folder",
common: {
name: "Ethernet"
},
native: {}
},
Hostname: {
_id: "",
type: "state",
common: {
name: "Hostname",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
IPAddress: {
_id: "",
type: "state",
common: {
name: "IPAddress",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Gateway: {
_id: "",
type: "state",
common: {
name: "Gateway",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Subnetmask: {
_id: "",
type: "state",
common: {
name: "Subnetmask",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
DNSServer1: {
_id: "",
type: "state",
common: {
name: "DNSServer1",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
DNSServer2: {
_id: "",
type: "state",
common: {
name: "DNSServer2",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
Mac: {
_id: "",
type: "state",
common: {
name: "Mac",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
IP6Global: {
_id: "",
type: "state",
common: {
name: "IP6Global",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
},
IP6Local: {
_id: "",
type: "state",
common: {
name: "IP6Local",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
},
Webserver: {
_id: "",
type: "state",
common: {
name: "Webserver",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
HTTP_API: {
_id: "",
type: "state",
common: {
name: "HTTP_API",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
WifiConfig: {
_id: "",
type: "state",
common: {
name: "WifiConfig",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
},
WifiPower: {
_id: "",
type: "state",
common: {
name: "WifiPower",
type: "number",
role: "text",
read: true,
write: false
},
native: {}
}
}
}
},
alarm: {
_channel: {
_id: "",
type: "channel",
common: {
name: "alarm"
},
native: {}
},
cardAlarm: {
_channel: {
_id: "",
type: "channel",
common: {
name: "cardAlarm"
},
native: {}
},
approve: {
_id: "",
type: "state",
common: {
name: "StateObjects.approve",
type: "boolean",
role: "switch",
read: true,
write: true
},
native: {}
},
status: {
_id: "",
type: "state",
common: {
name: "StateObjects.alarmstatus",
type: "number",
role: "value",
states: ["disarmed", "armed", "arming", "pending", "triggered"],
read: true,
write: true
},
native: {}
},
mode: {
_id: "",
type: "state",
common: {
name: "StateObjects.alarmmode",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
}
}
}
},
customString: {
_id: "User_State",
type: "state",
common: {
name: "StateObjects.customString",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
};
const Defaults = {
state: {
_id: "No_definition",
type: "state",
common: {
name: "No definition",
type: "string",
role: "text",
read: true,
write: false
},
native: {}
}
};
const InternalStates = {
panel: {
"cmd/power2": {
val: false,
ack: true,
common: {
name: "power2",
type: "boolean",
role: "switch",
read: true,
write: true
},
noTrigger: true
},
"cmd/isBuzzerAllowed": {
val: true,
ack: true,
common: {
name: "isBuzzerAllowed",
type: "boolean",
role: "switch",
read: true,
write: true
}
},
"cmd/power1": {
val: false,
ack: true,
common: {
name: "power1",
type: "boolean",
role: "switch",
read: true,
write: true
},
noTrigger: true
},
"cmd/bigIconRight": {
val: true,
ack: true,
common: {
name: "",
type: "boolean",
role: "switch",
read: true,
write: true
}
},
"cmd/detachLeft": {
val: true,
ack: true,
common: {
name: "",
type: "boolean",
role: "switch",
read: true,
write: true
}
},
"cmd/detachRight": {
val: true,
ack: true,
common: {
name: "",
type: "boolean",
role: "switch",
read: true,
write: true
}
},
"cmd/bigIconLeft": {
val: true,
ack: true,
common: {
name: "",
type: "boolean",
role: "switch",
read: true,
write: true
}
},
"cmd/dimActive": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/dimStandby": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/dimNightActive": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/dimNightStandby": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/dimNightHourStart": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/dimNightHourEnd": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/screenSaverTimeout": {
val: 0,
ack: true,
common: {
name: "",
type: "number",
role: "value",
read: true,
write: true
}
},
"cmd/screenSaverLayout": {
val: "standard",
ack: true,
common: {
name: "",
type: "number",
role: "level",
read: true,
write: true,
states: globals.arrayOfScreensaverModes
}
},
"cmd/NotificationClearedAll": {
val: false,
ack: true,
common: {
name: "",
type: "boolean",
role: "button",
read: false,
write: true
}
},
"cmd/NotificationNext2": {
val: false,
ack: true,
common: {
name: "",
type: "boolean",
role: "button",
read: false,
write: true
}
},
"cmd/popupNotification": {
val: JSON.stringify({}),
ack: true,
common: {
name: "",
type: "string",
role: "json",
read: true,
write: true
}
},
"cmd/popupNotificationCustom": {
val: JSON.stringify({}),
ack: true,
common: {
name: "",
type: "string",
role: "json",
read: true,
write: true
},
noTrigger: true
},
"system/popupNotification": {
val: JSON.stringify({}),
ack: true,
common: {
name: "",
type: "string",
role: "json",
read: true,
write: true
},
noTrigger: true
},
"cmd/NotificationCleared": {
val: false,
ack: true,
common: {
name: "",
type: "boolean",
role: "button",
read: false,
write: true
}
},
"cmd/NotificationNext": {
val: false,
ack: true,
common: {
name: "",
type: "boolean",
role: "button",
read: false,
write: true
}
},
"info/NotificationCounter": {
val: JSON.stringify({}),
ack: true,
common: {
name: "",
type: "string",
role: "json",
read: true,
write: true
}
},
"cmd/popupNotification2": {
val: JSON.stringify({}),
ack: true,
common: {
name: "",
type: "string",
role: "json",
read: true,
write: true
}
},
"cmd/screensaverHeadingNotification": {
val: "",
ack: true,
common: {
name: "",
type: "string",
role: "text",
read: true,
write: true
}
},
"cmd/screensaverTextNotification": {
val: "",
ack: true,
common: {
name: "",
type: "string",
role: "text",
read: true,
writ