Okay updated tot he latest version of HA yesterday, and it looks like the themes automation that I had is now broken due to the “light” and “dark” mode of the default theme.
I used to have the ‘default’ theme as my primary theme during the day, and then after sunset I had an automation switch it to a custom dark theme, but that no longer works.
is there maybe a way to use the ‘default’ theme, but just create a automation to switch it between ‘light’ and ‘dark’ mode depending on the state of the sun?
Just out of my curiosity. Having it this way, didn’t you have the issue that although you wanted to have themes you were having to set that on every device?
Or was this working regardless device? In my situation if I login with a user from a new device or session I have to select a theme from there always. It doesn’t remember…
It would work regardless of device, currently I am the only user on my HA, but if i logged in via Ipad, laptop, android device, the theme would be consistent across devices.
I’ve found one way you can do it if you want to switch between a custom dark theme and the default light one without the dark/light toggles showing in the profile.
Create an almost empty theme called something like “light”. The theme can be as basic as:
light:
dummy-variable: ""
The dummy variable is needed there as a theme needs to be a dictionary. Since this theme doesn’t override anything from the “default” theme, it is effectively the same as “default” but without light and dark options.
Update your automation to call the frontend.set_theme service twice, with mode “light” and “dark” for the same theme, like this: