thomasloven / lovelace-fold-entity-row

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

also show divider when using head: group and add last_changed to head if configured #214

Closed Mariusthvdb closed 2 years ago

Mariusthvdb commented 2 years ago

using:

type: entities
title: Hue motion sensor switches
state_color: true
show_header_toggle: true
entities:
  - type: custom:fold-entity-row
    head: group.philips_room_motion_sensor_switches
    group_config:
      secondary_info: last-changed
#      type: section
#      label: Rooms
    padding: 0
#    entities:
#      - entity: switch.dining_table_sensor_motion
#        name: Dining table
#        secondary_info: last-changed
#      - entity: switch.auditorium_sensor_motion
#        name: Auditorium
#        secondary_info: last-changed

  - type: custom:fold-entity-row
    head: group.philips_always_on_motion_sensor_switches
    group_config:
      secondary_info: last-changed
    padding: 0

  - type: custom:fold-entity-row
    head: group.philips_buiten_motion_sensor_switches
    group_config:
      secondary_info: last-changed
    padding: 0

has 2 details Id like to FR.

with extra type: divider between the top 2 folds

Schermafbeelding 2022-02-17 om 12 52 06
thomasloven commented 2 years ago

AS you say, the divider line isn't fold-entity-row, and I don't feel it should be in the scope of it either.

head:
  entity: group.philips...
  secondary_info: last-changed
Mariusthvdb commented 2 years ago

I didnt miss anything yet again did I.....

the longer one uses your cards, the better they get.

thomasloven commented 2 years ago

Well, there's

head: and any row in entities: can be customized in exactly the same ways as ordinary entities card rows.

... :wink:

Mariusthvdb commented 2 years ago

ofc! I see that now. And immediately admit I never realized that was what it meant, probably because I had never used that config before I guess. All makes sense. thank you!