Automations: visual editor vs. variables?

Turns out, it is possible. There must have been an error in the YAML, which I did not find. After re-creating the automation from scratch and then re-add the variables, everything is working fine.