From 3b6dc4091f440aa271529d5d6799de089fac9814 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sun, 16 Nov 2025 16:39:46 +0100 Subject: [PATCH] fix ids --- src/publisher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/publisher.ts b/src/publisher.ts index f7bc8ea..c8e5d3d 100644 --- a/src/publisher.ts +++ b/src/publisher.ts @@ -44,9 +44,9 @@ export async function runPublishLoop( JSON.stringify({ device, command_topic: `${state_topic}/trigger-reboot`, - default_entity_id: `button.${config.device.key}_${entityIds.actions.triggerReboot}`, - name: `Reboot into ${bootEntry.label}`, - object_id: `efibootmgr_${config.device.key}_${entityIds.actions.triggerReboot}`, + default_entity_id: `button.${config.device.key}_${entityIds.actions.triggerReboot}_${bootEntry.number}`, + name: `Reboot into ${bootEntry.label} - ${bootEntry.number}`, + object_id: `efibootmgr_${config.device.key}_${entityIds.actions.triggerReboot}_${bootEntry.number}`, payload_press: bootEntry.number, unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}`, }),