custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

When no symbol is displayed then give the space free #68

Closed Pirol62 closed 4 years ago

Pirol62 commented 4 years ago

I have set all symbols and values to off or inside. The space around the bar is anyway not reduced and therefore I do not win space. I would prefer to fill that with additional bar size. image

Gluwc commented 4 years ago

Have you tried setting the icon position to off? This area is where the icon is normally displayed but if you have no icon defined it shows an empty space unless you disable the icon.

Pirol62 commented 4 years ago
direction: up
height: 100px
name: 'black '
positions:
  icon: 'off'
severity:
  - color: Red
    from: 0
    to: 20
  - color: Orange
    from: 21
    to: 50
  - color: Green
    from: 51
    to: 100
type: 'custom:bar-card'
entities:
  - entity: sensor.hp_officejet_pro_8710_black_ink

Thats my config.

Gluwc commented 4 years ago

It's the indicator that's still taking up space. You can set the indicator position to inside or off.

Pirol62 commented 4 years ago

That's it!! Should have been my own idea ;-) Thanks, I close this issue