GithubHelp home page GithubHelp logo

Comments (16)

reptilex avatar reptilex commented on May 27, 2024

This is an issue with your sensors. My sensor does this on it's own so if you are having this issue you might need a template sensor

from tesla-style-solar-power-card.

MindFreeze avatar MindFreeze commented on May 27, 2024

The thing is I often have grid_to_battery but 0 grid_consumption. This is just my use case. I can charge the batteries with the grid being otherwise cut off.
So if do the addition in my sensors, the lines wouldn't make sense.

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

I think I did not understand your problem in the first place. What is wrong in the display currently? can you tell me your data and maybe post an image? I thought your icon was showing the wrong sum. This could be handled with a third sensor (template sum sensor) for that icon. But it seems I misunderstood

from tesla-style-solar-power-card.

MindFreeze avatar MindFreeze commented on May 27, 2024

https://pasteboard.co/JMdkvef.png
This is what I would get even though I have 1kw going to the battery. It is not calculated in the battery display or the grid display.
If I add that to grid_consumption, it would show proper kW for the grid. But if I my grid_consumption is otherwise 0, it would show a line going to the house which would be wrong.

You are right that the grid part can be handled with a new sensor like totoal_grid_consumption similar to solar_yield. But that would still leave the battery kW wrong.

from tesla-style-solar-power-card.

MindFreeze avatar MindFreeze commented on May 27, 2024

IMO the new sensor path is redundant and so it the solar_yield sensor. After all, it is just solar_consumption+battery_charging.
If we define the power over all the paths, we can easily calculate the kW that should be displayed in the icons.

from tesla-style-solar-power-card.

headbouyJB avatar headbouyJB commented on May 27, 2024

solar-yield may also include solar that you're exporting, as well as consumption and battery charging.
I spent far too long trying to work out the logic to calculate the required sensors based on the sensors I have available :-D

It looks like I have this working so far, the only thing I believe is missing is battery to grid.

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

Well there is a battery to grid line, and if your consumption shows battery to grid, then you should be having that too.

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

About the redundancy, you might be right. But I have them because my solar meter shows the actual yield without losses. But I'm thinking whether this should be left out in the next iteration.

from tesla-style-solar-power-card.

headbouyJB avatar headbouyJB commented on May 27, 2024

Well there is a battery to grid line, and if your consumption shows battery to grid, then you should be having that too.

Ah OK cool! - reading through your list of sensors, there didn't seem to be a battery-to-grid option.
Can the grid-to-battery be negative then?

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

Done in beta! But you would need to either checkout the beta branch or at least the binary or try a beta installation through HACS. But it would be a great help if you could test it. As soon as a few people do this is going to become the main branch.

from tesla-style-solar-power-card.

headbouyJB avatar headbouyJB commented on May 27, 2024

OK so I thought I'd give the beta a go via HACS - but I'm not getting anything displayed at all.
Have restarted, everything is updated, and the badges display the correct values for the sensors I'm attempting to use.

Is there something simple I'm missing here?

Screen Shot 2021-03-10 at 9 26 22 AM

Screen Shot 2021-03-10 at 9 22 50 AM

Screen Shot 2021-03-10 at 9 22 34 AM

Screen Shot 2021-03-10 at 9 22 16 AM

Screen Shot 2021-03-10 at 9 22 10 AM

from tesla-style-solar-power-card.

MindFreeze avatar MindFreeze commented on May 27, 2024

Open dev tools and look for errors in the console. I've never seen this behavior.
It could be a cache problem.

from tesla-style-solar-power-card.

headbouyJB avatar headbouyJB commented on May 27, 2024

I see the same result in Safari and Chrome, even after clearing caches and refreshing.
My logs only have normal HACS custom component warnings.

I haven't used the dev tools and console before - is there a quick guide available so I can be helpful please?

Also with the same configuration the card does display in the iOS app, but not all the values are coming in.
IMG_1976

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

strange, will do some more testing this evening and get back to you asap

from tesla-style-solar-power-card.

MindFreeze avatar MindFreeze commented on May 27, 2024

@reptilex I had a similar problem with the values after updating and it was caused by the new epsilon rounding. I have it commented on my install only, because I thought the problem was on my end, but maybe it isn't just me.

from tesla-style-solar-power-card.

reptilex avatar reptilex commented on May 27, 2024

If the problem with the rounding persist, please open a new issue. I tried replicating it, but although sometime I got really long float numbers I never had a 0 problem. The feature request is implemented in latest breaking config release. ;)

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.