lovelace-multiple-entity-row icon indicating copy to clipboard operation
lovelace-multiple-entity-row copied to clipboard

Using an attribute in place of the row name?

Open daytonturner opened this issue 2 years ago • 4 comments

According to the docs on github, attribute is valid at the root level, and it seems to be accepted, but only really seems linked to the show_state boolean - whereby, if show_state is on, it will display an attribute instead of the state.

I'm wondering, is there a way to display an attribute in place of name ?

daytonturner avatar May 19 '22 22:05 daytonturner

I'm wondering, is there a way to display an attribute in place of name ?

What do you mean:

  • show a value of the attribute in place of the name
  • show a name of the attribute in place of the name

?

The 1st is not possible - neither for the state nor for the attribute. The 2nd is possible - just specify a "name: some_attribute_name".

ildar170975 avatar May 19 '22 22:05 ildar170975

Yeah, it was the 1st - show the value of an attribute in place of the name. I am trying to display the next 4 ferry sailings and right now i am using "1st Ferry", "2nd Ferry", etc.. and realize just displaying the sailing time would be cleaner.

Bummer that it's not currently possible! Could it be implemented, or is there a reason not to?

daytonturner avatar May 20 '22 19:05 daytonturner

It could be implemented by placing the row inside a custom:config-template-card. I suggest to ask this question (as well as similar questions) in a Community forum in a corresponding thread and leave Github for bugs & FRs only.

ildar170975 avatar May 20 '22 19:05 ildar170975

@daytonturner did you ever figure out how to get this to work? Either with multiple-entity-row or config-template card. I'm trying to figure out something similar. Thanks!

xthursdayx avatar Aug 23 '22 19:08 xthursdayx