iOS Actionable Notification - No Actions

Hi Max - am I missing something? Where would you put the action for the button, here? As in what you want HA to actually do when a button is pressed on the iOS device? Thanks
Really struggling with this.

Iā€™m not sure, it was a long time ago and I donā€™t use iOS actionable notifications anymore.

But I believe the next iOS app update will change the notifications completely so maybe wait until thatā€™s out.

Thanks Max - eventually got it sorted. :slight_smile:
Out of interest, what do you use now?

Good to hear.

I donā€™t have a use for actionable notifications right now actually. Maybe in the future.

Hi guys,
#im trying get this to work but no buttons appear on my display. :frowning: Im trying since 1 week, but now, i need some help. Maybe anybody can help please??

my configuration.yaml

ios:
  push:
    categoeries:
    - name: Vakuum
      identifier: 'vakuum'
      actions:
      - identifier: 'RUN_VAKUUM'
        title: 'Start Cleaning'
        activationMode: background
        authenticationRequired: no
      - identifier: 'DO_NOTHING'
        title: 'Do Nothing'
        activationMode: background
        authenticationRequired: no

and my two automations in the automation.yaml:

- id: '1566881863885'
  alias: Kalle Push
  trigger:
  - entity_id: device_tracker.birger_iphone
    platform: state
    to: not_home
  action:
    service: notify.ios_birger_iphone
    data:
      title: Kalle
      message: Cleaning?
      data:
        push:
          badge: 0
          category: 'vakuum'
- id: '15668818637645'
  alias: iOS Event Trigger Kalle
  trigger:
  - event_data:
      actionName: RUN_VAKUUM
    event_type: ios.notification_action_fired
    platform: event
  condition: []
  action:
  - data:
      entity_id: vacuum.kalle
    service: vacuum.start
  initial_state: true

That would be so nice.

Nobody here who can help me? :frowning:

It looks like the indentions are off?

Iā€™ll post mine, I havenā€™t used it in awhile but it did work when I was using it.

Iā€™m not by my computer right now but I promise not to forget!

You wrote ā€˜categoeriesā€™ instead of ā€˜categoriesā€™, third line on your configuration.yaml.

That was the error! Thank you so much

1 Like

I am having a similiar issues. I have three actionable categories but one of them does not provide me any options. Iā€™m sure itā€™s super simple, but I cannot seem to find it

ios:
  push:
    categories:
      - name: Garage Alert
        identifier: 'garage_alert'
        actions:
          - identifier: 'CANCEL_GARAGE_ALERT'
            title: 'Cancel Alert'
          - identifier: 'CLOSE_GARAGE'
            title: 'Close Garage'
      - name: Shopping Alert
        identifier: 'shopping_alert'
        actions:
          - identifier: 'CANCEL_SHOPPING_ALERT'
            title: 'No'
          - identifier: 'OPEN_GARAGE_WHEN_I_GET_HOME'
            title: 'Yes'
      - name: Guest Alert
        identifier: 'guest_alert'
        actions:
          - identifier: 'GUESTS_GONE'
            title: 'No'
          - identifier: 'GUESTS_HOME'
            title: 'Yes'

This is the automation for the one that is failing

- alias: Actionable Guests at home when security is armed
  trigger:
  - platform: state
    entity_id:
      - binary_sensor.motion_sensor_living_room_motion
    from: 'off'
    to: 'on'
  condition:
  - condition: state
    entity_id: input_select.security_system
    state: 'Armed (Away)'
  action:
  - service: notify.ios_tracys_iphone
    data:
      message: "Are there Guests in the House?"
      data:
        push:
          category: "guest_alert"
  - service: notify.ios_pauls_iphone
    data:
      message: "Are there Guests in the House?"
      data:
        push:
          category: "guest_alert"

I never get the Yes or No, options. I do get the iOS Alert, just not actionable.

Anyone see anything obvious.

Which app are you using? 1.5.1 or 2.0?

1.5.1 but strangely enough another actionable notification does work.

since these seem correct, it could be the trigger automation? You didnt post that, so maybe have a look at that?

- alias: 'IOS - All In one'
  id: 'IOS - All In one'
  trigger:
    platform: event
    event_type: ios.notification_action_fired

etc etc

Hmm, here are the trigger automations

- alias: iOS Actionable Notification Guests Gone
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: GUESTS_GONE
  condition:
  - condition: numeric_state
    entity_id: sensor.ha_runtime_in_minutes
    above: 1
  action:
  - service: input_boolean.turn_off
    entity_id: input_boolean.guests_present

- alias: iOS Actionable Notification Guests Home
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: GUESTS_HOME
  condition:
  - condition: numeric_state
    entity_id: sensor.ha_runtime_in_minutes
    above: 1
  action:
  - service: input_boolean.turn_on
    entity_id: input_boolean.guests_present

My thing is that I never get a Yes or No option to select, so these automatons never trigger. Basically I get a popup that says ā€œAre there Guests in the House?ā€ If I long press I get nothing, If I tap, it just opens the app.

well, yes, I recognize that. Had a few of these cases myself, and never could find the solution. Until I saw ā€˜endpoint disabledā€™ in the logs.

with the latest updates, Hassio, iOS, that got worse, up to the moment my iPhone didnt get any notification at all, not even the notify.notify, nor the life360 updates for that matter. I was on iOS beta, and that was troubled with other connection issues so it appeared (iCloud for one).

Deleted the beta certificate and waited for another IOS release firmware. deleted all App installs, deleted the entries in .storage for my iPhone, restarted everything and reinstalledā€¦

long story short: after all that, all notifications were delivered, including the failing actionable notifications, which now even play a nice sound when theyā€™re fired :wink:

suppose you took care of the most obvious thing to do: update the push-settings in the app?

if its of any use for you, this is my generic iOS push system:


ios:
  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
          - identifier: 'DISMISS'
            title: 'Dismiss'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: no
            behavior: 'default'

you seem to miss out on several of the settings under the identifiers (some are default, so probably can be left out, still no harm adding them eitherā€¦)

1 Like

Oh wow. Thanks. That was it. The simplest solution is often the right solution. I never updates the push settings in the app. Haha. Just did that and itā€™s working perfectly now. Thank you!!

2 Likes

Hi I am having a similar issue with this, I have created the notification which I can see in my iOS app but when it fires I just get the message with no actionable buttons. I see lots of comments regarding ā€œupdate push settings in the appā€ but where is that setting? I have gone through everything but cant find it. I am running version 0.116.0.

Realised the buttons were there after hours of debugging but you have to long press the notification. Is there any way to get the button to appear when the notification appears or is this just an iOS feature?

Yeahā€¦ those options can be easily unnoticed.
And once you click the notification it disapears making impossible to come back and chose the option again.

I have another question. Actionable notifications can be set from within iOS application. And it works well. But how to share this notification with other users of my HA system? Is this notificaton set in App just for me? Or can be somehow automatically spread across all devices in my HA network?

Or maybe itā€™s just a tool to test a notification, and then I have to configure it in configuration.yaml anyway?
While this feature is mentioned in documentation, there is no any word about how to share it.

Ahh. there is a ā€œshare contentā€ button in notification editorā€¦ I tried to send it to another iPhone using AirDrop but it has been recognized as plain text file.

thanks in advance

You can create a group of phones or devices, and instead of using service notify.mobile_app_<your_device>, you can use something likeā€¦ notify.phones

Create a group in the notify yaml.

#phones
- name: Phones
  platform: group
  services:
  - service: mobile_app_<my_phone>
  - service: mobile_app_<her_phone>
  - service: mobile_app_<his_phone>