Automations editor

Hi,
I have automations created directly in automations.yaml that looks like this:

When I look at them in the automations editor in the gui it looks like this:

Seems like the information about the specific device is missing. What do I need to change in order to have my old automations compatible with the GUI?