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
Add ability to choose light or dark mode in automation #27
Comments
You can select "auto" in your profile and the theme will be automatically adapt with your mobile/computer. |
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. |
No, the mode option has no effect on Mushroom theme. This is exactly the issue. |
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. |
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 However, it doesn't do anything on my mobile. |
@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? |
I think it should work but I can not confirm. Mushroom theme is like every other theme. |
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: {} |
I would like to automatically switch from light to dark mode depending on the sun position, via an automation. But actually, there's no way to do it with this theme.
Could you consider adding such a feature?
The text was updated successfully, but these errors were encountered: