Metrology-for-Hass icon indicating copy to clipboard operation
Metrology-for-Hass copied to clipboard

Feature Request: Separate light and dark themes.

Open DarkFox opened this issue 2 years ago • 2 comments

It would be great to have separated out light and dark themes.

I'm one of those dinosaurs still using automations, to change the theme for all devices, regardless of their "dark mode" setting (in fact, some of my wall mounted tablets don't even support it).

Currently, I'm getting by, by manually editing the theme after every update, but it would be nice to have as standard.

This is the modification I use currently:


Metro Blue Light: &metro-blue-light
  <<: *metro-common-light

  primary-color: "#0078d7"
  rgb-primary-color: "0,120,215"
  rgb-primary-color-darker: "0,91,163"
  rgb-primary-color-lighter: "0,141,253"
  hue-primary-color: "207deg"

  accent-color: "#008dfd"
  rgb-accent-color: "0,141,253"

  card-mod-theme: "Metro Blue Light"

Metro Blue Dark: &metro-blue-dark
  <<: *metro-common-dark

  primary-color: "#0078d7"
  rgb-primary-color: "0,120,215"
  rgb-primary-color-darker: "0,91,163"
  rgb-primary-color-lighter: "0,141,253"
  hue-primary-color: "207deg"

  accent-color: "#008dfd"
  rgb-accent-color: "0,141,253"

  card-mod-theme: "Metro Blue Dark"

DarkFox avatar Jul 09 '22 22:07 DarkFox

Thanks for the suggestion!

Would HA support using light/dark modes in automations in long run? Is there a feature request to them that we can tag this to in long run?

I understand that what I had implemented is their long term solution, so I'll keep this request here with your code for those who needs this functionality in the mean time.

Madelena avatar Jul 10 '22 10:07 Madelena

Unfortunately, the way dark/light modes work, with regards to setting it using a service call, is that you can set which theme to use for light mode, and which for dark mode. There's no way to force all clients to dark/light mode.

Hence, to force all clients (that use "backend-selected" theme) to either a dark or light theme, the themes have to be separate.

DarkFox avatar Jul 11 '22 14:07 DarkFox