bar-card icon indicating copy to clipboard operation
bar-card copied to clipboard

Because Repository is no longer maintained, custom-cards/bar-card has been removed from HACS. Please help me solve the problem.

Open VikeDragon opened this issue 6 months ago • 51 comments

Core 2025.6.1 Supervisor 2025.05.5 Operating System 15.2

Got message :

Because Repository is no longer maintained, custom-cards/bar-card has been removed from HACS. Please visit the HACS Panel to remove it.

Please help me solve the problem. This is a great interface ui card, I don't want to lose it.

VikeDragon avatar Jun 19 '25 10:06 VikeDragon

Hello. I have the same thing!?!

dengi76 avatar Jun 19 '25 10:06 dengi76

Got the same message this morning

obhatti87 avatar Jun 19 '25 13:06 obhatti87

Same. I don't have the knowledge to get this back into shape but find it very useful.

chrisgilldc avatar Jun 19 '25 14:06 chrisgilldc

Well, unless someone takes over the maintenance of the bar-card, this issue will not go away. Depending on your use case, https://github.com/francois-le-ko4la/lovelace-entity-progress-card might be an alternative.

nilsreiter avatar Jun 19 '25 15:06 nilsreiter

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

CrallH avatar Jun 19 '25 16:06 CrallH

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

What is the procedure to replace the no longer updated version with the forked one that is still maintained?

liuk4friends avatar Jun 19 '25 20:06 liuk4friends

What is the procedure

Uninstall original bar card from HACS. Add custom repository to HACS (https://github.com/spacerokk/bar-card) Install forked bar card in HACS.

Or just ignore the warning because the original card still works where as the fork does not.

tomlut avatar Jun 19 '25 23:06 tomlut

Switched to https://github.com/spacerokk/bar-card just now after uninstalling original and it seems to work just fine.

xbmcnut avatar Jun 19 '25 23:06 xbmcnut

Two out of every three of my cards failed to display correctly. Probably because of a config options change but I have yet to work out what it is. Or bother working out what it is as the bar card still works.

Image

Image

Image

Image

tomlut avatar Jun 19 '25 23:06 tomlut

@tomlut Oooh, any chance you could share your card code for the Energy and Power? Looks very nice 🤗

xbmcnut avatar Jun 20 '25 00:06 xbmcnut

entities:
  - entity: sensor.energy_tariff_in_use
  - direction: right
    entities:
      - entity: sensor.self_solar
        name: Power From Solar
      - entity: sensor.export
        name: Power To Grid
    entity_row: true
    height: 28px
    max: 6000
    min: 0
    positions:
      icon: inside
      indicator: "off"
      title: "off"
    severity:
      - color: "#039BE5"
        from: -1
        to: 300
      - color: "#e0b400"
        from: 300.1
        to: 900
      - color: "#0da035"
        from: 900.1
        to: 7000
    type: custom:bar-card
    value_style:
      color: var(--primary-text-color)
      text-shadow: none
    card_mod:
      class: inline-card-no-border
  - direction: right
    entities:
      - entity: sensor.import
        name: Power From Grid
    entity_row: true
    height: 28px
    max: 6000
    min: 0
    positions:
      icon: inside
      indicator: "off"
      title: "off"
    severity:
      - color: "#039BE5"
        from: -1
        to: 300
      - color: "#0da035"
        from: 300.1
        to: 900
      - color: "#e0b400"
        from: 900.1
        to: 1800
      - color: "#e45e65"
        from: 1800.1
        to: 7000
    type: custom:bar-card
    value_style:
      color: var(--primary-text-color)
      text-shadow: none
    card_mod:
      class: inline-card-no-border
  - direction: right
    entities:
      - entity: sensor.total_cost_today
      - entity: sensor.total_cost_24hrs_ago
      - entity: sensor.predicted_cost_today
    entity_row: true
    height: 28px
    max: 10
    min: -3
    target: "0"
    positions:
      icon: inside
      indicator: "off"
      title: "off"
    severity:
      - color: "#039BE5"
        from: -5
        to: 1.49
      - color: "#0da035"
        from: 1.5
        to: 2.99
      - color: "#e0b400"
        from: 3
        to: 4.49
      - color: "#e45e65"
        from: 4.5
        to: 10
    type: custom:bar-card
    value_style:
      color: var(--primary-text-color)
      text-shadow: none
    card_mod:
      class: inline-card-no-border
  - direction: right
    entities:
      - entity: sensor.next_bill_estimate
    entity_row: true
    height: 28px
    max: 250
    min: -50
    positions:
      icon: inside
      indicator: "off"
      title: "off"
    severity:
      - color: "#039BE5"
        from: -200
        to: 49.99
      - color: "#0da035"
        from: 50
        to: 99.99
      - color: "#e0b400"
        from: 100
        to: 149.99
      - color: "#e45e65"
        from: 150
        to: 1000
    type: custom:bar-card
    value_style:
      color: var(--primary-text-color)
    card_mod:
      class: inline-card-no-border
show_header_toggle: false
title: Energy and Power
type: entities
state_color: true
card_mod:
  class: top-level-card

tomlut avatar Jun 20 '25 01:06 tomlut

I'm also a heavy user of that repository, I'm jumping in to show my interest to see that repository maintained if anyone has the skills to do so:

Image

donparlor avatar Jun 20 '25 01:06 donparlor

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

I receive the following error :

Image

0000Max0000 avatar Jun 20 '25 06:06 0000Max0000

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

I receive the following error :

Image

It should be spacerokk/bar-card without https://Github.com

Mosher23 avatar Jun 20 '25 06:06 Mosher23

I just migrated to https://github.com/spacerokk/bar-card (@0000Max0000 use the type Dashboard instead of Integration)

All seems to be working (card code here):

danVnest avatar Jun 20 '25 07:06 danVnest

I've just migrated to spacerokk/bar-card.

The only issues I had involved integers being written as strings in the config ("100" instead of 100). The previous version seemed to tolerate this, but the new one does not - and rightly so!

Once I looked through the yaml and found all instances and corrected them by removing the quotes, everything worked perfectly.

WhimsySpoon avatar Jun 20 '25 08:06 WhimsySpoon

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

I receive the following error :

It should be spacerokk/bar-card without https://Github.com

It's a 'Dashboard' not an 'Integration'

xbmcnut avatar Jun 20 '25 09:06 xbmcnut

@xbmcnut Will this repo be kept up-to-date by spacerokk ?? https://github.com/spacerokk/bar-card

For now I simply clicked on ignore in my system but I would like to have a stable card for the future.

donparlor avatar Jun 21 '25 15:06 donparlor

@xbmcnut Will this repo be kept up-to-date by spacerokk ?? https://github.com/spacerokk/bar-card

For now I simply clicked on ignore in my system but I would like to have a stable card for the future.

Not a single update for 5 year's 😄 don't think it will....

CrallH avatar Jun 21 '25 16:06 CrallH

@CrallH, ok, I thought the spacerokk version was maintained. If anyone can lead with the required changes, that would be great

donparlor avatar Jun 23 '25 01:06 donparlor

I thought the spacerokk version was maintained.

It is. The last update was three weeks ago. CrallH is incorrect.

Image

tomlut avatar Jun 23 '25 04:06 tomlut

I also migrated to the spacerokk fork but have an issue with the entity name on the card

Image

before the 'name_attr' was actually evaluated

    entities:
      - entity: sensor.weatherflow_forecast_0
        name_attr: time
      - entity: sensor.weatherflow_forecast_1
        name_attr: time
      - entity: sensor.weatherflow_forecast_2
        name_attr: time
      - entity: sensor.weatherflow_forecast_3
        name_attr: time
      - entity: sensor.weatherflow_forecast_4
        name_attr: time
      - entity: sensor.weatherflow_forecast_5
        name_attr: time
      - entity: sensor.weatherflow_forecast_6
        name_attr: time
      - entity: sensor.weatherflow_forecast_7
        name_attr: time

anyone know how to fix this?

dan-s-github avatar Jun 23 '25 08:06 dan-s-github

Report it as an issue in the other repository. The dev isn't going to look here.

tomlut avatar Jun 23 '25 09:06 tomlut

Unfortunately the way the repo was forked does not allow to create issues there. At least I couldn't find where to create issues on the forked repo

dan-s-github avatar Jun 23 '25 10:06 dan-s-github

I thought the spacerokk version was maintained.

It is. The last update was three weeks ago. CrallH is incorrect.

Image

Yes, a misunderstanding from my part, I thought he ment this repo 👍

CrallH avatar Jun 23 '25 13:06 CrallH

Switched to https://github.com/spacerokk/bar-card just now after uninstalling original and it seems to work just fine.

+1 to this. Couple of bugs that I'm sure they'll sort in due time, but otherwise it's great to see the code being maintained!

craigmcfly avatar Jun 23 '25 20:06 craigmcfly

Fixed my issue by using the custom:config-template-card

Image

Posting here in case someone else faces a similar issue.

   ...              
   - type: custom:config-template-card
      entities:
        - sensor.weatherflow_forecast_0
        - sensor.weatherflow_forecast_1
        - sensor.weatherflow_forecast_2
        - sensor.weatherflow_forecast_3
        - sensor.weatherflow_forecast_4
        - sensor.weatherflow_forecast_5
        - sensor.weatherflow_forecast_6
        - sensor.weatherflow_forecast_7
      card:
         type: custom:bar-card
         ....
         entities:
            - entity: sensor.weatherflow_forecast_0
              name: >-
                ${states['sensor.weatherflow_forecast_0'].attributes.time}
            - entity: sensor.weatherflow_forecast_1
              name: >-
                ${states['sensor.weatherflow_forecast_1'].attributes.time}
            - entity: sensor.weatherflow_forecast_2
              name: >-
                ${states['sensor.weatherflow_forecast_2'].attributes.time}
            - entity: sensor.weatherflow_forecast_3
              name: >-
                ${states['sensor.weatherflow_forecast_3'].attributes.time}
            - entity: sensor.weatherflow_forecast_4
              name: >-
                ${states['sensor.weatherflow_forecast_4'].attributes.time}
            - entity: sensor.weatherflow_forecast_5
              name: >-
                ${states['sensor.weatherflow_forecast_5'].attributes.time}
            - entity: sensor.weatherflow_forecast_6
              name: >-
                ${states['sensor.weatherflow_forecast_6'].attributes.time}
            - entity: sensor.weatherflow_forecast_7
              name: >-
                ${states['sensor.weatherflow_forecast_7'].attributes.time}

dan-s-github avatar Jun 24 '25 07:06 dan-s-github

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

I receive the following error : Image

It should be spacerokk/bar-card without https://Github.com

Doesn't work as well. Image

viruz82 avatar Jun 24 '25 09:06 viruz82

Add a forked as custom that is updated, this one for example: https://github.com/spacerokk/bar-card

I receive the following error : Image

It should be spacerokk/bar-card without https://Github.com

Doesn't work as well. Image

You need to choose Dashboard instead of Integration in the Type field :)

craigmcfly avatar Jun 24 '25 09:06 craigmcfly

Thanks @craigmcfly! 😁

viruz82 avatar Jun 24 '25 09:06 viruz82