reptilex / tesla-style-solar-power-card

Home assistant power card mimicking the one tesla provides for the powerwall app.
211 stars 59 forks source link

I have problem #101

Closed kalina-p closed 2 years ago

kalina-p commented 2 years ago

That is my configuration:

type: custom:tesla-style-solar-power-card generation_to_grid_entity: sensor.power_photovoltaics_fronius_power_flow

when I add configurations I can see the icons correctly Please look on that: 1

but when I save configuration icons is very small and I cannot see what it display

2

Could someone help me with that ?

Best Regards

JacoboSanchez commented 2 years ago

Don't know the cause but if you close the dashboard edition and make any change that leads to redraw the diagram (for example changing the size of the browser's window) It should repaint itself with the correct size

reptilex commented 2 years ago

The reason is because HA does not give you a value for the size of the card from the start and since my visualization is an scg pixel graph that depends on the size the calculation does not work. As soon as you reload HA gives a size and the graphs look good again :( I have a plan to replace the svg pixel graphs but it seems this will take a year because I have no time.