Skip to content
New issue

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

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

Already on GitHub? # to your account

Doesn't work with button:card #30

Closed
IGOLz opened this issue Sep 3, 2024 · 2 comments
Closed

Doesn't work with button:card #30

IGOLz opened this issue Sep 3, 2024 · 2 comments

Comments

@IGOLz
Copy link

IGOLz commented Sep 3, 2024

Hi, thanks for this awesome card but i have a problem making it work with button card.

The card works perfectly when i use it with almost anything else, but when i put a custom:button-card inside it doesn't show the card.

Here's an example:
image

This is the code that's not working:

type: custom:local-conditional-card
id: tab1
default: show
card:
  type: custom:button-card
  entity: sensor.valvola_tado_bagno_camera_info_heating

Example of code working:

type: custom:local-conditional-card
id: tab1
default: show
card:
  type: alarm-panel
  entity: alarm_control_panel.alarmo

Can you fix it please?

@IGOLz
Copy link
Author

IGOLz commented Sep 3, 2024

For anyone having this problem, i fixed it by wrapping the button-card inside a grid like this:

type: custom:local-conditional-card
default: show
id: tab1
card:
  square: false
  type: grid
  cards:
    - type: custom:button-card
      entity: sensor.valvola_tado_bagno_camera_info_heating

And now it's working perfectly!

@PiotrMachowski
Copy link
Owner

Fixed in v2.1.1

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

No branches or pull requests

2 participants