thomasloven / lovelace-fold-entity-row

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

Allow header row to display entity attribute instead of sensor value #247

Closed chriswood1001 closed 1 month ago

chriswood1001 commented 1 month ago

Allow the head entity to display an attribute instead of the normal value.

This is possible using the Entities card with 'attribute: name' and would be amazing if also made possible with this fold-entity-row.

Suggested addition:

type: custom:fold-entity-row
head:
  entity: sensor.server_disk_utalization
  name: Disk usage
  attribute: Percentage <-- new capability to display this as the header row value
entities:
  - entity: sensor.server_temperature
  - entity: sensor.server_fan_speed
ildar170975 commented 1 month ago

Are you sure that this is not already supported? Check with a PROPER syntax:

  entity: sensor.server_disk_utalization
  name: Disk usage
  type: attribute
  attribute: REAL name of the attribute, not displayed one
thomasloven commented 1 month ago

The header row IS a normal row from the entities card. Not a copy - the very same. Anything you can do in a standard entities card, you can do in fold-entity-row.