diff --git a/src/panels/config/integrations/integration-panels/bluetooth/bluetooth-advertisement-monitor.ts b/src/panels/config/integrations/integration-panels/bluetooth/bluetooth-advertisement-monitor.ts index 361eaced72..65c17dc42e 100644 --- a/src/panels/config/integrations/integration-panels/bluetooth/bluetooth-advertisement-monitor.ts +++ b/src/panels/config/integrations/integration-panels/bluetooth/bluetooth-advertisement-monitor.ts @@ -12,6 +12,7 @@ import type { } from "../../../../../components/data-table/ha-data-table"; import "../../../../../components/ha-fab"; import "../../../../../components/ha-icon-button"; +import "../../../../../components/ha-relative-time"; import type { BluetoothDeviceData, BluetoothScannersDetails, @@ -140,6 +141,18 @@ export class BluetoothAdvertisementMonitorPanel extends LitElement { sortable: true, defaultHidden: true, }, + time: { + title: localize("ui.panel.config.bluetooth.last_seen"), + filterable: false, + sortable: true, + defaultHidden: false, + template: (ad) => + html``, + }, rssi: { title: localize("ui.panel.config.bluetooth.rssi"), type: "numeric", @@ -167,6 +180,7 @@ export class BluetoothAdvertisementMonitorPanel extends LitElement { scanner?.name || row.source, device: device?.name_by_user || device?.name || undefined, + datetime: new Date(row.time * 1000), }; }) ); diff --git a/src/translations/en.json b/src/translations/en.json index de8d7a6775..71b92ad59c 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5369,6 +5369,7 @@ "source": "Source", "rssi": "RSSI", "source_address": "Source address", + "last_seen": "Last seen", "device": "Device", "device_information": "Device information", "advertisement_data": "Advertisement data",