thomasloven/lovelace-fold-entity-row

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

Mariusthvdb opened this issue ยท 4 comments

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.

  • there's no longer a divider showing, as there is when using a type: section. I am aware section causes the divider to show, and we can add an extra type: divider but that still doesnt result in the same frontend effect. please consider adding a section divider optionally?
  • setting the group_config to use last_changed works beautifully, however doesnt touch the header: please consider adding last_changed to the header too?

with extra type: divider between the top 2 folds

Schermafbeelding 2022-02-17 om 12 52 06

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
  • divider: ok, thanks, I can appreciate that for sure
  • group secondary: nice! I hadnt realized that and couldn't find it in the docu. works perfectly!

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

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

Well, there's

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

... ๐Ÿ˜‰

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!