diff --git a/ioBroker/NsPanelTs_without_Examples.ts b/ioBroker/NsPanelTs_without_Examples.ts index 066690bf..4555353a 100644 --- a/ioBroker/NsPanelTs_without_Examples.ts +++ b/ioBroker/NsPanelTs_without_Examples.ts @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------- -TypeScript v3.9.0.1 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf +TypeScript v3.9.0.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf - abgestimmt auf TFT 49 / v3.9.0 / BerryDriver 8 / Tasmota 12.3.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 @@ -96,6 +96,7 @@ ReleaseNotes: - 27.01.2023 - v3.9.0 Add getState in PageItem.name with prefix and suffix - 28.01.2023 - v3.9.0 Fix TFT-Version Path in function update_tft_firmware (drop ".") - 29.01.2023 - v3.9.0 Upgrade TFT 49 + - 03.02.2023 - v3.9.0.2 Hotfix Screensaver bExit Todo Next Release - XX.XX.2023 - v4.0.0 Add cardUnlock @@ -4401,6 +4402,10 @@ function HandleButtonEvent(words: any): void { console.log(buttonAction); } + if (buttonAction.startsWith('swipe')) { + buttonAction = 'bExit'; + } + let pageNum:number = 0; switch (buttonAction) { @@ -4473,6 +4478,11 @@ function HandleButtonEvent(words: any): void { } else { GeneratePage(activePage); } + } else { + setIfExists(NSPanel_Path + 'ScreensaverInfo.popupNotifyHeading', ''); + setIfExists(NSPanel_Path + 'ScreensaverInfo.popupNotifyText', ''); + screensaverEnabled = true; + break; } } else { if (Debug) {