flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
501 stars 59 forks source link

[BUG] Home circle border "flickers" between multiple colors according the sum of the sources and full solid single color #579

Closed david-rapan closed 2 months ago

david-rapan commented 2 months ago

Describe the bug Home circle border "flickers" between multiple colors according the sum of the sources and full solid single base "stock" color (blue in my case). I'm not exactly sure if that would be the same for every setup and installation or if it is related to grid color.

To Reproduce Just by using the card.

Screenshots OK: power_infographics_home_blue_error_ok OK 2: power_infographics_home_blue_error_ok_2 OK, where is power only from grid: power_infographics_home_blue_error_ok_1 OK: power_infographics_home_blue_error_ok_4 ERROR: power_infographics_home_blue_error

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context It happens more frequently when the Grid source sitting around 0 W <-100,100>.

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

flixlix commented 2 months ago
image

I cannot replicate this issue. What I think your issue might be is that either your battery or grid sensors are reporting exports & imports simultaneously (which is not possible). This might be confusing the calculations

david-rapan commented 2 months ago
image

I cannot replicate this issue. What I think your issue might be is that either your battery or grid sensors are reporting exports & imports simultaneously (which is not possible). This might be confusing the calculations

I'm using single sensor for the Grid where positive numbers are from Grid and negative to Grid so I don't think that's the case. But the sensor for the grid has higher refresh rate (every second or so), could that cause the issue?