bokub / rgb-light-card

💡 A Lovelace custom card for RGB lights
MIT License
412 stars 24 forks source link

Hide main entity of card #72

Closed SAOPP closed 1 year ago

SAOPP commented 1 year ago

Hey! Cool realization of the idea. I looked at the card and immediately realized that this is what I'm looking for, but here's one problem / idea, is it possible to add the ability to hide the main entity of the card? For example, I would like to hide such a card under the condition that if the lighting is off, this card is not shown. Accordingly, I do not need a duplicate entity, it would be cool if this is implemented.

bokub commented 1 year ago

Hi @SAOPP

I'm not sure I understand what part you would like to hide (a screenshot might help).

Did you try to use a native conditional card ?

SAOPP commented 1 year ago

Here is on:

image

I want to show rgb colors only.

SAOPP commented 1 year ago

Did you try to use a native conditional card ?

Yep, when my lights is on I shoe additional timer and etc data, and if we 'r talking 'bout rgb bulbs, so your card is cool for this, I will shoe you my example what 'bout I'm talking...

SAOPP commented 1 year ago

image

I mean this, in your card is present entity id, will be better if we can make main entity hide. Display colors only.

bokub commented 1 year ago

The red part is not part of the card, this is just an example.

Please read the documentation again, it's explained:

type: entities
show_header_toggle: false
entities:
    # Displays the light entity. It's optional
    - entity: light.example_light

    # Card configuration starts here
    - type: 'custom:rgb-light-card'
      entity: light.example_light
SAOPP commented 1 year ago

Oh, I'm sorry, I didn't use the card, I just looked briefly. I figured that maybe I misunderstood something.