Compare commits

...

1 Commits

Author SHA1 Message Date
Paulus Schoutsen
78ac6e881a Add logbook to security dashboard 2025-09-07 11:04:11 -04:00

View File

@@ -12,6 +12,7 @@ import {
} from "../areas/helpers/areas-strategy-helper";
import { getHomeStructure } from "./helpers/home-structure";
import { findEntities, HOME_SUMMARIES_FILTERS } from "./helpers/home-summaries";
import type { LogbookCardConfig } from "../../cards/types";
export interface HomeSecurityViewStrategyConfig {
type: "home-security";
@@ -131,6 +132,24 @@ export class HomeSecurityViewStrategy extends ReactiveElement {
}
}
sections.push({
type: "grid",
cards: [
{
type: "heading",
heading: hass.localize("panel.logbook"),
tap_action: {
action: "navigate",
navigation_path: `/logbook?entity_id=${entities.join(",")}`,
},
},
{
type: "logbook",
target: { entity_id: entities },
} satisfies LogbookCardConfig,
],
});
return {
type: "sections",
max_columns: 2,