Home assistant power card mimicking the one tesla provides for the powerwall app.
This version allows the house value to not include appliance values if configured as stated in the docs. Some refactoring was done to imrpove readability of the code and better no size functionality has been added. And missing files also
This version allows the house value to not include appliance values if configured as stated in the docs. Some refactoring was done to imrpove readability of the code and better no size functionality has been added
Finaly added the great contribution from @AviadorLP for having gaps, just made it configurable. Added a speed factor configuration variable and repaired a few things and closed some security issues of packages. Be aware this build reintroduced the lost functionality of negative numbers when we are using battery or exporting energy to the grid.
I added documentation corrections and changed the licence to apache 2 to be compatible with home assistant-
There was an error in how I was doing the calculations when threshold was being used, that was corrected now. I was also missing an entity for calculating and showing the grid bubble with grid_to_battery and battery_to_grid, this was corrected too. And then I had some small corrections in the documentation, the tesla documentation was confirmed to be working.
Added a test and found a bug... figures. Bubble colouring feature should be correct now.
I corrected some bugs, added a few tests and added 3 features:
Although it's not perfect yet a lot of stuff works better than in the last card so I decided to publish the new version. BEWARE: you need to change your configuration according to the Readme.md otherwise nothing will look ok.
Sorry folks, last one broke a few things, missed a file in my renaming. Should be ok now. Colouring of the grid_to_battery and grid_to_house circles now are correct.