micor changes and clean up.

This commit is contained in:
Mahasri Kalavala
2019-12-20 10:32:28 -05:00
parent a3c869e9e8
commit 87961b393c
45 changed files with 1628 additions and 1728 deletions

View File

@@ -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 }}'