Dwains Dark Theme
A Lovelace Dark theme based on Dwains Dashboard
Created by Léon van der Linden
Prerequisite
- Make sure you can access youre Home Assistant config files with Samba Share or ssh
Installation Dwains Dark Theme
- Download the
dwains_dark_theme
folder and place in yourconfig/theme
directory. - Make shure you have created a
themes
folder in youreconfig/
directory and added the following code to youreconfiguration.yaml
# Core Configuration
default_config:
frontend:
themes: !include_dir_merge_named themes/
- Reboot Home Assistant or after insatllation Dwains Dark Theme
Selecting Dwains Dark Theme
- Click on youre profile picture
- By
themes
you need to select Dwains Dark Theme
Automation options
Set HA theme for day and night
- When you want to switch automatic between the Dark and Light theme based on the sun, please copy the file
auto_switch_theme.yaml
into youreautomations.yaml
ordirectory
- Reboot Home Assistant
- alias: Set HA theme for day and night
id: set_theme_for_day_and_night
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sun.sun
to: above_horizon
- platform: state
entity_id: sun.sun
to: below_horizon
action:
- service: frontend.set_theme
data:
name: >
{% if states.sun.sun.state == "above_horizon" %}
Dwains Light Theme
{% else %}
Dwains Dark Theme
{% endif %}
Automation for default theme after starup HA
- When you want to have a default theme after startup HA, please copy the file
set_theme_at_startup.yaml
into youreautomations.yaml
ordirectory
- Reboot Home Assistant
- alias: 'Set theme at startup'
trigger:
platform: homeassistant
event: start
action:
service: frontend.set_theme
data:
name: Dwains Dark Theme
Result
![image](upload://eEjeywMzuRU5kXxNaYUrZr2Yfk5.
Enjoy my Lovelace theme? Help me out for a couple of or a !