Comments (16)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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?
from tesla-style-solar-power-card.
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.
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.
from tesla-style-solar-power-card.
strange, will do some more testing this evening and get back to you asap
from tesla-style-solar-power-card.
@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.
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)
- Car Charging line present when car charger idle HOT 1
- Help Tweaking my sensors... Losses and Multiple Flows...
- Is this the right way? HOT 1
- Battery Entity Doubles value with Solar Generation and Battery Charge
- How to Calculate and Display Home Energy Usage in house_extra_entity
- Ekstra solar pannel option HOT 4
- Why do the Recommended APF Sensors Show Impossible Transfers Compared to the Older "Tesla Card Sensors" ? HOT 2
- Card overlaying top navigation bar HOT 4
- HA log file - SyntaxError: The string did not match the expected pattern.
- Add second PV HOT 7
- Wrong bubble if solar loading battery
- Centre bubbles showing over lovelace header HOT 1
- Replicate Tesla Solar Dashboard View
- Graphic looks strange HOT 6
- Make circles a little bigger in respect to icon and font HOT 1
- indicate grid import/export in icon HOT 1
- Feature Request: House bubble - more than 1 color/source
- Documentation for Powerwall integration usage has wrong entity names
- Display width leads to strange behavior
- Help with Growatt Sensors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesla-style-solar-power-card.