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

Badge: add steps on adding a badge from UI #34172

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions source/dashboards/badges.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ Badges are widgets that sit at the top of a panel, above all the cards.
Badges at the top of a panel.
</p>

## Adding a badge to your dashboard

1. Go to {% my lovelace_dashboards title="**Settings** > **Dashboards**" %}.
2. If you have multiple [views](/dashboards/views/), open the view to which you want to add a badge.
3. In the top right of the screen, select the edit {% icon "mdi:edit" %} button.
4. To add a badge, select the plus {% icon "mdi:plus" %}button.

![Screenshot showing how to add a badge](/images/dashboards/badge_add.png)

5. Select the entity for which you want to display a badge.
6. Configure your badge.
- The available options depend on the entity.
- Add the states you want to see.
- If you want, add a **Name**.

![Screenshot showing how to configure a badge](/images/dashboards/badge_configure.png)
7. Under **Interactions**, you can define the tap behavior.
8. If you want this badge to be visible only to specific users or under a certain condition, open the **Visibility** tab to [define those conditions](/dashboards/cards/#showing-or-hiding-a-card-conditionally).
9. Select **Save**.

## Entity badge

The Entity badge allows you to display the state of an entity on a badge. This badge supports [actions](/dashboards/actions/).
Expand Down
Binary file added source/images/dashboards/badge_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/dashboards/badge_configure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.