mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-28 00:41:31 +00:00
micor changes and clean up.
This commit is contained in:
@@ -45,30 +45,29 @@ frontend:
|
||||
paper-slider-secondary-color: "#ff93ac"
|
||||
|
||||
###############################################################################
|
||||
# _ _ _
|
||||
# /\ | | | | (_)
|
||||
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
|
||||
# _ _ _
|
||||
# /\ | | | | (_)
|
||||
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
|
||||
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
|
||||
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
|
||||
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
|
||||
#
|
||||
#
|
||||
###############################################################################
|
||||
automation:
|
||||
|
||||
- alias: Random Theme At Startup
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service_template: frontend.set_theme
|
||||
data_template:
|
||||
name: >
|
||||
{% if states.sun.sun.state == "above_horizon" %}
|
||||
{{ ["light_pink", "default"] | random }}
|
||||
{% else %}
|
||||
{{ [ "dark_red" ] | random }}
|
||||
{% endif %}
|
||||
- service_template: frontend.set_theme
|
||||
data_template:
|
||||
name: >
|
||||
{% if states('sun.sun') == "above_horizon" %}
|
||||
{{ ["light_pink", "default"] | random }}
|
||||
{% else %}
|
||||
{{ [ "dark_red" ] | random }}
|
||||
{% endif %}
|
||||
|
||||
- alias: Random Darker Theme At Sunset
|
||||
initial_state: true
|
||||
@@ -88,4 +87,4 @@ automation:
|
||||
action:
|
||||
- service: frontend.set_theme
|
||||
data_template:
|
||||
name: '{{ ["light_pink", "default"] | random }}'
|
||||
name: '{{ ["light_pink", "default"] | random }}'
|
||||
|
Reference in New Issue
Block a user