thomasloven / lovelace-fold-entity-row

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

Header entity not respecting state_color #172

Closed soloam closed 2 years ago

soloam commented 2 years ago

My Home Assistant version: 2021.7.1

Fold-entity-row version: 20.0.4

What I am doing:

When in the entities card the state_color is set to true, the header does not reflect that state.

What I expected to happen:

When in the entities card the state_color is set to true, the header should change color based on state. Also the child's should reflect this option (from what I can tell, the header never changes color, even with the option to true).

What happened instead:

When in the entities card the state_color is set to true, the header does not reflect that state.

Minimal steps to reproduce:

type: entities
entities:
  - type: custom:fold-entity-row
    head: group.livingroom_lights
    group_config:
      secondary_info: last-changed
title: Livingroom Lights
state_color: true

By putting an X in the boxes ([X]) below, I indicate that I:

soloam commented 2 years ago

Just to drop a example image of the problem

image image

The parent and bottom entities don't respect the "state_color: true". Only the lights do that, but the lights are different in the state color

thomasloven commented 2 years ago

That's a limitation in Home Assistant. state_color from the card is not communicated to the row if the row has a defined type.

Nothing I can do about that unfortunately. Try setting state_color of the head.

soloam commented 2 years ago

You made me think on a solution and it worked :)

image

Thank you for the help