fix action

This commit is contained in:
2025-11-16 16:41:46 +01:00
parent 3b6dc4091f
commit 1f42266103

View File

@@ -40,7 +40,7 @@ export async function runPublishLoop(
for (const bootEntry of bootEntries) {
await mqttClient.publishAsync(
`homeassistant/button/${config.device.key}/button-trigger-reboot/config`,
`homeassistant/button/${config.device.key}/button-trigger-reboot-${bootEntry.number}/config`,
JSON.stringify({
device,
command_topic: `${state_topic}/trigger-reboot`,
@@ -48,7 +48,7 @@ export async function runPublishLoop(
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}`,
unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}_${bootEntry.number}`,
}),
);
}