This is above my knowledge how to get this to work so is there anyone here that can help me?
I would like HA to send a notification with the time I get home when I am leaving work. Is there possible somehow that when I am exiting “zone work” it takes the travel time from google travel sensor and send a notify that I´ll be home xx:xx?
I have this running currently. It does not give you the time in which you will arrive but the duration.
- alias: Leaving work
trigger:
platform: state
entity_id: device_tracker.ryans_iphone_app
from: 'work'
to: 'not_home'
action:
service: notify.ios_ryans_iphone_app
data_template:
title: "You are leaving work!"
message: >
And will arrive in {{ states("sensor.device_ryan_to_home") }} minutes.
That works beautiful @rabittn Is there any way in the cod to remove the PM/AM? Here in Sweden we use 24H clock so the notifications said “arrive home at 22:01 PM” So the PM do not ad anything for me