GithubHelp home page GithubHelp logo

Comments (3)

reptilex avatar reptilex commented on May 26, 2024

It seems like the colours I rely upon from home assistant that are defined there as variables are missing from the css you are using. I have never tried IOBroker can you give me a hint on how to set it up so I can try it? But probably this is a completely different software, so don't get your hopes up to much of me supporting it.

from tesla-style-solar-power-card.

Cumulus7 avatar Cumulus7 commented on May 26, 2024

Hi,

i changed the colors with search-and-replace in your card.js to:

var(--info-color) -> var(--label-badge-yellow)
var(--success-color) -> var(--label-badge-green)
var(--warning-color) -> var(--label-badge-red)

result:
image

Some Icons seem misplaced, but the result is definately better. :-)

I will ask the IOBroker programmer where to define your used colors in their Lovelace implementation.

Additional suggestion:
-maybe we could configure the colors in the card-configuration?
-That way a user could choose to have the battery blue, grid pink and house in bright orange :-).

like:

house-color: var(--label-badge-yellow)
or maybe even better as entity independet like
color1: var(--label-badge-yellow)

For easy configuration and backwards-compatibility all values defaulting to your default settings, but changeable.

THX
Markus

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 26, 2024

There is an event on home assistant that triggers a resize and then everything looks good, seems IOBroker is not doing that.

from tesla-style-solar-power-card.

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.