Comments (9)
Therefore the importance of showing the unit.
This is very common in various energy monitor interfaces.
But again, this can be a configuration variable.
from tesla-style-solar-power-card.
+1
Great job!
Would be very good to have that option - I found how to switch to W instead kW but it doesn't work very good so far.
from tesla-style-solar-power-card.
I think I got this covert now. Fresh from the oven, define use_w_not_kw in your yml configuration like this:
use_w_not_kw: 1
and you will have w instead of kw and it will not be divided by 1000. Your sensors do have to have the w unit though.
Please test it, if it works close the issue ;)
from tesla-style-solar-power-card.
Thank you soo much for considering this :)
But
- its not W vs kW
- its W if power < 1000 and kW if power > 1000
from tesla-style-solar-power-card.
won't this look funny when you have 30W solar power and you are using 2 kW? It would confuse the heck out of me. The change is just adding a var to the if statement but I find it's not user friendly that way.
from tesla-style-solar-power-card.
show_w_not_kw: 1 works very well but there is a problem with speed of cycles - it's too high when show_w_not_kw: 1
I guess the code should be something like this:
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;
}
from tesla-style-solar-power-card.
With the code above the speed is normal and everything looks good.
But I have some negative power values - I can use Math.abs() method of course but would be very good to have that option as config option. I mean the option to use negative power values.
from tesla-style-solar-power-card.
Your unreal "pull request" has been merged ;) Do you need a new release to test it? After that I would close the issue and create a new release
from tesla-style-solar-power-card.
Sorry, I'm not very good familiar with development process and github. Maybe a new release will be better. Thanks!
from tesla-style-solar-power-card.
Related Issues (20)
- Request: decimal place configuration HOT 4
- Scale HOT 1
- How to add two cars with same consumption entity? HOT 2
- 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
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.