From 0e8849a38244d5ac825b5d3767466cb40e45d217 Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:53:26 +0100 Subject: [PATCH 1/4] DEV v4.5.0. - Update NSPanelTs.ts --- ioBroker/DEV/NSPanelTs.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index 24dd6f0f..165394a1 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -1,6 +1,6 @@ /*----------------------------------------------------------------------- -TypeScript v4.4.0.14 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @TT-Tom / @ticaki / @Britzelpuf / @Sternmiere / @ravenS0ne -- abgestimmt auf TFT 53 / v4.4.0 / BerryDriver 9 / Tasmota 14.4.1 +TypeScript v4.5.0.0 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @TT-Tom / @ticaki / @Britzelpuf / @Sternmiere / @ravenS0ne +- abgestimmt auf TFT 54 / v4.5.0 / BerryDriver 9 / Tasmota 14.4.1 @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 icon_mapping.ts: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/icon_mapping.ts (TypeScript muss in global liegen) @@ -138,6 +138,7 @@ ReleaseNotes: - 11.01.2025 - v4.4.0.13 Error due to an empty character string when subscribing to icon IDs - 20.01.2025 - v4.4.0.14 Add Screensaver3 and cardGrid3 - 20.01.2025 - v4.4.0.14 Added Easy-View Screensaver states handling + - 21.01.2025 - v4.5.0 TFT 54 / 4.5.0 Todo: - XX.12.2024 - v5.0.0 ioBroker Adapter @@ -233,7 +234,7 @@ Erforderliche Adapter: Upgrades in Konsole: Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1 - TFT EU STABLE Version : FlashNextion http://logint.de/wp-content/uploads/2025/01/nspanel.tft + TFT EU STABLE Version : FlashNextion http://armilar.logint.de/nspanel-4.5.0.tft --------------------------------------------------------------------------------------- */ @@ -1011,9 +1012,9 @@ export const config: Config = { // _________________________________ DE: Ab hier keine Konfiguration mehr _____________________________________ // _________________________________ EN: No more configuration from here _____________________________________ -const scriptVersion: string = 'v4.4.0.14'; -const tft_version: string = 'v4.4.0'; -const desired_display_firmware_version = 53; +const scriptVersion: string = 'v4.5.0.0'; +const tft_version: string = 'v4.5.0'; +const desired_display_firmware_version = 54; const berry_driver_version = 9; const tasmotaOtaUrl: string = 'http://ota.tasmota.com/tasmota32/release/'; From 417c99cdb9f6c70561ef8430e559e7e7419b7d2e Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Tue, 21 Jan 2025 13:05:51 +0100 Subject: [PATCH 2/4] DEV v4.5.0 - Update NSPanelTs.ts --- ioBroker/DEV/NSPanelTs.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index 165394a1..52f49fd4 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -1326,9 +1326,8 @@ CheckMQTTPorts(); * @since 4.4.0 */ async function Init_Release() { - const FWVersion = [0, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]; - const FWRelease = ['0', '3.3.1', '3.4.0', '3.5.0', '3.5.X', '3.6.0', '3.7.3', '3.8.0', '3.8.3', '3.9.4', '4.0.5', '4.1.4', '4.2.1', '4.4.0', '4.4.0', '4.5.0', '4.6.0']; - try { + const FWVersion = [ 0 , 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]; + const FWRelease = ['0', '3.3.1', '3.4.0', '3.5.0', '3.5.X', '3.6.0', '3.7.3', '3.8.0', '3.8.3', '3.9.4', '4.0.5', '4.1.4', '4.2.1', '4.4.0', '4.5.0', '4.6.0', '4.6.1']; if (existsObject(NSPanel_Path + 'Display_Firmware.desiredVersion') == false) { await createStateAsync(NSPanel_Path + 'Display_Firmware.desiredVersion', desired_display_firmware_version, { type: 'number', write: false }); // if 'desiredVersion' as a string: await createStateAsync(NSPanel_Path + 'Display_Firmware.desiredVersion', String(desired_display_firmware_version), { type: 'string', write: false }); From 8478194bb07236deb52e71332d319a60a1c2b150 Mon Sep 17 00:00:00 2001 From: tt-tom17 Date: Tue, 21 Jan 2025 14:49:17 +0100 Subject: [PATCH 3/4] DEV v4.5.0 - Update NSPanelTs.ts fix try catch --- ioBroker/DEV/NSPanelTs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index 52f49fd4..3b05beba 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -1328,6 +1328,7 @@ CheckMQTTPorts(); async function Init_Release() { const FWVersion = [ 0 , 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]; const FWRelease = ['0', '3.3.1', '3.4.0', '3.5.0', '3.5.X', '3.6.0', '3.7.3', '3.8.0', '3.8.3', '3.9.4', '4.0.5', '4.1.4', '4.2.1', '4.4.0', '4.5.0', '4.6.0', '4.6.1']; + try{ if (existsObject(NSPanel_Path + 'Display_Firmware.desiredVersion') == false) { await createStateAsync(NSPanel_Path + 'Display_Firmware.desiredVersion', desired_display_firmware_version, { type: 'number', write: false }); // if 'desiredVersion' as a string: await createStateAsync(NSPanel_Path + 'Display_Firmware.desiredVersion', String(desired_display_firmware_version), { type: 'string', write: false }); From ebf6300b0659a1f358a8cff458b8eeaf605135fb Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:06:23 +0100 Subject: [PATCH 4/4] DEV v4.5.0 - Update NSPanelTs.ts --- ioBroker/DEV/NSPanelTs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index 3b05beba..6c3a32e9 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -234,7 +234,7 @@ Erforderliche Adapter: Upgrades in Konsole: Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1 - TFT EU STABLE Version : FlashNextion http://armilar.logint.de/nspanel-4.5.0.tft + TFT EU STABLE Version : FlashNextion http://nspanel.de/nspanel-4.5.0.tft --------------------------------------------------------------------------------------- */