thomasloven / lovelace-fold-entity-row

🔹 A foldable row for entities card, containing other rows
MIT License
561 stars 37 forks source link

include group only working with classic groups? #234

Open torsteinelv opened 1 year ago

torsteinelv commented 1 year ago

Hello,

I want to include this group: image

But cant get it working. Is it only working with classic grop.?

torsteinelv commented 1 year ago

Found a solution to the problem:

type: entities
title: Power Usage By Group
entities:
  - type: custom:fold-entity-row
    head: sensor.powercalc_all_hvac
    entities:
      - type: custom:auto-entities
        show_empty: false
        card:
          type: entities
          title: ''
          show_header_toggle: false
        sort:
          method: state
          reverse: true
          numeric: true
        filter:
          template: >
            {{states['sensor.powercalc_all_hvac'].attributes.entities |
            replace("'", "\n") | replace(",", "")| replace("{", "")|
            replace("}", "")}}
  - type: custom:fold-entity-row
    head: sensor.powercalc_all_lights
    entities:
      - type: custom:auto-entities
        show_empty: false
        card:
          type: entities
          title: ''
          show_header_toggle: false
        sort:
          method: state
          reverse: true
          numeric: true
        filter:
          template: >
            {{states['sensor.powercalc_all_lights'].attributes.entities |
            replace("'", "\n") | replace(",", "")| replace("{", "")|
            replace("}", "")}}