Tá an tiomantas seo le fáil i:
Florian Brinker
2019-10-13 11:25:04 +02:00
tuismitheoir 4d533165af
tiomantas 2e501bc322
D'athraigh 12 comhad le 277 breiseanna agus 157 scriosta

Féach ar an gComhad

@@ -0,0 +1,28 @@
# You can replace default by Light - Green, for example
- alias: 'Set theme at startup'
trigger:
- platform: homeassistant
event: start
action:
- service: frontend.set_theme
data:
name: default
- alias: 'Set HA 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_template: frontend.set_theme
data_template:
name: >
{% if states.sun.sun.state == "above_horizon" %}
default
{% else %}
default
{% endif %}