Automation Editor - support of data templates

Does the Automation Editor support data templates? (data_template)

The following works when I add it directly to automations.yaml

  - data_template:
      message: 'is now {{ trigger.to_state.state }} '
      title: '{{trigger.to_state.attributes.friendly_name}}'
      notification_id: '1234'
    service: persistent_notification.create

But the editor shows it as

2017-09-17_12-59-04

2 Likes

has anyone figured out if this is possible?

Try only

  • data: …

data: … doesn’t seem to allow variables

I’ve got the same issue, have you been able to figure this out ?

Nope. I use the Automation Editor for some basic automation but if I need templates, I have to manually edit the file.

It’s an incomplete addition to Haas… kind of Google-like :wink:

2 Likes

Any updates on this?
I’d like to use Automation Editor but I need templates.
thanks

+1 :frowning:

Would be great to have this, even if it’s just another box to type JSON into after the ‘data’ box.

At least editing using the UI doesn’t undo edits to the yaml file.

+1
Any updates on this?

The problem seems to persist in v0.97.2.

still there in 100.3…

The problem still exists in 0.102.1. No data_template in Automation Editor.

In version 0.103 YAML support has been added in the automation editor. You can now edit every individual trigger, condition or action as YAML. This allows you to add data_templates.

Just click on the three dots in the top right and click “Edit as YAML”

4 Likes