reptilex / tesla-style-solar-power-card

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

2024.6.1 scaling after update #174

Closed csc-solution closed 3 months ago

csc-solution commented 3 months ago

Hi,

after updating to HomeAssistant Core 2024.6.1 the cars-scaling is very small, so it's very difficult to read it on lovelace UI.

Thanks in advance

grafik

keeperlink commented 3 months ago

image I'm pretty sure it's version 2024.6.0 that broke the view

cafarre commented 3 months ago

Same Issue with HA 2024.6.2 version image

poldim commented 3 months ago

Same: image

OneScuzzie2k commented 3 months ago

Following.

poldim commented 3 months ago

Can anyone tell if pxRate being too small of a number is the cause? https://github.com/reptilex/tesla-style-solar-power-card/blob/9fefd7cacd830ba8a3d72538b98d149a0bf86448/src/services/htmlWriterForPowerCard.ts#L21

I have no idea what I'm looking at, but it seems to be a scaling type variable in the code?

reptilex commented 3 months ago

No, the issue was that HA changed it's object. There was no card width anymore so I had to retrieve it differently. Just update from hacs or use the latest js file and you should be fine