- service: input_boolean.turn_on
data_template:
entity_id: >-
- {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %}
+ {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %}
input_boolean.home_mode_day
{% else %}
input_boolean.home_mode_night
{% endif %}
+ - service: frontend.set_theme
+ data_template:
+ name: >-
+ {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %}
+ default
+ {% else %}
+ midnight
+ {% endif %}
+
######################################################################
# Home Assistant: Management of Speech Notifications
######################################################################