Add data_template

This commit is contained in:
Fabian Affolter 2016-09-10 22:00:20 +02:00
parent 791672ca7d
commit ced0fbc717
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -32,6 +32,22 @@ The [Home Assistant API Documentation](https://dev-docs.home-assistant.io/en/dev
### {% linkable_title Configuration validation %} ### {% linkable_title Configuration validation %}
The validation of the configuration is still on-going. Approximatly 80 % is done. This means that we will propably talk about this topic in the next release notes again. To align the configuration of components and platforms we needed to break some. Please refer to the Breaking changes section to check if you need to update your configuration or simple check your log for configuration validation errors. Thanks to [@kellerza], [@fabaff], [@Teagan42], and [@pvizeli] for your effort! The validation of the configuration is still on-going. Approximatly 80 % is done. This means that we will propably talk about this topic in the next release notes again. To align the configuration of components and platforms we needed to break some. Please refer to the Breaking changes section to check if you need to update your configuration or simple check your log for configuration validation errors. Thanks to [@kellerza], [@fabaff], [@Teagan42], and [@pvizeli] for your effort!
### {% linkable_title Templating %}
`data_template` needs to be present in all notify templates for the future.
```yaml
action:
service: notify.telegram
data_template:
message: "Test from your Home"
data:
location:
latitude: "{{ state.device_tracker.phone.attributes.latitude }}"
longitude: "{{ state.device_tracker.phone.attributes.longitude }}"
```
Stay tuned for more details.
### {% linkable_title All changes %} ### {% linkable_title All changes %}
<img src='/images/supported_brands/xbox-live.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' /><img src='/images/supported_brands/automatic.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' /><img src='/images/supported_brands/pi_hole.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' /> <img src='/images/supported_brands/xbox-live.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' /><img src='/images/supported_brands/automatic.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' /><img src='/images/supported_brands/pi_hole.png' style='clear: right; margin-left: 5px; border:none; box-shadow: none; float: right; margin-bottom: 16px;' width='100' />