Comments (9)
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.
I use an automation for it:
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:
from lovelace-mushroom-themes.
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.
No, the mode option has no effect on Mushroom theme. This is exactly the issue.
from lovelace-mushroom-themes.
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.
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.
@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.
I think it should work but I can not confirm. Mushroom theme is like every other theme.
from lovelace-mushroom-themes.
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)
- [Bug]: 0.0.5 dont apply on hass 2022.10.5 HOT 3
- Unable to install
- Attempting to install/download however it issues an error stating that it requires 2022.11? Selecting "download" goes into endless wait.
- 0.0.6 requires pre release version of home assistant HOT 2
- can't install because is asking for 2022.11.0b0 to be installed HOT 1
- Sudden appearance of chip border after update 2.2.0 HOT 2
- Ability to keep changes after update HOT 2
- New Theme (Mix of themes) Square theme with round Icons HOT 1
- HA 10.11 Borders HOT 1
- Chip Outline HOT 3
- 2022.12.0 - Climate Card HOT 1
- dashboard header color
- Mushroom Entity Card: Default color differs HOT 4
- Latest update crashed all cards on Samsung Fridge HOT 1
- Climate Card Increment Area Font Size Question
- Add markdown support to Title card HOT 1
- Map background to dark HOT 4
- Change background color for number card HOT 1
- custom element doesn't exist: mushroom-chip-card HOT 1
- Shape Icon Colors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovelace-mushroom-themes.