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] v.0.2.0 new flow rate model - dots slowing down in firefox, same speeds in chrome #553

Open derhappy opened 2 months ago

derhappy commented 2 months ago

Describe the bug

I recently updated to the new version and activated the new flow rate model.

Firefox: I had to adjust the max and min flow rate values to see a difference between low (~10W) and higher (~1kW) enery flow. I guess this is because of the relative high max expected power (compare to the current max power). When doing so, the faster dots seem to slow down just before reaching "home" to match the speed of the slower dots.

Chrome: In Chrome the adjustment of the max flow rate did not seem to have much of an effect. The dots are the same speed, even when one flow is ~10w and one is ~1kW. The speed stays the same though, no slow down visible.

In both cases a dot on a short line (home to individual "heating") seems to be relative slow, no matter how much power is flowing.

Overall, I like the new flow rate model way better than the old behaviour, thanks for the great work!

To Reproduce Steps to reproduce the behavior: See config and videos

Expected behavior The speed of the dots should not change when the power does not change. A higher power flow should be indicated by a faster dot, no matter how long the line is.

Screenshots See videos

https://github.com/flixlix/power-flow-card-plus/assets/61394775/42032d0e-996f-4b61-82d1-f20bac7e8986

https://github.com/flixlix/power-flow-card-plus/assets/61394775/becb907d-fbf4-4cef-ad24-01784494b0b0

Browser Console Errors None

Desktop (please complete the following information):

Config `type: custom:power-flow-card-plus entities: battery: entity: production: sensor.s10e_battery_charge consumption: sensor.s10e_battery_discharge state_of_charge: sensor.s10e_state_of_charge color_icon: true color_circle: true state_of_charge_unit_white_space: false color_state_of_charge_value: true invert_state: false color_value: true use_metadata: false color: consumption: