mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
implemented #193
This commit is contained in:
@@ -79,7 +79,7 @@ For more detailed Instructions see the following Sections:
|
|||||||
|
|
||||||
This section describes the Installation Steps for HomeAssistant, follow each step.
|
This section describes the Installation Steps for HomeAssistant, follow each step.
|
||||||
|
|
||||||
<details><summary>1. Installing HomeAssiant Add-Ons</summary>
|
<details><summary>1. Installing HomeAssistant Add-Ons</summary>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
### Installing AppDaemon
|
### Installing AppDaemon
|
||||||
@@ -107,7 +107,7 @@ Install Studio Code Server from Home Assistant's Supervisor Add-on Store to easi
|
|||||||
</p>
|
</p>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>2. Installing HomeAssiant Community Store</summary>
|
<details><summary>2. Installing HomeAssistant Community Store</summary>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
### Installing HACS
|
### Installing HACS
|
||||||
@@ -459,7 +459,7 @@ key | optional | type | default | description
|
|||||||
`weatherOverrideForecast4` | True | complex | `None` | sensor entity from home assistant here to override the forth weather forecast item on the screensaver
|
`weatherOverrideForecast4` | True | complex | `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
|
`doubleTapToUnlock` | True | boolean | `False` | requires to tap screensaver two times
|
||||||
`alternativeLayout` | True | boolean | `False` | alternative layout with humidity
|
`alternativeLayout` | True | boolean | `False` | alternative layout with humidity
|
||||||
`defaultCard` | True | string | `None` | default page after exiting screensaver; only works with top level cards defined in cards; needs to be a navigation item, see subpages (navigate.type_key)
|
`defaultCard` | True | string | `None` | default page after exiting screensaver; only works with top level cards defined in cards; needs to be a navigation item, see subpages (navigate.type_key) This config option will also be evaluated as a HomeAssistant Template.
|
||||||
`key` | True | string | `None` | Used by navigate items
|
`key` | True | string | `None` | Used by navigate items
|
||||||
|
|
||||||
Example for the weatherOverride config options:
|
Example for the weatherOverride config options:
|
||||||
|
|||||||
@@ -136,8 +136,12 @@ class LuiController(object):
|
|||||||
# internal buttons
|
# internal buttons
|
||||||
if entity_id == "screensaver" and button_type == "bExit":
|
if entity_id == "screensaver" and button_type == "bExit":
|
||||||
# get default card if there is one
|
# get default card if there is one
|
||||||
if self._config.get("screensaver.defaultCard") is not None:
|
defaultCard = self._config.get("screensaver.defaultCard")
|
||||||
dstCard = self._config.searchCard(self._config.get("screensaver.defaultCard"))
|
if defaultCard is not None:
|
||||||
|
defaultCard = self._ha_api.render_template(defaultCard)
|
||||||
|
self._ha_api.log(f"Searching for the following page as defaultPage: {defaultCard}")
|
||||||
|
dstCard = self._config.searchCard(defaultCard)
|
||||||
|
self._ha_api.log(f"Result for the following page as defaultPage: {dstCard}")
|
||||||
if dstCard is not None:
|
if dstCard is not None:
|
||||||
self._previous_cards = []
|
self._previous_cards = []
|
||||||
self._previous_cards.append(dstCard)
|
self._previous_cards.append(dstCard)
|
||||||
|
|||||||
Reference in New Issue
Block a user