Advertisement
BoorAndras

HomeAssistant UI Theme changer

Jun 1st, 2025
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.16 KB | Housing | 0 0
  1. action: frontend.set_theme
  2. data_template:
  3.   name: |
  4.    {% if states('input_boolean.party_mode') == 'on' %}
  5.       Google Dark Party
  6.     {% else %}
  7.       {% if is_state('sun.sun', 'above_horizon') and now().hour > 6 %}
  8.         {% if (states('binary_sensor.adventi_idoszak')=='on') %}
  9.             Google Light Xmas Theme
  10.         {% elif is_state('sensor.season', 'spring') %}
  11.           Google Light Spring Theme
  12.         {% elif is_state('sensor.season', 'winter') %}
  13.             Google Light Winter Theme
  14.         {% elif is_state('sensor.season', 'summer') %}
  15.           Google Light Summer Theme
  16.         {% else %}
  17.           Google Light Autumn Theme
  18.         {% endif %}
  19.       {% else %}
  20.         {% if (states('binary_sensor.adventi_idoszak')=='on') %}
  21.           Google Dark Xmas Theme
  22.         {% elif is_state('sensor.season', 'spring') %}
  23.           Google Dark Spring Theme
  24.         {% elif is_state('sensor.season', 'winter') %}
  25.           Google Dark Winter Theme
  26.         {% elif is_state('sensor.season', 'summer') %}
  27.           Google Dark Summer Theme
  28.         {% else %}
  29.           Google Dark Autumn Theme
  30.         {% endif %}
  31.       {% endif %}
  32.     {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement