Skip to content

Commit ced0fbc

Browse files
committed
Add data_template
1 parent 791672c commit ced0fbc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/_posts/2016-09-01-0-28.markdown

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ The [Home Assistant API Documentation](https://dev-docs.home-assistant.io/en/dev
3232
### {% linkable_title Configuration validation %}
3333
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!
3434

35+
### {% linkable_title Templating %}
36+
`data_template` needs to be present in all notify templates for the future.
37+
38+
```yaml
39+
action:
40+
service: notify.telegram
41+
data_template:
42+
message: "Test from your Home"
43+
data:
44+
location:
45+
latitude: "{{ state.device_tracker.phone.attributes.latitude }}"
46+
longitude: "{{ state.device_tracker.phone.attributes.longitude }}"
47+
```
48+
49+
Stay tuned for more details.
50+
3551
### {% linkable_title All changes %}
3652
3753
<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' />

0 commit comments

Comments
 (0)