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

Notification on all cards #1171

Open
albinmedoc opened this issue Feb 14, 2023 · 7 comments · May be fixed by #1173
Open

Notification on all cards #1171

albinmedoc opened this issue Feb 14, 2023 · 7 comments · May be fixed by #1173

Comments

@albinmedoc
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I found myself wanting a badge/notification on multiple cards.
This is documented at this page, numbered 1, but it's only used by a few cards.

Describe the solution you'd like
Allow using this notification on all cards that can optionally be used by the user.

Describe alternatives you've considered
Code it by myself for every card. But this will be very repetitive, and not used by anyone else.

Additional context
Here is the notification in use.
Skärmavbild 2023-02-14 kl  15 18 56

@basbruss
Copy link
Collaborator

@albinmedoc Almost all cards have a notification badge when the state turns to unavailable.

@basbruss basbruss linked a pull request Feb 14, 2023 that will close this issue
@albinmedoc
Copy link
Contributor Author

I would like to do something like the attached images.
Skärmavbild 2023-02-14 kl  18 49 46
Skärmavbild 2023-02-14 kl  18 50 08

I think it can be quite hard to implement like the first image since the notification is not at the top level (but as a child card in a custom card).

But the second image should be possible.

@basbruss
Copy link
Collaborator

See the linked PR, that makes custom notifications for official cards possible. Other contributors can always implement these tools to custom_cards as shown in your screenshots.

Pr makes this possible:
image

@albinmedoc
Copy link
Contributor Author

Looks good. Great work!

Would be cool if we could make it work for all cards (top level).
Like the two appended images.
Skärmavbild 2023-02-15 kl  07 57 12
Skärmavbild 2023-02-15 kl  07 54 35

@albinmedoc
Copy link
Contributor Author

I don't know exactly how it is setup. But there should be an underlying "base card" that all others inherit from?
I'm new to UI Lovelace Minimalist and Home Assistant.

It would be great to add notification to every corner (optionally).

  • notification_top_left
  • notification_top_right
  • notification_bottom_left
  • notification_bottom_right

@basbruss
Copy link
Collaborator

@albinmedoc I like that idea!
I did some testing but it only works without bugs when only one badge is set next to the standard unavailable one.
So for now I will let it only work with one customizable badge.

@albinmedoc
Copy link
Contributor Author

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants