GithubHelp home page GithubHelp logo

Comments (13)

reptilex avatar reptilex commented on May 26, 2024

I did a quick implementation of it, currently it's not the default, althhough I'm thinking it maybe shoud. Add "hide_inactive_lines" in the card config and set it to 1. Then you will have only active lines.

from tesla-style-solar-power-card.

fvgarrel avatar fvgarrel commented on May 26, 2024

Cool, thanks for the quick implementation and response, I love it :)
tesla
homeass

from tesla-style-solar-power-card.

DRAGandDROP avatar DRAGandDROP commented on May 26, 2024

when enabling the feature the "points" do not move anylonger. only the line is visible. Is it a feature or a bug? ;)
image

just found it. it's because i'm using
show_w_not_kw: 1
this causes the points to stop moving.

from tesla-style-solar-power-card.

PierreScerri avatar PierreScerri commented on May 26, 2024

Dots were moving with 9.1.2 and show_w_not_kw:1
Dots stopped moving with 9.2.1 and show_w_not_kw:1

from tesla-style-solar-power-card.

msim888 avatar msim888 commented on May 26, 2024

There is an error in 9.2.1

The speed variable is wrong

The last a few rows have to be:

  getSpeed(value) {
    var speed = 0;
    
    if (value > 0 && this.w_or_kw !== 'W') {
      speed = 0.07 * value;
    } else if (value > 0 && this.w_or_kw === 'W') {
      speed = 0.00007 * value;
    }
    
    return speed;
  }
}

customElements.define('tesla-style-solar-power-card', TeslaStyleSolarPowerCard);

Then everything works very well:

image

from tesla-style-solar-power-card.

msim888 avatar msim888 commented on May 26, 2024

But I have another issue:

image

There is solar circle even it the solar power is 0

from tesla-style-solar-power-card.

fvgarrel avatar fvgarrel commented on May 26, 2024

But I have another issue:

image

There is solar circle even it the solar power is 0

Because your battery is charging.

from tesla-style-solar-power-card.

msim888 avatar msim888 commented on May 26, 2024

Yeah, but it is charging only from grid, not from sun - it's night here.

from tesla-style-solar-power-card.

fvgarrel avatar fvgarrel commented on May 26, 2024

Yeah, but it is charging only from grid, not from sun - it's night here.

Yes. The Solar to Battery Path is activated when the battery is loading. Maybe the Code should look from where the energy is coming.

from tesla-style-solar-power-card.

msim888 avatar msim888 commented on May 26, 2024

Oh, I see, Thanks, fvgarrel!

from tesla-style-solar-power-card.

LanceMcCarthy avatar LanceMcCarthy commented on May 26, 2024

Hiding the lines when not active is the behavior of the Tesla app. However, I do not think this should be the default for the card. Let me explain...

If the default for the card was to hide them, the the user wouldn't know if a missing line was due to an incorrect configuration or it is working as expected

Therefore, my vote is to show lines by default.

That said, you can add a note at the end of the Getting Started steps to set the "HideLines property once everything is confirmed working".

if you do make hiding the lines the default behavior, please show an error state (i.e. dotted red line for an incorrectly configured setting)

from tesla-style-solar-power-card.

msim888 avatar msim888 commented on May 26, 2024

Totally agree with LanceMcCarthy.
My vote is to show lines by default too.

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 26, 2024

I somehow overwrote the speed changes for the w_not_kw behaviour, very sorry and thanks for raising the issue. It should be online, but I have not yet created a new release. Will do so as soon as I have figured out the issue with the charging line duplication when charging from grid. I have created another issue for that @msim888 can you follow that one, I have some questions there.
On the bright side, all but those lines work so I will see this as a feature finish state and close the issue.

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.