Fredrik Andersson 6c6268a08e
Update documentation for how cards can be configured in the UI (#21556)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
fixes undefined
2023-01-16 17:54:11 +01:00

2.0 KiB

type, title, sidebar_label, description
type title sidebar_label description
card Logbook Card Logbook The Logbook card displays entries from the logbook for specific entities.

The Logbook card displays entries from the logbook for specific entities.

Screenshot of the logbook card Screenshot of the Logbook card.

To add the Logbook card to your user interface, click the menu (three dots at the top right of the screen) and then Edit Dashboard. Click the Add Card button in the bottom right corner and select from the card picker.

Card Settings

{% configuration_basic %} Entities: description: The entities whose logbook entries will show in the card. Title: description: The title that shows on the top of the card. Hours to show: description: The number of hours in the past that will be tracked in the card. Theme: description: Name of any loaded theme to be used for this card. For more information about themes, see the frontend documentation. {% endconfiguration_basic %}

YAML Configuration

The following YAML options are available when you use YAML mode or just prefer to use YAML in the Code Editor in the UI.

{% configuration %} type: required: true description: "logbook" type: string entities: required: true description: The entities that will show in the card. type: list title: required: false description: Title of the card. type: string hours_to_show: required: false description: Number of hours in the past to track. Minimum is 1 hour. Big values can result in delayed rendering, especially if the selected entities have a lot of state changes. type: integer default: 24 theme: required: false description: Override the used theme for this card with any loaded theme. For more information about themes, see the frontend documentation. type: string {% endconfiguration %}

Examples

type: logbook
entities:
  - fan.ceiling_fan
  - fan.living_room_fan
  - light.ceiling_lights
hours_to_show: 24