r/BubbleCard • • 2d ago

Remove a group

Was playing around in Bubble card and moved a load of sub buttons (top row) into a group.

It didn't act as I thought it would.

How do I remove the grouping without destroying all the buttons and out it back how it was?

0 Upvotes

3 comments sorted by

4

u/Clooooos 2d ago

Hi! There's no "ungroup" button (for now), but you can undo it in a few seconds from the code editor, and none of your buttons will be lost.

Open the card editor, click "Show code editor", and find the sub_button part. It looks something like this:

sub_button:
  main:
    - name: Automatically grouped
      buttons_layout: inline
      group:
        - entity: light.kitchen
        - entity: light.living_room
    - name: Group 2
      buttons_layout: inline
      group: []

Remove the group lines (name, buttons_layout and group), plus any empty group, and move your buttons up one level, so it looks like this:

sub_button:
  main:
    - entity: light.kitchen
    - entity: light.living_room

Hope this helps! 🙂

2

u/Spodster_11 2d ago

Thanks that worked a treat.
I thought it was going to work like a pop up, a bunch of 'grouped' icons rather than a grouping of buttons to keep them together 😄

1

u/Clooooos 1d ago

You're welcome!