Im after a little help to get this working - the automation is firing, but the alerts are not coming through as the data template is wrong. would love some help as dont know how to test this?
- id: travel-zone-enter
alias: 'Travel: Alert on zone enter'
trigger:
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.home
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.es_mum
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.es_work
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.shop
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.supermarket
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.supermarket_new
event: enter
- platform: zone
entity_id: device_tracker.js_js,device_tracker.es_es
zone: zone.work
event: enter
action:
- service: notify.telegram
data_template:
title: 'Message'
message: '{{ trigger.to_state.attributes.friendly_name }} entered {{trigger.zone}}'indent preformatted text by 4 spaces