How to migrate migrations from yaml to UI?

I just read the release notes for 2021.4 and I’d like to use the automation debugger but I can’t view the history of my automations because they do not have a unique id as described here.

I have dozens of automations I created before the UI editor was a thing. How do I migrate my automations so I can view the history and debug?

Just add an unique id :

- id: '1564487130669'
  alias: licht_waskot
  - entity_id: light.lichtwaskot
    for: 00:05
    platform: state
    to: 'on'
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - data:
      entity_id: light.lichtwaskot
    service: light.turn_off

The id in the example is the unique id

I was hoping it would be this simple. Is that just a random long value?

It’s a string, and just needs to be unique amongst your automations.

Does the id have to be a number or can a description be a valid id?