Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode option doesn't appear to work for set_theme service #338

Closed
4 tasks done
realroywalker opened this issue Jun 30, 2022 · 3 comments
Closed
4 tasks done

Dark mode option doesn't appear to work for set_theme service #338

realroywalker opened this issue Jun 30, 2022 · 3 comments

Comments

@realroywalker
Copy link

My Home Assistant version: 2022.6.7

What I am doing:
I am attempting to set the theme dark mode to change between light/dark mode using the browser_mod.set_theme service call

What I expected to happen:
When the service is called with 'dark: true' dark mode should be selected, when called with 'dark: false' it should select 'light' mode for the theme.

What happened instead:
Nothing appears to happen to the dark/light/auto mode - the named theme is however applied correctly.

Minimal steps to reproduce:

# The least amount of code or steps possible to reproduce my error

service: browser_mod.set_theme
data:
  theme: default
  dark: false

Error messages from the browser console:

CARD-MOD 3.1.5 IS INSTALLED
browser_mod.js:145 BROWSER_MOD 1.5.3 IS INSTALLED    DeviceID: ea2446e5-bb962389
(no additional messages appear when calling the service)

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

@veedubb65
Copy link

veedubb65 commented Jul 12, 2022

This affects me as well. Currently running Home Assistant 2022.7.3 and Browser_Mod 1.5.3.

I also tried with 1.5.2 and it didn't work either.

The piece of script I'm running is:

action:
  - service: browser_mod.set_theme
    data:
      theme: Fluent Purple
      dark: false

dark: true fails as well.

@DJaeger
Copy link

DJaeger commented Jul 15, 2022

I have the same issue with

  - service: browser_mod.set_theme
    data:
      theme: Mushroom
      dark: true

Tried with different themes, that support light and dark mode.
Tried from different browsers with different browsers accessing browser_mod.

Versions:

browser_mod 1.5.3
Home Assistant 2022.7.5
Supervisor 2022.07.0
Operating System 8.2
Frontend 20220707.1 - latest

@thomasloven
Copy link
Owner

Closed because of Browser Mod 2.0 release.
Please see #354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants