Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide an entity if attribute is unavailable or not found #119

Closed
NicoSomerwil opened this issue Oct 26, 2020 · 5 comments
Closed

Hide an entity if attribute is unavailable or not found #119

NicoSomerwil opened this issue Oct 26, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@NicoSomerwil
Copy link

Thanks for your great card. Love it!

I'm struggling getting the option: 'hide_unavailable: true' working.

I must be doing something wrong, so, please, do you have an example/hint for me?

Please take a look here for the used code.

Thanks in advance for looking at this 'issue'.

Good luck and success with your very useful card, thanks!!

@ericvitale
Copy link

ericvitale commented Oct 26, 2020

I'm also having this issue with the latest version (v3.5.1) of the component.

- entity: light.master_bathroom_shower_lights
  type: custom:multiple-entity-row
  name: Shower
  secondary_info: last-changed
  toggle: true
  icon: mdi:shower-head
  entities:
    - attribute: brightness
	  unit: '%'
	  hide_unavailable: true

Edit: I can't get the spacing in my code example to work out here, but it is correct in my config.

@benct
Copy link
Owner

benct commented Oct 26, 2020

The hide_unavailable currently option only works for entity state values, not attribute values as used your examples. I'll make this a feature request and try to add support for that soon.

@benct benct added the enhancement New feature or request label Oct 26, 2020
@benct benct changed the title Hide an entity if unavailable or not found Hide an entity if attribute is unavailable or not found Oct 26, 2020
@NicoSomerwil
Copy link
Author

NicoSomerwil commented Oct 26, 2020 via email

@acortelyou
Copy link

Also looking for this functionality! Thanks.

@benct
Copy link
Owner

benct commented Nov 3, 2020

Should be supported in version 4.0.0.

@benct benct closed this as completed Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants