SOLVED: Lovelace Card Mod deprecated - how to reconfigure?

Hi All

I have set up all the Youtube guys I follow in a card.
Each has a config like this:

  - color_type: icon
    entity_picture: |
      [[[ return states['sensor.repairguydk'].attributes.entity_picture ]]]
    label: |
      [[[ return states['sensor.repairguydk'].state ]]]
    layout: icon_name_state2nd
    name: |
      [[[ return states['sensor.repairguydk'].attributes.friendly_name ]]]
    show_entity_picture: true
    show_label: true
    show_name: true
    tap_action:
      action: url
      url: |
        [[[ return states['sensor.repairguydk'].attributes.url ]]]
    type: 'custom:button-card'

This almost works.
I get the name, and the entity picture shown, and the label set.
But the URL stopped working?
I went to the lovelace card mod repository, and found out that it was deprecated, and “all functions are integrated into lovelace now”.

But what is wrong with the config as is?

here is mine

cards:
  - color_type: icon
    entity_picture: |
      [[[ return states['sensor.franck_nijhof'].attributes.entity_picture ]]]
    label: |
      [[[ return states['sensor.franck_nijhof'].state ]]]
    layout: icon_name_state2nd
    name: |
      [[[ return states['sensor.franck_nijhof'].attributes.friendly_name ]]]
    show_entity_picture: true
    show_label: true
    show_name: true
    tap_action:
      action: url
      url: |
        [[[ return states['sensor.franck_nijhof'].attributes.url ]]]
    type: 'custom:button-card'

I dont think its you
just tryed mine NO CLICKEEE here also :frowning:

Card Modder was deprecated.

Card mod is not.

EDIT: ALso, none of that looks like card-mod. That looks like the custom:button card. If you guys read the latest breaking changes for that card, you’d notice that url was changed to url_path. (Which is why your clicks are not working)

If you guys don’t know where the release notes are, I’m assuming you aren’t using HACS (Home assistant community store). With that being said, you should use HACS. You’ll be able to find the release notes for each custom card and it will contain breaking changes.

2 Likes

Geeez. I nearly had a heart attack. I use card-mod everywhere.

Hi @petro Thankyou for clearing that up. You were absolutely right!
Why didn’t I notice that breaking change, I do have the hacs running, and even the breaking changes addition that didn’t show anything :-o

You probably didn’t notice it because it’s buried if you don’t have hacs. Good rule of thumb is to check the update notes in hacs. I actively decided to not update that card because I’d have to make changes, and I don’t have the time to.