HI,
Starting my way in IOS actionable and proximity based triggers, Im a bit overwhelmed tbh.
Seems to very easy:
when riding home, and within 15 minutes, have a notification popup asking if the espresso should be turned on…
I have proximity setup, iOS too of course, and the espresso switch exists;-)
now need to tie these together.
Would have hoped for a few hints or examples to help me with the basic structure, but can find the cookbook for this.
Would someone here have a similar setup they would care to share?
I am using this now, and suppose the action could be enhanced with the iOS notification?
- alias: M bijna thuis
initial_state: 'on'
# hide_entity: true
trigger:
platform: numeric_state
entity_id: proximity.m_home
below: 5
above: 1
condition:
- condition: template
value_template: >
{{ state_attr('proximity.m_home', 'dir_of_travel') == 'towards' and
states('device_tracker.m') != 'home' }}
- condition: template
value_template: >
{{ is_state('input_boolean.notify_presence', 'on')}}
action:
service: notify.m
data_template:
message: >-
M is op minder dan 5 kilometer van huis,
en is over {{states('sensor.m_naar_huis')}} minuten thuis!
thx,
Marius