#Way to duplicate a dashboard entity for all instances of that entity in a room?

1 messages · Page 1 of 1 (latest)

stone jasper
#

I have a simple dashboard. It has some scenes and some actions in that room. Every time I create a scene, I need to then create a new mushroom entity button for that scene. Is there a way to just make a button magically appear in here when a new scene is created?

solemn glade
#

Auto entities?

stone jasper
#

lovelace-auto-entities looks like exactly what I'm looking for, thanks! Looks like the visual editor is broken (at least I can't get it to work). Not ready to embrace the PITA that figuring out how to implement this in YAML is going to be, but maybe one day.

hushed wolf
#

This should get you started. This example uses the layout-card to help with the grid. Also, in this example, auto-entities will populate the grid with Mushroom Entity cards (which I assume you're using) based on scene entities it finds. You might consider implementing areas or labels to "dial in" what entities you want to see here.

#
type: custom:auto-entities
card:
  type: custom:layout-card
  layout_type: custom:grid-layout
  layout_options:
    width: 100
  layout:
    grid-template-columns: auto auto
    grid-template-rows: auto
card_param: cards
filter:
  include:
    - domain: scene
      options:
        type: custom:mushroom-entity-card
        entity_id: this.entity_id
        layout: horizontal
        secondary_info: none
        tap_action:
          action: toggle
        hold_action:
          action: more-info
  exclude:
    - state: unavailable
sort:
  method: name
  reverse: false
  numeric: false
show_empty: true```