From 2a8767050f5b4829dbcc1391900bb708c76511ef Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 30 Mar 2022 23:05:51 +0200 Subject: [PATCH 1/3] Update pages.py --- apps/nspanel-lovelace-ui/luibackend/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index b7d6d436..f00c11fc 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -63,7 +63,7 @@ class LuiPagesGen(object): if self._ha_api.entity_exists(we_name): we = self._ha_api.get_entity(we_name) else: - LOGGER.error("Skipping Weather Update, entitiy not found") + LOGGER.error("Skipping Weather Update, entity not found") return icon_cur = get_icon_id_ha("weather", state=we.state) @@ -82,7 +82,7 @@ class LuiPagesGen(object): icon = get_icon_id_ha("weather", state=we.attributes.forecast[i-1]['condition']) down = f"{we.attributes.forecast[i-1]['temperature']} {unit}" else: - LOGGER.info(f"Forecast 1 is overrriden with {wOF}") + LOGGER.info(f"Forecast {i} is overriden with {wOF}") icon = None name = None if type(wOF) is dict: From 407d22c245d575a64b8c06eaf5584135f905c468 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 30 Mar 2022 23:08:10 +0200 Subject: [PATCH 2/3] Add weather override examples --- appdaemon/apps.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/appdaemon/apps.yaml b/appdaemon/apps.yaml index 59be7e2b..43f7ac28 100644 --- a/appdaemon/apps.yaml +++ b/appdaemon/apps.yaml @@ -19,6 +19,11 @@ nspanel-1: timeFormat: "%H:%M" dateFormat: "%A, %d. %B %Y" # ignored if babel python package is installed weather: weather.example + weatherOverrideForecast3: sensor.nas_cpu_perc + weatherOverrideForecast4: + sensor.solar_power_current: # use this for overriding name and icon + name: Zon + icon: solar-power pages: - type: cardEntities heading: Example Page 1 @@ -56,4 +61,4 @@ nspanel-1: - type: cardMedia item: media_player.spotify_user - type: cardAlarm - item: alarm_control_panel.alarmo \ No newline at end of file + item: alarm_control_panel.alarmo From b0ec049d1730fa442e23c8400cd87bb1d966cfc5 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 30 Mar 2022 23:09:02 +0200 Subject: [PATCH 3/3] Update apps.yaml --- appdaemon/apps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appdaemon/apps.yaml b/appdaemon/apps.yaml index 43f7ac28..3304263f 100644 --- a/appdaemon/apps.yaml +++ b/appdaemon/apps.yaml @@ -22,7 +22,7 @@ nspanel-1: weatherOverrideForecast3: sensor.nas_cpu_perc weatherOverrideForecast4: sensor.solar_power_current: # use this for overriding name and icon - name: Zon + name: Sonne icon: solar-power pages: - type: cardEntities