Actionable Notification Help - Event not returning to HA

After fighting this for a week I am relenting and asking for help. I am sure someone else has had this problem I just can’t find a recent post about it. So I followed all the guides and have the notification show up on my Iphone, complete with the buttons. However, when I press one nothing happens. I have the automation set up the matches the first button and when I fire it manually it works, ie the lights come on.

So it seems like the event isn’t firing back to HA but I am at a loss why. Here is the relevant configs.

ios:
  push:
    categories:
      - name: "Light Control" 
        identifier: 'light_notification' 
        actions: 
          - identifier: 'LIGHTS_ON'
            title: 'Turn the lights back on'
          - identifier: 'LIGHTS_OFF'
            title: 'Dismiss Alarm'
- id: '1589903784111'
  alias: Actionable NOtification Trigger Test
  description: ''
  trigger:
  - entity_id: input_boolean.watching_tv
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      data:
        push:
          badge: 0
          category: light_notification
      message: Would you like the lights back on to eat dinner?
    service: notify.mobile_app_the_ping_in_the_north
- id: '1589902329068'
  alias: Actionable Notification Test
  description: ''
  trigger:
  - event_data:
      actionName: LIGHTS_ON
    event_type: ios_notification_action_fired
    platform: event
  condition: []
  action:
  - data:
      brightness: 10
    entity_id: light.living_room_1
    service: light.turn_on
  - data:
      brightness: 40
    entity_id: light.living_room_2
    service: light.turn_on
  - data: {}
    entity_id: light.living_room_3
    service: light.turn_on

The second option on the notification “dismiss alarm” doesn’t actually do anything yet I was using this as a test.

Did you remember to “import push config from server”? It’s in the ios app configuration / notifications.

Yep and I deleted it and re-imported it a few times for good measure. I also reset the app and then completely deleted the integration from HA. Restarting each time.

Have you used the events page of developer tools to listen for ios.notification_action_fired events?

I have tried and nothing appears. It says listening so I think it is working.

There’s a typo in your automation, you are listening for ios_notification_action_fired, it should be ios.notification_action_fired. A corrected automation is:

- id: '1589902329068'
  alias: Actionable Notification Test
  description: ''
  trigger:
  - event_data:
      actionName: LIGHTS_ON
    event_type: ios.notification_action_fired
    platform: event
  condition: []
  action:
  - data:
      brightness: 10
    entity_id: light.living_room_1
    service: light.turn_on
  - data:
      brightness: 40
    entity_id: light.living_room_2
    service: light.turn_on
  - data: {}
    entity_id: light.living_room_3
    service: light.turn_on

Wow that worked thank you so much. I can’t tell you home many times I have read through it looking for a typo and never noticed that one period was not where it should have been. A million times thank you!

1 Like

No worries. Sometimes just a different set of eyes is what’s needed. Happy to help :slight_smile: