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

This commit is contained in:
c0ffeeca7 2024-08-07 12:05:04 +02:00 committed by Franck Nijhof
parent a871e66e4b
commit beb18f7aff
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
3 changed files with 20 additions and 0 deletions

View File

@ -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/).

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB