IOS Actionable notifications - no action appear

Hi,

I’ve been banging my head around this issue all morning, would appreciate any help, the issue being the fact that I receive notifications but no actions appear for the notification, using IOS 11.1, latest HA app version, HA 0.57.2

My notification configuration


ios:
  push:
    categories:
      - name: ellahome
        identifier: 'ELLAHOME'
        actions:
          - identifier: 'NOTIFY_RINAT_ELLA_HOME'
            title: 'Notify Rinat Ella Home'
      - name: ellaaway
        identifier: 'ELLAAWAY'
        actions:
          - identifier: 'NOTIFY_RINAT_ELLA_AWAY'
            title: 'Notify Rinat Ella Away'

My automation

- alias: "Presence - Ella left home"
  trigger:
  - platform: state
    entity_id: sensor.ella_home
    from: 'true'
    to: 'false'
  condition: 
    condition: state
    entity_id: sensor.ohad_home
    state: 'false'
  action:  
  - service: notify.ios_ohad_iphone
    data:
      message: "Ella left home"
      data:        
        push:
          badge: 0
          category: 'ELLAAWAY'
        action_data:
          entity_id: sensor.ella_street_location
          my_custom_data: foo_bar

What am I missing here ? why do I only see a notification with ‘Ella is home’ but no actions ?
It’s worth mentioning I’ve already update notifications settings multiple times with no success on the IOS app

Thanks in advance guys

If you are in the lock screen you have to swipe the notification to the left and open the notification.
In the normal screen you have to swipe down the notification.
That way the actions are shown.

1 Like

I probably missed it but it didn’t do the trick, just tried it and this is what I got

2 important things based on my past experience on this topic:

  • in the Home Assistant app, don’t forget to go to its settings, choose ‘Notification settings’ and choose ‘Update push settings’ in each device (theoretically this should happen automatically on app close/open, but…);
  • don’t expect this to show up immediately in iOS after restarting Home Assistant - I suppose that this takes some time due to going through Apple servers.

Good luck with that

2 Likes

Well, this was embarassing as always :slight_smile:, the issue being the case of the category identifier and the fact that IOS notifications should be expanded in the same way as mentioned earlier by @gerard33

The working configuration :

Configuration.yaml

ios:
  push:
    categories:
      - name: ella_home
        identifier: 'ellahome'
        actions:
          - identifier: 'NOTIFY_RINAT_ELLA_HOME'
            title: 'Notify Rinat Ella Home'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: yes
            behavior: 'default'
      - name: ella_away
        identifier: 'ellaaway'
        actions:
          - identifier: 'NOTIFY_RINAT_ELLA_AWAY'
            title: 'Notify Rinat Ella Away'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: yes
            behavior: 'default'

Automations.yaml:

- alias: "Presence - Ella got home"
  trigger:
  - platform: state
    entity_id: sensor.ella_home
    from: 'false'
    to: 'true'
  condition: 
    condition: state
    entity_id: sensor.ohad_home
    state: 'false'
  action:
  - service: notify.ios_ohad_iphone
    data:
      message: "Ella got home"
      data:        
        push:
          badge: 0
          category: 'ellahome'
        action_data:
          entity_id: sensor.ella_street_location

- alias: Notify Rinat Ella is home
  trigger:
    - platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: NOTIFY_RINAT_ELLA_HOME
  action:
  - service: notify.rinat_gmail_notifier
    data:
      message: 'Ella just got home !'
- alias: Notify Rinat Ella is away
  trigger:
    - platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: NOTIFY_RINAT_ELLA_AWAY
  action:
  - service: notify.rinat_gmail_notifier
    data:
      message: 'Ella just left home !'