mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 06:27:01 +01:00
ready for 9.0.11
This commit is contained in:
@@ -968,8 +968,8 @@ export const config: Config = {
|
|||||||
// _________________________________ DE: Ab hier keine Konfiguration mehr _____________________________________
|
// _________________________________ DE: Ab hier keine Konfiguration mehr _____________________________________
|
||||||
// _________________________________ EN: No more configuration from here _____________________________________
|
// _________________________________ EN: No more configuration from here _____________________________________
|
||||||
|
|
||||||
const scriptVersion: string = 'v4.9.3.1';
|
const scriptVersion: string = 'v4.9.2.3';
|
||||||
const tft_version: string = 'v4.9.3';
|
const tft_version: string = 'v4.9.2';
|
||||||
const desired_display_firmware_version = 58;
|
const desired_display_firmware_version = 58;
|
||||||
const berry_driver_version = 9;
|
const berry_driver_version = 9;
|
||||||
|
|
||||||
@@ -5789,7 +5789,7 @@ function CreateEntity (pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
// Register Origin Datapoint
|
// Register Origin Datapoint
|
||||||
RegisterEntityWatcher(obj.common.alias.id);
|
RegisterEntityWatcher(obj.common.alias.id);
|
||||||
// Check Data-Type (This must be boolean)
|
// Check Data-Type (This must be boolean)
|
||||||
if (obj2.common.type == "boolean") {
|
if (obj2.type === 'state' && obj2.common.type == "boolean") {
|
||||||
if (Debug) log(getState(obj.common.alias.id).val, 'info');
|
if (Debug) log(getState(obj.common.alias.id).val, 'info');
|
||||||
if (getState(obj.common.alias.id).val) {
|
if (getState(obj.common.alias.id).val) {
|
||||||
iconId = pageItem.icon != undefined ? Icons.GetIcon(pageItem.icon) : iconId;
|
iconId = pageItem.icon != undefined ? Icons.GetIcon(pageItem.icon) : iconId;
|
||||||
@@ -6297,7 +6297,7 @@ function GenerateThermoPage (page: NSPanel.PageThermo): NSPanel.Payload[] {
|
|||||||
// ioBroker
|
// ioBroker
|
||||||
if (id && existsObject(id)) {
|
if (id && existsObject(id)) {
|
||||||
let o = getObject(id);
|
let o = getObject(id);
|
||||||
let name = page.heading !== undefined ? page.heading : o.common.name.de;
|
let name = page.heading !== undefined ? page.heading : o.common.name && typeof o.common.name === 'object' ? o.common.name.de : o.common.name;
|
||||||
let currentTemp = 0;
|
let currentTemp = 0;
|
||||||
if (existsState(id + '.ACTUAL')) {
|
if (existsState(id + '.ACTUAL')) {
|
||||||
currentTemp = Math.round(parseFloat(getState(id + '.ACTUAL').val) * 10) / 10;
|
currentTemp = Math.round(parseFloat(getState(id + '.ACTUAL').val) * 10) / 10;
|
||||||
@@ -8292,7 +8292,7 @@ function GenerateQRPage (page: NSPanel.PageQR): NSPanel.Payload[] {
|
|||||||
|
|
||||||
let o = getObject(id);
|
let o = getObject(id);
|
||||||
|
|
||||||
let heading = page.heading !== undefined ? page.heading : o.common.name.de;
|
let heading = page.heading !== undefined ? page.heading : typeof o.common.name === 'object' ? o.common.name.de : o.common.name;
|
||||||
let textQR = page.items[0].id + '.ACTUAL' !== undefined ? getState(page.items[0].id + '.ACTUAL').val : 'WIFI:T:undefined;S:undefined;P:undefined;H:undefined;';
|
let textQR = page.items[0].id + '.ACTUAL' !== undefined ? getState(page.items[0].id + '.ACTUAL').val : 'WIFI:T:undefined;S:undefined;P:undefined;H:undefined;';
|
||||||
let hiddenPWD = false;
|
let hiddenPWD = false;
|
||||||
if (page.items[0].hidePassword !== undefined && page.items[0].hidePassword == true) {
|
if (page.items[0].hidePassword !== undefined && page.items[0].hidePassword == true) {
|
||||||
@@ -8472,7 +8472,7 @@ function GeneratePowerPage (page: NSPanel.PagePower): NSPanel.Payload[] {
|
|||||||
unsubscribePowerSubscriptions();
|
unsubscribePowerSubscriptions();
|
||||||
|
|
||||||
let o = getObject(id);
|
let o = getObject(id);
|
||||||
heading = page.heading !== undefined ? page.heading : o.common.name.de;
|
heading = page.heading !== undefined ? page.heading : typeof o.common.name === 'object' ? o.common.name.de : o.common.name;
|
||||||
|
|
||||||
obj = JSON.parse(getState(page.items[0].id + '.ACTUAL').val);
|
obj = JSON.parse(getState(page.items[0].id + '.ACTUAL').val);
|
||||||
}
|
}
|
||||||
@@ -11235,13 +11235,6 @@ function GenerateDetailPage (type: NSPanel.PopupType, optional: NSPanel.mediaOpt
|
|||||||
shutterTyp = pageItem.shutterType;
|
shutterTyp = pageItem.shutterType;
|
||||||
}
|
}
|
||||||
|
|
||||||
let shutterZeroIsClosed:string = "0";
|
|
||||||
if (pageItem.shutterZeroIsClosed != undefined) {
|
|
||||||
if(pageItem.shutterZeroIsClosed==true) {
|
|
||||||
shutterZeroIsClosed = "1";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
out_msgs.push({
|
out_msgs.push({
|
||||||
payload:
|
payload:
|
||||||
'entityUpdateDetail' +
|
'entityUpdateDetail' +
|
||||||
@@ -11290,9 +11283,7 @@ function GenerateDetailPage (type: NSPanel.PopupType, optional: NSPanel.mediaOpt
|
|||||||
'~' +
|
'~' +
|
||||||
bEntity3Visibility + //20
|
bEntity3Visibility + //20
|
||||||
'~' +
|
'~' +
|
||||||
shutterTyp + //21 for Future
|
shutterTyp //21 for Future
|
||||||
'~' +
|
|
||||||
shutterZeroIsClosed //21 for Future
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14246,7 +14237,6 @@ namespace NSPanel {
|
|||||||
alwaysOnDisplay?: boolean;
|
alwaysOnDisplay?: boolean;
|
||||||
popupVersion?: number;
|
popupVersion?: number;
|
||||||
shutterType?: string;
|
shutterType?: string;
|
||||||
shutterZeroIsClosed?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type shutterIcons = {
|
type shutterIcons = {
|
||||||
|
|||||||
Reference in New Issue
Block a user