Giter VIP home page Giter VIP logo

Comments (9)

piitaya avatar piitaya commented on June 1, 2024

You can select "auto" in your profile and the theme will be automatically adapt with your mobile/computer.
There is no service for now in Home Assistant to choose the theme mode (light or dark)

from lovelace-mushroom-themes.

welcoMattic avatar welcoMattic commented on June 1, 2024

I use an automation for it:

image

This automatically change the theme to use, depending on the sun position.

But in the "Set theme" service, there is an option to choose light or dark mode:

image

from lovelace-mushroom-themes.

TheFes avatar TheFes commented on June 1, 2024

The Blueprint needs to be adjusted to support modes. Contact the blueprint creator for that, or create the automation yourself using the state of sun.sun as the trigger and using the serivce call shown in your screenshot as an action.

from lovelace-mushroom-themes.

welcoMattic avatar welcoMattic commented on June 1, 2024

No, the mode option has no effect on Mushroom theme. This is exactly the issue.

from lovelace-mushroom-themes.

piitaya avatar piitaya commented on June 1, 2024

The "set theme" service is not to choose which mode to use. It set a theme for this mode. The mode is managed by your phone/computer, not home assistant.
Documentation : https://www.home-assistant.io/integrations/frontend/#service-set_theme

from lovelace-mushroom-themes.

TheFes avatar TheFes commented on June 1, 2024

Well, it works on my desktop, If I use

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

the Dark theme gets selected, when using dark: light the light theme gets selected.

However, it doesn't do anything on my mobile.

from lovelace-mushroom-themes.

sviperz avatar sviperz commented on June 1, 2024

@piitaya is there any workaround similar to what is proposed here? Madelena/Metrology-for-Hass#5 (comment)

Is it possible to do the same for Mushroom themes?

from lovelace-mushroom-themes.

piitaya avatar piitaya commented on June 1, 2024

I think it should work but I can not confirm. Mushroom theme is like every other theme.

from lovelace-mushroom-themes.

sviperz avatar sviperz commented on June 1, 2024

OK, but what do I need to put instead of *metro-common-dark / *metro-common-light from the example above?

I've tried this, but it doesn't work, both themes still have Auto/Light/Dark modes:

Mushroom Dark:
  modes:
    dark: {}

Mushroom Light:
  modes:
    light: {}

from lovelace-mushroom-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.