Lovelace: Bar Card

Use auto entities and bar card together.

type: custom:auto-entities
filter:
  include:
    - entity_id: '*sensor.*battery'
  exclude: []
sort:
  method: state
  numeric: true
card:
  type: custom:bar-card

Is this card still available in HACS? I only can find bar card timer!

Thank you @Ildar_Gabdullin . But it does not come out when I type bar. See screenshot!

Have you tried pressing “explore & download repositories”?

1 Like

That did it ! Thank you very much!

1 Like

How may I change the icon color? I’ve tried the below (with card-mod installed)

  - entity: sensor.hp_laserjet_200_cyan_cartridge_hp_cf211a
    name: Cyan Ink
    color: cyan
    style: |
      :host {
        --card-mod-icon-color: cyan;
      }

I can’t get it to sort, the card is the same as the bar-card.

type: custom:auto-entities
filter:
  include:
    - entity: sensor.candeeiro_current_consumption
    - entity: sensor.meross_maq_lavarsecar_power
    - entity: sensor.tomada_pilhas_power
    - entity: sensor.tomada_powerbanks_power
  exclude: []
sort:
  method: state
  numeric: true
  reverse: false
card:
  type: custom:bar-card
  title: Consumos instantâneos
  entities:
    - entity: sensor.candeeiro_current_consumption
      icon: mdi:desk-lamp
      name: Candeeiro Sala
      max: 9

[etc...] 

Using the card in a wrong way.
Start with removing “entities”.

1 Like

If I remove entities from bar-card, I’m not able to configure some specs as severity or max individually.

Then WTH are you trying to use auto-entities for 4 entities?
And with different individual options )))

To sort the entitites by its value. There are more than twenty entitites.

Assume you have 10 entities in a list.
Assume you have SAME options like severity etc.
Then list these entities in ONE “include” filter; then define a common ‘options” section with commonly used options.

Assume you need to have DIFFERENT options for each entity.
Then you need to define TEN “include’ filters with individual “options”.

it’s great card, I used to use it but suddenly after card mode updated the animation not working any more. Can you please help. I’m sure the style feature changed, but I don’t know how to fix. Thank you

You will sort it out by yourself! With my help.

  1. Check release notes for the latest card-mod - it has smth about “card_mod” keyword.
  2. Since indentation in yaml is important - guess how pt.1 should be fixed in your code (you may use examples from card-mod github page).

Thank you very much, after reading the releasing notes for the latest card-mod update, I knew the missing part. :+1:

1 Like

hi can you please explain how to download this card with HACS

Go to your HACS page. Click the 3 dot menu
1000007347
Click custom repositories


Put the link to the github page for the bard card in the repository box. And choose a category. In this case lovelace.

Click add.

2 Likes

Is it possible to have the card driven by a sensor which can be positive (bar to the right) or negative (bar to the left), when value is zero, nothing (or a single line in the center)
DIfficult to do? Hint?

Its a sensor of a wheel of a boat, if the wheel is turned right/left it should show in the card. Hope I am clear

1 Like