How I keep that sort of thing in a single automation is by using trigger IDs and a service call with a template for said trigger id.
Something like this:
alias: Hallway Motion Light
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.hallway_motion_occupancy
to: "on"
id: "on"
- platform: state
entity_id:
- binary_sensor.hallway_motion_occupancy
to: "off"
id: "off"
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- service: light.turn_{{ trigger.id }}
data:
transition: 3
target:
entity_id: light.hallway_light_2_2
mode: single
It should! As long as you can get it to the bios screen you should be able to get it to boot a live USB. I actually resurrected my EeePC1005 two weeks ago with DamnSmallLinux2024.