diff --git a/HMI/nspanel.HMI b/HMI/nspanel.HMI index 3d283f58..55032feb 100644 Binary files a/HMI/nspanel.HMI and b/HMI/nspanel.HMI differ diff --git a/HMI/nspanel.tft b/HMI/nspanel.tft index 8e3817eb..91fcc516 100644 Binary files a/HMI/nspanel.tft and b/HMI/nspanel.tft differ diff --git a/README.md b/README.md index 70b2ba59..a7e81559 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,7 @@ key | optional | type | default | description `weatherOverrideForecast2` | True | string | `None` | sensor entity from home assistant here to override the second weather forecast item on the screensaver `weatherOverrideForecast3` | True | string | `None` | sensor entity from home assistant here to override the third weather forecast item on the screensaver `weatherOverrideForecast4` | True | string | `None` | sensor entity from home assistant here to override the forth weather forecast item on the screensaver +`doubleTapToUnlock` | True | boolean | `False` | requires to tap screensaver two times `pages` | False | complex | | configuration for pages on panel #### Schedule screensaver brightness @@ -409,4 +410,23 @@ Reboot Tasmota and try to flash it a second time. Please check your MQTT Topics in your apps.yaml and your mqtt configuration on tasmota. +### How to upgrade from a release to the current development version + +1. Update App in HACS to main + +Click redownload in the menu of the app in HACS. + +Select main version. + +![hacs-main](doc-pics/hacs-main.png) + +**Wait for it to load, dropdown needs to be selectable again** + +Click download. + +2. Restart AppDaemon + +3. Flash current Development Firmware in Tasmota Console. + +`FlashNextion http://nspanel.pky.eu/lui.tft` diff --git a/apps/nspanel-lovelace-ui/luibackend/controller.py b/apps/nspanel-lovelace-ui/luibackend/controller.py index 096817a2..6b117361 100644 --- a/apps/nspanel-lovelace-ui/luibackend/controller.py +++ b/apps/nspanel-lovelace-ui/luibackend/controller.py @@ -126,8 +126,10 @@ class LuiController(object): def button_press(self, entity_id, button_type, value): LOGGER.info(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ") # internal buttons - if entity_id == "screensaver" and button_type == "enter": - self._pages_gen.render_page(self._current_page) + if entity_id == "screensaver" and button_type == "bExit": + if self._config.get("doubleTapToUnlock") and int(value) >= 2: + self._pages_gen.render_page(self._current_page) + return if button_type == "bExit": self._pages_gen.render_page(self._current_page) diff --git a/doc-pics/hacs-main.PNG b/doc-pics/hacs-main.PNG new file mode 100644 index 00000000..d92d6928 Binary files /dev/null and b/doc-pics/hacs-main.PNG differ