mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
Version, Without-Examples-File
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
TypeScript v4.0.4.1 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom
|
TypeScript v4.0.4.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom
|
||||||
- abgestimmt auf TFT 50 / v4.0.4 / BerryDriver 8 / Tasmota 12.4.0
|
- abgestimmt auf TFT 50 / v4.0.4 / BerryDriver 8 / Tasmota 12.4.0
|
||||||
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
||||||
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||||
@@ -117,6 +117,7 @@ ReleaseNotes:
|
|||||||
- 04.03.2023 - v4.0.4 Upgrade TFT 50 / 4.0.4
|
- 04.03.2023 - v4.0.4 Upgrade TFT 50 / 4.0.4
|
||||||
- 04.03.2023 - v4.0.4 Fix bExit with popupLight, popup....
|
- 04.03.2023 - v4.0.4 Fix bExit with popupLight, popup....
|
||||||
- 07.03.2023 - v4.0.4.1 Extend Configuration Options for Physical Buttons to enable direct state manipulation - by bembelstemmer
|
- 07.03.2023 - v4.0.4.1 Extend Configuration Options for Physical Buttons to enable direct state manipulation - by bembelstemmer
|
||||||
|
- 10.03.2023 - v4.0.4.2 Fix iconColor by 100% Brightness
|
||||||
|
|
||||||
***********************************************************************************************************
|
***********************************************************************************************************
|
||||||
* Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
* Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
TypeScript v4.0.4.1 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom
|
TypeScript v4.0.4.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom
|
||||||
- abgestimmt auf TFT 50 / v4.0.4 / BerryDriver 8 / Tasmota 12.4.0
|
- abgestimmt auf TFT 50 / v4.0.4 / BerryDriver 8 / Tasmota 12.4.0
|
||||||
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
||||||
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||||
@@ -117,6 +117,7 @@ ReleaseNotes:
|
|||||||
- 04.03.2023 - v4.0.4 Upgrade TFT 50 / 4.0.4
|
- 04.03.2023 - v4.0.4 Upgrade TFT 50 / 4.0.4
|
||||||
- 04.03.2023 - v4.0.4 Fix bExit with popupLight, popup....
|
- 04.03.2023 - v4.0.4 Fix bExit with popupLight, popup....
|
||||||
- 07.03.2023 - v4.0.4.1 Extend Configuration Options for Physical Buttons to enable direct state manipulation - by bembelstemmer
|
- 07.03.2023 - v4.0.4.1 Extend Configuration Options for Physical Buttons to enable direct state manipulation - by bembelstemmer
|
||||||
|
- 10.03.2023 - v4.0.4.2 Fix iconColor by 100% Brightness
|
||||||
|
|
||||||
***********************************************************************************************************
|
***********************************************************************************************************
|
||||||
* Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
* Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
||||||
@@ -2805,7 +2806,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (val === true || val === 'true') {
|
if (val === true || val === 'true') {
|
||||||
optVal = '1';
|
optVal = '1';
|
||||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
if (pageItem.icon !== undefined) {
|
if (pageItem.icon !== undefined) {
|
||||||
@@ -2834,7 +2835,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (val === true || val === 'true') {
|
if (val === true || val === 'true') {
|
||||||
optVal = '1';
|
optVal = '1';
|
||||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
if (pageItem.icon !== undefined) {
|
if (pageItem.icon !== undefined) {
|
||||||
@@ -2853,7 +2854,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (val === true || val === 'true') {
|
if (val === true || val === 'true') {
|
||||||
optVal = '1';
|
optVal = '1';
|
||||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
if (pageItem.icon !== undefined) {
|
if (pageItem.icon !== undefined) {
|
||||||
@@ -2883,7 +2884,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (val === true || val === 'true') {
|
if (val === true || val === 'true') {
|
||||||
optVal = '1'
|
optVal = '1'
|
||||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
if (pageItem.icon !== undefined) {
|
if (pageItem.icon !== undefined) {
|
||||||
@@ -2913,7 +2914,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (val === true || val === 'true') {
|
if (val === true || val === 'true') {
|
||||||
optVal = '1';
|
optVal = '1';
|
||||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? 100 - getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
if (pageItem.icon !== undefined) {
|
if (pageItem.icon !== undefined) {
|
||||||
@@ -5558,7 +5559,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val === true) {
|
if (val === true) {
|
||||||
iconColor = GetIconColor(pageItem, 100 - brightness, true);
|
iconColor = GetIconColor(pageItem, brightness, true);
|
||||||
switchVal = '1';
|
switchVal = '1';
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, true);
|
iconColor = GetIconColor(pageItem, false, true);
|
||||||
@@ -5602,7 +5603,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val === true) {
|
if (val === true) {
|
||||||
iconColor = GetIconColor(pageItem, 100 - brightness, true);
|
iconColor = GetIconColor(pageItem, brightness, true);
|
||||||
switchVal = '1';
|
switchVal = '1';
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, true);
|
iconColor = GetIconColor(pageItem, false, true);
|
||||||
@@ -5668,7 +5669,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val === true) {
|
if (val === true) {
|
||||||
iconColor = GetIconColor(pageItem, 100 - brightness, true);
|
iconColor = GetIconColor(pageItem, brightness, true);
|
||||||
switchVal = '1';
|
switchVal = '1';
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, true);
|
iconColor = GetIconColor(pageItem, false, true);
|
||||||
@@ -5733,7 +5734,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val === true) {
|
if (val === true) {
|
||||||
iconColor = GetIconColor(pageItem, 100 - brightness, true);
|
iconColor = GetIconColor(pageItem, brightness, true);
|
||||||
switchVal = '1';
|
switchVal = '1';
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, true);
|
iconColor = GetIconColor(pageItem, false, true);
|
||||||
@@ -5802,7 +5803,7 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val === true) {
|
if (val === true) {
|
||||||
iconColor = GetIconColor(pageItem, 100 - brightness, true);
|
iconColor = GetIconColor(pageItem, brightness, true);
|
||||||
switchVal = '1';
|
switchVal = '1';
|
||||||
} else {
|
} else {
|
||||||
iconColor = GetIconColor(pageItem, false, true);
|
iconColor = GetIconColor(pageItem, false, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user