Failed (?) attempt at laziness

I am setting up a new Home Assistant computer and I guessed that I could be lazy by opening File Editor on my existing/working Home Assistant computer (running OS16.2 and core 2025.4.1), copy the full contents of automations.yaml, and then paste this content into automations.yaml on the new computer.

However, when I opened automations.yaml on the existing device, I saw some lines like this:

actions:
  - type: turn_on
    device_id: xxxx

No big deal. I figured that the device_id is associated with the device being turned on, so I went to Settings->Devices on the existing computer, clicked on the three dots next to one of my devices and selected Download Diagnostics. However, device_id does not appear!

So, if my laziness idea has any merit, would someone please let me know how to find device_id so that I can make sure that the new computer is referencing the proper device. Thanks.

Second bullet under the automations section.

Any reason you did not backup restore or copied the entire config folder to migrate the entire setup (including devices) in one go?