Help with my actionable ios notification

I’m getting the notification just fine but it’s not showing the action as an option. Push settings and everything is updated.

configuration.yaml

      push:
        categories:
          - name: Garage_open
            identifier: 'GARAGE1'
            actions:
              - identifier: 'CLOSE_GARAGE' ## this must point to an action ##
                title: 'Close the Garage Door'

automation.yaml

      - alias: "Notify iOS Garage"
        initial_state: true
        hide_entity: true
        trigger:
          - platform: state
            entity_id: cover.garage_door
            from: 'closed'
            to: 'open'
        action:
          - service: notify.ios_dkphone
            data:
              title: "Garage Alert"
              message: "GARAGE IS OPEN"
              data:
                push:
                  sound: "US-EN-Daisy-Garage-Door-Open.wav"
                  badge: 0
                  category: 'GARAGE1'


      - alias: "iOS Actionable Notification for Garage Door"
        initial_state: true
        hide_entity: true
        trigger:
          platform: event
          event_type: ios.notification_action_fired
          event_data:
            actionName: 'CLOSE_GARAGE'
        action:
          service: cover.close_cover
          entity_id: cover.garage_door

EDIT:
I found the solution was not have the “-” before the service!

    action:
      - service: cover.close_cover
        entity_id: cover.garage_door

I found I had better luck both restarting Home assistant and updating push settings in the app for my changes to take effect took awhile but I did finally get buttons to show up.

Category identifiers have to be lowercase now. So identifier: garage1
Action identifiers stay uppercase.

2 Likes

Tried it, no change.

Did a restart, then updated push settings, then closed the app, then opened it again and updated push settings again, still no luck.

Did you change it in both the config file and the push: category: in the automation? That’s really the only thing I see wrong with it. Below is a working setup that I am currently using:

Configuration:

ios:
  push:
    categories:
      - name: door
        identifier: 'lock'
        actions:
          - identifier: 'UNLOCK_DOOR'
            title: 'Yes'
            activationMode: 'background'
            authenticationRequired: no
            destructive: yes
            behavior: 'default'
          - identifier: 'DISMISS'
            title: 'Dismiss'
            activationMode: 'background'
            authenticationRequired: no
            destructive: no
            behavior: 'default'

Automation:

alias: Unlock When Home
trigger:
  platform: state
  entity_id: input_boolean.ios_home
  to: 'on'
action:
  - service: notify.ios_michael_iphone
    data_template:
      message: 'Unlock Front Door?'
      data:
        push:
          category: 'lock'

Here’s what I currently have and it’s still perfectly notifying me of the even but not providing the actionable component:

configuration.yaml:

ios:
  push:
    categories:
      - name: garagedoor
        identifier: 'garage1'
        actions:
          - identifier: 'CLOSE_GARAGE' ## this must point to an action ##
            title: 'Close the Garage'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: yes
            behavior: 'default'

automation.yaml:

  - alias: Notify iOS Garage
    initial_state: true
    hide_entity: true
    trigger:
      - platform: state
        entity_id: cover.garage_door
        from: 'closed'
        to: 'open'
    action:
      - service: notify.ios_dkphone
        data:
          title: "Garage Alert"
          message: "GARAGE IS OPEN"
          data:
            push:
              badge: 0
              category: 'garage1'


  - alias: iOS Actionable Notification for Garage Door
    initial_state: true
    hide_entity: true
    trigger:
      platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: CLOSE_GARAGE
    action:
      service: cover.close_cover
      entity_id: cover.garage_door

Just to be sure: 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.
Only that way the actions are shown.

Yep. The apple watch shows them on the face without clicking anything, and on the iphone force pressing it gives you the actions.

I found the solution was not have the “-” before the service!

    action:
      - service: cover.close_cover
        entity_id: cover.garage_door