Trigger-based template sensors are defined in yaml only which is described here
WTH cannot we reuse Automations panel to define those sensors? It’s yaml syntax is pretty much the same
Automation:
triggers: []
conditions: []
actions: []
Template:
triggers: []
conditions: []
sensor: []