This commit is contained in:
2025-11-16 16:39:46 +01:00
parent 107c3b9b35
commit 3b6dc4091f

View File

@@ -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}`,
}),