i was going through my old automations, but i am seeing this error:
Visual editor is not supported for this configuration
* The provided value for 'entity_id' is not supported by the visual editor. We support (string) but received (["light.voordeurlamp"]).
You can still edit your config in YAML.
Any use of templates in the visual Automation Editor will produce that message; it has no visual representation of templates so it displays it in YAML format.
Your first example doesn’t contain a template but you still get the message because the example’s configuration is like nothing the Automation Editor recognizes. In other words, the configuration doesn’t conform to known conventions.