From ae8b8ecd23e046014440f9a26353185f6a15340f Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Fri, 27 May 2022 20:14:41 +0200 Subject: [PATCH] clairfy theme config --- appdaemon/README.md | 8 ++- appdaemon/{apps.yaml => apps-simple.yaml} | 0 appdaemon/apps-theme.yaml | 56 +++++++++++++++++++ appdaemon/screensaver-theme-include/apps.yaml | 15 +++++ .../screensaver-theme.yaml | 0 5 files changed, 77 insertions(+), 2 deletions(-) rename appdaemon/{apps.yaml => apps-simple.yaml} (100%) create mode 100644 appdaemon/apps-theme.yaml create mode 100644 appdaemon/screensaver-theme-include/apps.yaml rename appdaemon/{ => screensaver-theme-include}/screensaver-theme.yaml (100%) diff --git a/appdaemon/README.md b/appdaemon/README.md index b7599987..6c94b1f5 100644 --- a/appdaemon/README.md +++ b/appdaemon/README.md @@ -6,10 +6,14 @@ This folder contains some example configs Example config for appademon itself -## apps.yaml +## apps-simple.yaml "Simple" Example Config with all possible entity types ## screensaver-theme.yaml -Example screensaver theme configuration. All entries are commented out but you can uncomment as appropriate to enable. \ No newline at end of file +Example screensaver theme configuration. All entries are commented out but you can uncomment as appropriate to enable. + +## screensaver-theme-include + +Exmaple for screensaver theme configuration in seperate file to reuse it on muliple nspanels \ No newline at end of file diff --git a/appdaemon/apps.yaml b/appdaemon/apps-simple.yaml similarity index 100% rename from appdaemon/apps.yaml rename to appdaemon/apps-simple.yaml diff --git a/appdaemon/apps-theme.yaml b/appdaemon/apps-theme.yaml new file mode 100644 index 00000000..75f9cc60 --- /dev/null +++ b/appdaemon/apps-theme.yaml @@ -0,0 +1,56 @@ +--- +nspanel-1: + module: nspanel-lovelace-ui + class: NsPanelLovelaceUIManager + config: + panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" + panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" + screensaver: + entity: weather.k3ll3r + theme: !include /config/appdaemon/apps/screensaver-theme.yaml + #background: [220, 0, 0] + #time: [220, 0, 255] + #timeAMPM: [220, 0, 255] + #date: [220, 0, 255] + #tMainIcon: [220, 0, 255] + #tMainText: [220, 0, 255] + #tForecast1: [220, 0, 255] + #tForecast2: [220, 0, 255] + #tForecast3: [220, 0, 255] + #tForecast4: [220, 0, 255] + #tF1Icon: [220, 0, 255] + #tF2Icon: [220, 0, 255] + #tF3Icon: [220, 0, 255] + #tF4Icon: [220, 0, 255] + #tForecast1Val: [220, 0, 255] + #tForecast2Val: [220, 0, 255] + #tForecast3Val: [220, 0, 255] + #tForecast4Val: [220, 0, 255] + #bar: [220, 0, 255] + #tMRIcon: [220, 0, 255] + #tMR: [220, 0, 255] + + #autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable. + #autoWeather: true + + #If you have enabled autoWeather, the following options allow you to customise the colors used for autoWeather. + + #clear-night: [150, 150, 100] + #cloudy: [75, 75, 75] + #exceptional: [255, 50, 50] + #fog: [150, 150, 150] + #hail: [200, 200, 200] + #lightning: [200, 200, 0] + #lightning-rainy: [200, 200, 150] + #partlycloudy: [150, 150, 150] + #pouring: [50, 50, 255] + #rainy: [100, 100, 255] + #snowy: [150, 150, 150] + #snowy-rainy: [150, 150, 255] + #sunny: [255, 255, 0] + #windy: [150, 150, 150] + #windy-variant: [255, 125, 125] + cards: + - type: cardEntities + entities: + - entity: switch.example_item \ No newline at end of file diff --git a/appdaemon/screensaver-theme-include/apps.yaml b/appdaemon/screensaver-theme-include/apps.yaml new file mode 100644 index 00000000..dadd1545 --- /dev/null +++ b/appdaemon/screensaver-theme-include/apps.yaml @@ -0,0 +1,15 @@ +--- +nspanel-1: + module: nspanel-lovelace-ui + class: NsPanelLovelaceUIManager + config: + panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" + panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" + updateMode: "auto-notify" + screensaver: + entity: weather.k3ll3r + theme: !include /config/appdaemon/apps/screensaver-theme.yaml + cards: + - type: cardEntities + entities: + - entity: switch.example_item \ No newline at end of file diff --git a/appdaemon/screensaver-theme.yaml b/appdaemon/screensaver-theme-include/screensaver-theme.yaml similarity index 100% rename from appdaemon/screensaver-theme.yaml rename to appdaemon/screensaver-theme-include/screensaver-theme.yaml