thomasloven / lovelace-fold-entity-row

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

Rename Entity in Head #177

Closed chris1601 closed 3 years ago

chris1601 commented 3 years ago

Hi there, first off all I have to say that I love this card. Good work. Thank you.

Now I stumbled upon a small Problem. I have the following card set up:

`type: entities entities:

As you can see i have a general switch light.hue_haus which turns on all the entities listed below. Is there any way to rename the switch in the header? it shows as "hue_haus" and I'd like to show it as "Hausbeleuchtung" like in the title. Unfortunately I cant rename the entity due to my naming scheme.

any help would be appreciated. keep up the good work.

many thanks from Germany

Chris

thomasloven commented 3 years ago

REAMDE:

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

chris1601 commented 3 years ago

Sorry. Doesn't work for me. If I go like:

`type: entities entities:

`bad indentation of a mapping entry (5:18)

2 | entities: 3 | - type: custom:fold-entity-row 4 | head: light.hue_haus 5 | label: Customizations ----------------------^ 6 | open: false 7 | entities:`

thomasloven commented 3 years ago

That line even has a link to the relevant Home Assistant documentation.

This is not a bug and does not belong on github. For help with usage, please refer to the Home Assistant forum.

mplogas commented 3 years ago

Hi @thomasloven I'm trying to wrap my head around this as well. I tried the "entity" type to have a simple toggle

head: 
  type: entity
  label: Erdgeschoss
  entity: group.lights_eg

But this just yields this error image

What would be the right type here?

thomasloven commented 3 years ago

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

Any that works for ordinary entities card rows.

mplogas commented 3 years ago

makes sense now. no type definition was required according to the docs