How does the auto option in theme selection work

Can anyone advise how does the auto option work?

How to automatically select light or dark mode in the default view?

The frontend documentation says nothing about this option.

It monitors the device viewing HA. If it reports it is currently in “night mode” then the dark theme is selected.

As far as I understand (not much) there is no way to switch it manually using the HA backend. For that you need to define your own dark and light themes (which can use the light and dark mode).

Thank you very much for looking into my question. Much appreciated.
I’d agree the ‘feature’ in its current state is not very useful.

However, I found a way. Browser mod has that functionality. Once installed you have to select the ‘register’ browser option and that’s it. The below action will change the theme and mode (light/dark).

  - service: browser_mod.set_theme
    data:
      dark: "{{ iif(is_state('sun.sun', 'above_horizon'), 'light', 'dark') }}"
      theme: default
1 Like