catppuccin / home-assistant

🏠 Soothing pastel theme for Home Assistant
MIT License
156 stars 11 forks source link

Switch between light and dark theme according to the system theme #21

Open Sanqui opened 1 month ago

Sanqui commented 1 month ago

The default Home Assistant theme can switch between light and dark automatically according to the system theme (at least on Firefox on Linux). It would be awesome if Catppuccin similarly supported switching between the Latte theme and one of the dark themes (doesn't matter which one to me).

sedax90 commented 4 days ago

You can create a simple automation:

alias: Imposta tema predefinito all'avvio
description: ""
triggers:
  - trigger: homeassistant
    event: start
conditions: []
actions:
  - action: frontend.set_theme
    metadata: {}
    data:
      mode: light
      name: Catppuccin Latte
  - action: frontend.set_theme
    metadata: {}
    data:
      name: Catppuccin Mocha
      mode: dark
mode: single