Introduce a target picker for the logbook card (#36411)

* Logbook card update

* Additional information for target selector.
This commit is contained in:
Simon Lamon 2024-12-19 15:42:55 +01:00 committed by GitHub
parent c96ae089d1
commit 0476fd93a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
type: card type: card
title: "Logbook card" title: "Logbook card"
sidebar_label: Logbook sidebar_label: Logbook
description: "The logbook card displays entries from the logbook for specific entities." description: "The logbook card displays entries from the logbook for specific entities, devices, areas, and/or labels."
related: related:
- docs: /integrations/frontend/ - docs: /integrations/frontend/
title: Themes title: Themes
@ -10,7 +10,7 @@ related:
title: Dashboard cards title: Dashboard cards
--- ---
The logbook card displays entries from the logbook for specific entities. The logbook card displays entries from the logbook for specific entities, devices, areas, and/or labels.
<p class='img'> <p class='img'>
<img src='/images/dashboards/logbook.png' alt='Screenshot of the logbook card'> <img src='/images/dashboards/logbook.png' alt='Screenshot of the logbook card'>
@ -22,8 +22,8 @@ The logbook card displays entries from the logbook for specific entities.
## Card settings ## Card settings
{% configuration_basic %} {% configuration_basic %}
Entities: Target:
description: The entities whose logbook entries will show in the card. description: The entities, devices, areas and labels whose logbook entries will show in the card. See [target selector](/docs/blueprint/selectors/#target-selector) for more information.
Title: Title:
description: The title that shows on the top of the card. description: The title that shows on the top of the card.
Hours to show: Hours to show:
@ -41,10 +41,10 @@ type:
required: true required: true
description: "`logbook`" description: "`logbook`"
type: string type: string
entities: target:
required: true required: true
description: The entities that will show in the card. description: The target to use for the card.
type: list type: map
title: title:
required: false required: false
description: Title of the card. description: Title of the card.
@ -64,9 +64,24 @@ theme:
```yaml ```yaml
type: logbook type: logbook
entities: target:
- fan.ceiling_fan entity_id:
- fan.living_room_fan - fan.ceiling_fan
- light.ceiling_lights - fan.living_room_fan
- light.ceiling_lights
hours_to_show: 24 hours_to_show: 24
``` ```
```yaml
type: logbook
target:
area_id: living_room
device_id:
- ff22a1889a6149c5ab6327a8236ae704
- 52c050ca1a744e238ad94d170651f96b
entity_id:
- light.hallway
- light.landing
label_id:
- lights
```