From 9af4451353eb58694aacbb78352637df6204c353 Mon Sep 17 00:00:00 2001 From: 31c0fe9c6dbd74bcdde92e1d2aaa03e1d272f75f Date: Mon, 6 Jun 2022 16:26:26 +1000 Subject: [PATCH] Home Assistant Git Exporter --- .../ui_lovelace_minimalist/set_theme.yaml | 40 +++++++++++++++++++ lovelace/lovelace_resources.yaml | 3 ++ 2 files changed, 43 insertions(+) create mode 100644 config/blueprints/automation/ui_lovelace_minimalist/set_theme.yaml diff --git a/config/blueprints/automation/ui_lovelace_minimalist/set_theme.yaml b/config/blueprints/automation/ui_lovelace_minimalist/set_theme.yaml new file mode 100644 index 0000000..4726dbd --- /dev/null +++ b/config/blueprints/automation/ui_lovelace_minimalist/set_theme.yaml @@ -0,0 +1,40 @@ +--- +blueprint: + name: "System Set Default Theme" + description: >- + Set the default themes on start. + domain: "automation" + input: + theme: + name: "Which Theme" + description: "Which theme would you like to set as default on reload / start-up?" + selector: + select: + options: + - "minimalist-desktop" + - "minimalist-mobile" + - "minimalist-mobile-tapbar" + + mode: + name: "Which Mode should it be default in" + description: "Default in Dark or Light mode?" + selector: + select: + options: + # based on sun can be added later + - "light" + - "dark" + +mode: "single" + +trigger: + - platform: "homeassistant" + event: "start" + - platform: "event" + event_type: "automation_reload" + +action: + - service: "frontend.set_theme" + data: + name: !input "theme" + mode: !input "mode" diff --git a/lovelace/lovelace_resources.yaml b/lovelace/lovelace_resources.yaml index 4c7a88c..5332ed6 100644 --- a/lovelace/lovelace_resources.yaml +++ b/lovelace/lovelace_resources.yaml @@ -140,3 +140,6 @@ items: - id: 713c44b772b54d5ebdb0061a188e2f7b type: module url: /hacsfiles/custom-icons/custom-icons.js?hacstag=491465538021 +- id: c6b759faf93a4e22ab9faa3ebcaa218b + type: module + url: /hacsfiles/button-card/button-card.js?hacstag=146194325342