AJStubbsy.markdown (#13551)

This commit is contained in:
AJStubbsy 2020-05-22 11:24:28 +01:00 committed by GitHub
parent 52e0ba4fc5
commit 7753b3e886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,16 @@ As "Service Data" we want a simple text that is shown as part of the notificatio
}
```
The Automation Editor does not currently support **data_template** as a "Service Data" entry. For these actions, it will be necessary to edit as YAML. This can be achieved by clicking the menu (3 vertical dots) and selecting "Edit as YAML"
```yaml
# Example of how to use data_template in the Automation Editor, using "Edit as YAML"
data_template:
message: >
Paulus just changed from {{ trigger.from_state.state }}
to {{ trigger.to_state.state }}
```
Don't forget to save your new automation rule. For your saved automation rule to come into effect, you will need to go to the **Configuration** page and click on **Reload Automation**.
## Updating your configuration to use the editor