decluttering-card icon indicating copy to clipboard operation
decluttering-card copied to clipboard

FR: Support visibility

Open Mariusthvdb opened this issue 1 year ago • 8 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

the new visibility option is not supported, and we need to use conditional cards

Describe the solution you'd like A clear and concise description of what you want to happen.

have decluttering-card support visibility

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

conditional card Additional context Add any other context or screenshots about the feature request here.

template:

card:
#   type: conditional
#   conditions:
#     - entity: switch.[[entity]]_privacy_mode
#       state_not: 'on'
#   card:
    type: picture-entity
    visibility:
      - entity: switch.[[entity]]_privacy_mode
        state_not: 'on'
    entity: camera.[[entity]]
  #     name: '[[name]]'
    show_state: false
    show_name: false
    camera_view: live

and card in dashboard:

  - type: custom:decluttering-card
    template: camera_privacy
    variables:
      - entity: bijkeuken
      - name: Bijkeuken

as you can see in the above yaml, I tried to replace conditional card with a straight replacement using visibility it does not work, and the card is displayed no matter the visibility options set.

I also checked the core picture-entity card for support of the visibility option, and yes, that works nicely when used verbosely like

  - type: picture-entity
    visibility:
      - entity: switch.bijkeuken_privacy_mode
        state_not: 'on'
    entity: camera.bijkeuken
  #     name: '[[name]]'
    show_state: false
    show_name: false
    camera_view: live

Mariusthvdb avatar Jul 15 '24 20:07 Mariusthvdb

consider checking out https://github.com/brunosabot/streamline-card

andreasbrett avatar Aug 26 '24 21:08 andreasbrett

thx, yes, I did. But I 'need' it on decluttering-card, and hope to prevent yet another custom card..

since the author is on a roll in button-card, hope this is the next project to modernize ;-)

Mariusthvdb avatar Oct 07 '25 18:10 Mariusthvdb

Funny how this card copies almost exactly what is done here 🙃 without even attributing some credits 🤷

RomRider avatar Oct 07 '25 20:10 RomRider

From readme of streamline card:

Image

Some people so easy use "not maintained" words... Then come to HACS and request to remove the card.

ildar170975 avatar Oct 07 '25 20:10 ildar170975

I'll work on this, but I also have apexcharts-card to work on and it's another beast....

RomRider avatar Oct 07 '25 20:10 RomRider

No release for 3 years, not a single commit in 3 years. I'd say it's pretty fair to assume this is not maintained. I do agree though that attribution should have been more prominent.

From readme of streamline card:

Image

Some people so easy use "not maintained" words... Then come to HACS and request to remove the card.

andreasbrett avatar Oct 07 '25 20:10 andreasbrett

say it's pretty fair to assume this is not maintained

What kind of maintainment people want from a WORKING card? I would call people "scandalmongers" who make a problem from nothing.

ildar170975 avatar Oct 07 '25 20:10 ildar170975

well, dont start a war ;-)

I've asked for some attribution https://github.com/brunosabot/streamline-card/discussions/88

Mariusthvdb avatar Oct 08 '25 07:10 Mariusthvdb