ljmerza / light-entity-card

Control any light or switch entity
MIT License
233 stars 41 forks source link

ha-group with two lights - generates useless second card #40

Closed vncnt-dev closed 4 years ago

vncnt-dev commented 4 years ago

I have a group in hass.io with two RGB lights and wanted to use the light entity card to control them at the same time. But somehow two cards are generated. Both Cards do the same but only the first one displays the correct states. There should be an option to hide the second card (or is there?) because the first one already has all the functionality.

image

image

bcmitri commented 4 years ago

I'm also experiencing this. It's also worth noting that this issue has only surfaced recently. I've had this plugin in my Lovelace view for quite some time and it was never an issue before.

bcmitri commented 4 years ago

Unfortunately, I've had to move to another plugin in order to meet my requirements. If there is a fix to this, however, I will happily switch back.

ljmerza commented 4 years ago

the card will split up entities in a group by default so you can control each entity within the group individually. The names are the same because you overwrote them. I've added support to consolidate group entities via the consolidate_entities option in v4.0.0

vncnt-dev commented 4 years ago

Doesn't seem to work. image

bcmitri commented 4 years ago

Worked for me.

vncnt-dev commented 4 years ago

What type of entity do you have?

bcmitri commented 4 years ago

It's a light group.

vncnt-dev commented 4 years ago

I have two RGB lights

image

bcmitri commented 4 years ago

Did you clear your cache and refresh the page?

vncnt-dev commented 4 years ago

I reloaded while pressing the shift key.

Console outputs: LIGHT-ENTITY-CARD Version 4.0.0