Need some pointers for IOS actionable based on proximity

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

Does your automation work? It looks correct to me. Is the only thing you are missing is the actionable button?

yes, and I have repeatedly refreshed notification push settings in the app

fyi, this is the iOS setting in configuration.yaml:
ios: !include ios.yaml

iOS.yaml:

push:
  categories:
    - name: Espresso
      identifier: 'espresso'
      actions:
        - identifier: 'ALLINONE_TRUE'
          title: 'Yes/On/True/Open/Lock'
          authenticationRequired: yes
          activationMode: 'background'
          destructive: yes
          behavior: 'default'
        - identifier: 'ALLINONE_FALSE'
          title: 'No/Off/False/Close/Unlock'
          authenticationRequired: no

    - name: Alert
      identifier: 'alert'
      actions:
        - identifier: 'DISABLE_ALERT'
          title: 'Disable Alert'
          activationMode: 'background'
          authenticationRequired: yes
          destructive: yes
          behavior: 'default'

automation:

- alias: IOS - Espresso actions when near home
  trigger:
    platform: numeric_state
    entity_id: proximity.marijn_home
    below: 15
    above: 1
  condition:
    condition: template
    value_template: >
      {{ state_attr('proximity.marijn_home', 'dir_of_travel') == 'towards' and
         states('device_tracker.marijn') != 'home' }}
  action:
    service: notify.m
    data:
      message: 'Wil je vast de Espresso aanzetten?'
      data:
        push:
          category: 'espresso'
        action_data:
          entity_id: switch.sw_espresso_keuken_template