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

[SUPPORT] Unit white space, individual entities? #568

Closed xsirpreisx closed 2 months ago

xsirpreisx commented 2 months ago

Hi there,

awesome how far this thing has come. I've been using "my" version for a long time now without any changes, and only today removed that and upgraded to your latest version. Great work!

Only one thing I haven't been able to understand. Why is there no whitespace between value and unit for my individual entities?

image

There are switches to add white spaces for secondary information, but not for the entity itself. What am I missing? Is that because the two entities I created are setup like this:

image

and this:

image

Thanks in advance!

flixlix commented 2 months ago

Yeah, this is a feature I need to add for 0.2.2

dr3amr commented 2 months ago

@flixlix Also seems unit_white_space is default false, and not true (as mentioned in documentation) for individual and secondary info.

flixlix commented 2 months ago

fixed in #590

xsirpreisx commented 2 months ago

Thanks. I updated, but I currently don't have a white space just yet. I don't see an option for that either. What am I missing?

flixlix commented 2 months ago

@xsirpreisx have you tried clearing your cache?

https://how-can-i.luca-felix.com/clear-cache

Which version is currently shown in your browser console?

Edit: yes, there should be an option to toggle the whitespace

xsirpreisx commented 2 months ago

Yea, I cleaned my cache, but that didn't change anything.

I guess the option to toggle the whitespace would be found in the Individual configuration?

image

Note there for me yet.

0.2.2 seems to be installed:

image

flixlix commented 2 months ago

Weird, not sure what happened there, uplodaded this new file. For some reason this branch wasn't built for 0.2.2 before.

Here is the file: power-flow-card-plus.js.zip

xsirpreisx commented 2 months ago

Yea, using that file now it works, thanks!

image

One more question: Secondary information when 0 does not seem to display the unit. Is that to be expected? See screenshot above ("Auto"). "0 kWh" would look much better. :-)

dr3amr commented 2 months ago

One more question: Secondary information when 0 does not seem to display the unit. Is that to be expected? See screenshot above ("Auto"). "0 kWh" would look much better. :-)

Same issue here, unit_of_measurement not displayed when value is 0 (display_zero: true).

image