From: Giorgio Ravera Date: Tue, 19 Feb 2019 15:59:22 +0000 (+0100) Subject: minor fix X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=a8599b6c0c086aad847a13eaadf4d5700be6bd69;p=homeassistant.git minor fix --- diff --git a/automation/themes.yaml b/automation/themes.yaml index e5e516da..96677b0b 100644 --- a/automation/themes.yaml +++ b/automation/themes.yaml @@ -17,8 +17,8 @@ - service: frontend.set_theme data_template: name: >- - {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %} - default - {% else %} + {% if trigger.to_state.state == 'on' %} midnight + {% else %} + default {% endif %}