Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

card_mod does neither work with auto entities nor with entities #435

Open
MiRen76 opened this issue Jan 10, 2025 · 6 comments
Open

card_mod does neither work with auto entities nor with entities #435

MiRen76 opened this issue Jan 10, 2025 · 6 comments

Comments

@MiRen76
Copy link

MiRen76 commented Jan 10, 2025

My Home Assistant version: 2025.1.2
card-mod-version: 3.5.0
auto-entities: 1.13.0

My lovelace configuration method (GUI or yaml): yaml

What I am doing: I try to change the background color of the auto entities card with card_mod

What I expected to happen: Background color of the card changes to transparent

What happened instead: No change of background color recognized

This is my card configuration:

type: custom:auto-entities
filter:
  include:
    - entity_id: sensor.eg_heizung_*_battery
      state: < 50
  exclude: []
sort:
  method: state
  numeric: true
card:
  type: entities
  state_color: false
  card_mod:
    style: |
      ha-card {
        background-color: transparent;
      }
      .card-content {
        background-color: transparent !important;
      }
@thomasloven
Copy link
Owner

Card-mod 3.5.0 has been removed.
I recommend upgrading to 3.4.4

@jayjojayson
Copy link

jayjojayson commented Jan 11, 2025

For me it is the same, i can't setup the auto-entities-card. With 3.4.3 all works fine, with 3.4.4 a lot changed, but got it working, only the auto-entities-card still don't working like she should. A picture and example code is attached. That Problem i have with all auto-entities-card in my dashboard. Tried a lot of stuff, also to put in a vertical-stack, but the card-mod will not work.

image

type: custom:auto-entities
card:
  type: entities
  card_mod:
    style: |
      ha-card {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        border-right: 1px solid grey !important;
        border-radius: 0px !important;
        font-size: 14px;
      }
filter:
  include:
    - entity_id: light.*
      area: Wohnzimmer
    - entity_id: light.*
      area: Schlafzimmer
    - entity_id: light.*
      area: Flur
    - entity_id: light.*
      area: Küche
    - entity_id: light.*
      area: Bad
    - entity_id: light.*
      area: Werkstatt
    - entity_id: light.*
      area: Garten
  exclude:
    - state: "off"
    - entity_id: light.m5stack_atom_echo_a1449c_m5stack_atom_echo_a1449c
    - entity_id: light.cyd_display_backlight
sort:
  method: area

@ildar170975
Copy link
Contributor

i can't setup the auto-entities-card. With 3.4.3 all works fine, with 3.4.4 a lot changed, but got it working, only the auto-entities-card still don't working like she should

Check with a more clear example (3.4.4):
image
If it still does not work - check your installation, purge a browser cache etc.

@jayjojayson
Copy link

Thank you for the quick testing and respond. I have cleared the cache several times, but nothing happens. Now i have reinstalled the 3.4.4 and it is working. Also with my posted example is working. Dont know why now. But anyhow, thank very much for your work! :)

@aubreyz
Copy link

aubreyz commented Feb 4, 2025

Same here. Card-mod is completely non functional with autoentities now (both card-mod and autoentities in latest versions)

@Mincka
Copy link

Mincka commented Feb 8, 2025

Thank god I found this issue. I was "stuck" on 3.5.0 with this specific issue, not knowing that this version was buggy and removed.
I think it would have been better to publish a 3.5.1 version to revert the changes so the "upgrade" would appear in HACS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants