thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.2k stars 111 forks source link

else does not work for custom button card #334

Closed sroebert closed 1 year ago

sroebert commented 1 year ago

I am trying to display a custom button card in the case that auto entities is not displaying any entities. The button however does not show up. I do not see any error in the console either.

type: custom:auto-entities
else:
 type: custom:button-card
 entity: some_entity_id

If I put the same button code outside of auto-entities, it works correctly. Also if I use a normal entity card in else it works correctly. Any idea what I can do to fix or debug this?

sroebert commented 1 year ago

Ok, found this issue: https://github.com/custom-cards/button-card/issues/548, it seems to be working when I put it inside a horizontal stack (instead of what I had, vertical stack), might be something related to home assistant.