-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Home/Away state coloring not consistent #6035
Comments
Colors are not tied to states (or the most states) just a few exceptions. We could maybe add home and away to this list, not sure if that will work with coloring the other states (zones) a device tracker could be in. |
How about always ensuring green for home and red for away (like on binary sensors). And then the zones would just be random colors. |
Maybe out of scope here, but since you’re talking state colors: Not talking custom_ui here, or even templates (would be great too though...). No, simply allow the user to set the state colors used throughout HA. I mean who would want Color red to dominate the frontend, it is so ugly and harsh.... I always use firebrick, or maroon ;-) |
That would be theming, not something that should be in config |
well, when you think of it, why not? Wouldn't it be handy to have that in the GUI too. Theming now is very much a yaml driven process, needing acces to the file system etc etc. It would also prevent the many questions/challenges people face when using a theme that doesn't (yet) use all needed and/or available/necessary color settings, and their states get lost because the background uses the same color as the secondary-color..... liken the dark color themes lately. As said, probably out of scope here, but please consider that elsewhere in the frontend/gui development? getting it back in scope: a small subset of these theme colors, like primary and secondary-colors, or these on/off colors, could be added to /profile page where we now also have the theming settings. |
talking about theming, please allow me this here (dont want to bother you with a dedicated issue/FR)
this entity theming has long been gone since Lovelace doesnt support it, but Ive never thought of asking you if this would be an minor tweak in the custom-ui, or if that is simply no longer possible using Lovelace. Reason I ask is that theming was a perfect way of accenting the state of an entity that has an entity_picture and not an icon. The entity_picture can be the same for all states, but the color could then reflect the state, and signal the user in the frontend. If at all possible, Id take this to a dedicated thread, and ask for some assistance to bring that back too, just like icon_color. Of not, Ill forget about it. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
@bramkragten Any news/idea on this? |
A PR is welcome, add the colors to https://github.com/home-assistant/frontend/blob/dev/src/components/state-history-chart-timeline.js#L75-L81 and make sure it doesnt overlap with the other colors zone can get. |
Thanks I will try 👍 |
Checklist
The problem
For one person, the away state is purple and home is turquoise:
For another person away is turquoise and home is purple:
Expected behavior
The colors should be consistent.
Steps to reproduce
Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
The text was updated successfully, but these errors were encountered: