Dynamic vacuum cards #926
szamfirov
started this conversation in
Feature requests
Replies: 2 comments 6 replies
-
Hi! I just changed that in my code. In the next beta if there is no entity defined in the sub-button actions, it will automatically take the sub-button entity for the action, and if there is no entity in the sub-button it will automatically take the card entity. This is so much better like that indeed, just tried on my vacuum card and this works perfectly! |
Beta Was this translation helpful? Give feedback.
0 replies
-
That sounds awesome, looking forward to it! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @Clooos,
I'm a huge fan of bubble-card and have been using it for quite a while - thank you for the massive amount of work that you've put in!
Some context before I ask my question - I have a single page dashboard with pop-ups which represent the rooms in my house. I'm using auto-entities for a lot of the content in those pop-ups to dynamically list room-specific entities as bubble-cards.
I'm struggling to make the vacuum cards dynamic because of the subbutton actions (i.e
call-service
) which need atarget_entity
- those cannot be passed to the card as a template. Is there a way to implicitly pick up which entity id to use as a target for things likevacuum.start
/vacuum.stop
etc.?That would massively help with any dynamically created cards or just templating in general.
Cheers,
Svet
Beta Was this translation helpful? Give feedback.
All reactions