-
-
Notifications
You must be signed in to change notification settings - Fork 186
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 transparent background config option #268
Comments
Can you please post a sample config for your card setup so I can test when getting to implementing this? |
Sure.... Just install card-mod from thomasloven and use "style" modificator. BTW. To make your thermostat transparent I guess... just some CSS style need to be overriden (just like ha-card.background below), but I cannot figure out, what style is controling the circle. This is my config. I just changed the type of the card to your (custom:....).
Also.... when I was inspecting CSS I think I found that background circle may change colors depending on the Thermostat state (on, off, heating, cooling) so when we have transparent background it would be nice to change the colors of the numbers or icons (instead of background). |
@sstefanowski the css is here: https://github.com/ciotlosm/lovelace-thermostat-dark-card/blob/master/src/thermostat-dark-card.ts#L184 You might try (until I get to testing) to redo: ha-card svg.dial {
--thermostat-off-fill: #555;
--thermostat-idle-fill: #222;
--thermostat-path-color: rgba(255, 255, 255, 0.3);
--thermostat-heating-fill: #e36304;
--thermostat-cooling-fill: #007af1;
--thermostat-path-active-color: rgba(255, 255, 255, 0.8);
--thermostat-path-active-color-large: rgba(255, 255, 255, 1);
--thermostat-text-color: white;
} To achieve color on numbers & icons you might try: ha-card .dial--state--off .dial_ticks {
fill: var(--thermostat-off-fill);
}
ha-card .dial--state--off .dial__lbl {
fill: var(--thermostat-off-fill);
} Update: The parameter below does not work properly. You can try it, but don't expect good results There is also one undocumented sizing parameter entity: climate.living
type: 'custom:thermostat-dark-card'
diameter: 400 See
|
This thermostat looks awsome. I tried to use it but has minor issue - It's not a bug - just useful extension maybe...
Can we have an option to make it "transparent" - just control to control opacity?
I'm asking as I'm using picture backgrounds in my current thermostat controls (overriding background and unfortunately your control is not transparent and..... I cannot figure out which CSS to override - hmmm.... maybe you could just suggest, which CSS style to override (and how) to make it transparent? (I'm using card-mod from thomasloven to override CSS styles)
Please see the two attachments showing the options:
a) standard thermostat card (with overwritten CSS - background)
b) your version without transparency
I guess you know what I want to achieve :)
Maybe size control would be also nice-to-have, but not necessarily :)
Anyway, good job!
The text was updated successfully, but these errors were encountered: