Skip to content

Commit

Permalink
Badge: add steps on adding a badge from UI (#34172)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ffeeca7 authored Aug 7, 2024
1 parent dae74b5 commit 782d5a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
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.

0 comments on commit 782d5a0

Please sign in to comment.