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