Frontend.set_theme not working

Hi All,

Can someone find the issue? This worked in the past.
The profiles where i logged in are set on backend selected.
On my iMac Safari and Fully Kiosk Browser the themes are not changing.

- id: "7e98e973-70c1-4809-8fec-56dbf82b492b"
  alias: "System - Automatic Theme Change Day/Night"
  trigger:
    - platform: homeassistant
      event: start

    - platform: sun
      event: sunset

    - platform: sun
      event: sunrise

  condition: []

  action:
    - service: frontend.set_theme
      data:
        name: "{{ 'iOS Light Mode' if is_state('sun.sun', 'above_horizon') else 'iOS Dark Mode' }}"

you need to have backend-selected set in on your user

Thats already done… wrote that in my message…

Are you using the correct names then? Your code is correct. So it’s either backend-selected or the names are wrong.

Same name as always. Also debug option in HA doesn’t show any issues…

Will be strange is this is something with fkb and safari on same time

:man_shrugging: working on iOS/safari, windows/chrome, windows/edge. Don’t have access to a mac & safari or fully kiosk.

When I do it in development tool > service then both browsers are changing correct…
Automation is enabled…

I have to dig into this deeper

I realy don’t know what this is.
I opened HA in Chrome on my Samsun Tablet. Theme set to backend. On my Safari on MacOS same situation. When I do manual set_theme my Safari is changing but not on my Tablet.

I opened also Chrome and Firefox on my MacOS and in Safari in change theme. All browsers on my MacOS Changing…

But nothing happen on Tablet. What can it be?

Are you expecting the theme to change on your tablet when you change it on your MAC?

Also, keep in mind, older IOS devices aren’t really supported. I.e. gen 2 ipads etc

It worked always but at certain moment it was stopping working.
My Tablet is a Android with FKB.

On all browsers I logged in with same username. All browsers on iMac are changing correct only the tablet is not work

I’m trying to get you to elaborate, which you aren’t doing.

Are you changing the theme on the tablet? Or are you changing the theme on your iMac and expecting the change to occur on your tablet?

Yes!

This automation was always working. For al browsers that loggin on HA.

- id: "7e98e973-70c1-4809-8fec-56dbf82b492b"
  alias: "System - Automatic Theme Change Day/Night"
  trigger:
    - platform: homeassistant
      event: start
    - platform: sun
      event: sunset
    - platform: sun
      event: sunrise
  condition: []
  action:
    - service: frontend.set_theme
      data:
        name: "{{ 'iOS Light Mode' if is_state('sun.sun', 'above_horizon') else 'iOS Dark Mode' }}"

Dude… there are 2 questions that I asked that are mutually exclusive. YES cannot be to both. Answer the question.

YES / NO?

YES / NO?

No I change theme on iMac whit Developer tool > service action
And yes I expecting it will change also on my tablet. (because the automation was working always and on certain moment it stopped working) So yes I expect that when I use Developer tool >. Service that all browsers will change their Theme.

On your tablet, if manually changing a theme in FKB works when you select it from the theme page, but it does not work when backed-selected is used, then the issue lies in FKB.

Tried to do the same on the tablet. Developer Tool > Service.
Browser on tablet itself doesn’t change but browsers on my iMac are changing.

Tried te steps on FKB and Chrome browser on my Tablet… Only browsers on iMac change.
Its not a issue of FKB … very strange…

Can it be a issue with the HTTP section in configuration.yaml?

no.

The issue is most likely on your OS and it’s browser. However I can’t get any of that information out of you because you keep focusing on the service.

So please. On your tablet MANUALLY change the theme. Go to your user, select another theme. Answer the following question: Does the theme change when you manually change it?