Ios.notification_action_fired never triggered

Hi All,

I need your help. I have spent a couple of hours/days trying to get iOS actionable notifications.
I can get the notification with actions, but I click on the action, nothing happens.
If I send the ios.notification_action_fired (directly from the web interface), I can see that the automation is started.

Here is my configuration.yaml

ios:
  push:
    categories:
    - name: stoplight
      identifier: stoplight
      actions:
        - identifier: YES
          title: 'Yes'
          activationMode: 'background'
          authenticationRequired: no
          destructive: yes
          behavior: 'default'

the automation.yaml is
- alias: LUMIERE - notification pour arreter la gateway
trigger:
- platform: event
event_type: ios.notification_action_fired
event_data:
actionName: YES
action:
service: homeassistant.turn_off
entity_id: light.lumiere_salon

  # test Button
  - alias: SYSTEME - Test button pour notification
    initial_state: 'on'
    trigger: 
      - platform: state
        entity_id: input_boolean.test
        to: 'on'
    action:
      - service: light.turn_on
        entity_id: light.gateway_light_7811dcb90755
      - service: notify.ios_ilaurent_
        data:
          message: "Are you working from home today?"
          data:
            push:
              badge: 0
              category: "stoplight"

Any idea why I am not able to trigger ios.notification_action_fired ?

Thanks a lot for your help.

Laurent

1 Like

I’m having the same issue. The ios.notification_action_fired event is never fired.

Did you find a solution?

I found the solution here: https://github.com/home-assistant/home-assistant/issues/18858#issuecomment-449643788

1 Like

I’m having a similar issue. Everything seems to be setup correctly. I get the actionable notification, I am able to click the button, and a response is sent back to the event log:

[homeassistant.core] Bus:Handling <Event ios.notification_action_fired[R]: actionName=YES, sourceDeviceID=iphonex, sourceDevicePermanentID=9CD9654F-3EAC-44F9-98B4-64624A7724A4, sourceDeviceName=iPhoneX>

The problem is that the action that is supposed to take place from this event doesn’t fire. Here is the automation that is supposed to trigger when the event bus sees the above message:

  - alias: Reset Actionable Boolean
    initial_state: True
    trigger:
      platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: YES
    action:
      service: input_boolean.turn_off
      entity_id: input_boolean.actionable_test

@Jasperhb: I looked at the link you provided, however this is a new install that never had any of the legacy api stuff.

Sorry for my late answer. I did the github’s solution as well and it started to work.