Scripts to load themes have stopped working

In the past I’ve used scripts to load different themes from my dashboard, but they’ve all stopped working. Here’s a few I have

theme_minimalist_light:
  alias: Minimalist Light Theme
  sequence:
    - service: frontend.set_theme
      data:
        name: minimalist-desktop
        mode: light

theme_minimalist_dark:
  alias: Minimalist Dark Theme
  sequence:
    - service: frontend.set_theme
      data:
        name: minimalist-desktop
        mode: dark

theme_google_light:
  alias: Google Light Theme
  sequence:
    - service: frontend.set_theme
      data:
        name: Google Theme
        mode: light

theme_google_dark:
  alias: Google Dark Theme
  sequence:
    - service: frontend.set_theme
      data:
        name: Google Theme
        mode: dark

I’ve made sure Backend-selected is the theme set in Settings.

Anyone know why they won’t work anymore? :thinking:

There have been significant changes to the frontend theme variables in the last couple of updates. The service for changing the theme is the same but your themes variables very likely need updating.

Thanks, I was wondering if it was a ‘breaking changes’ kind of thing.

I’ve tried everything I can think of but have now seen other posts saying it’s stopped working for other people. I’m beginning to think this is a big.

The service still works for me, however I do not use the mode: dark/light option. Try it with that commented out.

Strange, that doesn’t do anything for me :thinking:

Hi,
I have the same issue with my scripts.
did you find a solution ?