Actionable Notification Help

I’m running Hass 0.66 w/ an iphone 7 on 11.3, and I’ve gone through all the examples here, and I can’t get the actions to pop w/ the notification I get. Can anyone confirm it’s still working for them?

EDIT: Ooops… I forgot to update the notification settings on my phone

I just tested and actionable notifications are still working for me. I’m on HassIO 0.66.1

Hello,

I have the same problem. Here is my code, could anyone do a favor what’s wrong?

ios:
  push:
    categories:
      - name: Alarm
        identifier: 'alarm'
        actions:
          - identifier: 'ALARMON'
            title: 'Sound Alarm'
            activationMode: 'background'
            authenticationRequired: yes  
            destructive: yes
            behavior: 'default'
          - identifier: 'ALARMOFF'
            title: 'Silence Alarm'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: no
            behavior: 'textInput'
            textInputButtonTitle: 'Silencio!'
            textInputPlaceholder: 'Placeholder'


- id: action_push_message
  alias: 'Action Push Message'
  initial_state: True
  trigger:
    - platform: state
      entity_id: sensor.front_window
      from: 'closed'
      to: 'open'
  action:
    - service: notify.ios_archers_iphone
      data:
        message: 'Front window is Open!'
        data:
          push:
            sound: "US-EN-Daisy-Front-Window-Open.wav"
            badge: 0
            catagory: "alarm"


- id: push_notify_action
  alias: 'Push Notify Action'
  initial_state: True
  trigger:
    platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: ALARMON
  action:
    service: script.sonos_say
    data:
      sonos_entity: media_player.office
      volume: 0.3
      message: 'Police are coming!'
      delay: '00:00:02'

iOS version: 11.3
HA version: 0.66.0
Already did “Update push settings”

Thanks.

can you explain what is the problem and also have you update the push setting on the ios app?

The Actionable notifications do not appear on my iphone even I tried swiping left, right, up, and down. It’s still no button even I reset HA, restarted iphone, update push settings.

here is my test is working to expand the notifications i use 3D touch but if you device don’t support them swiping up, and down will work

ios:
  push:
    categories:
      - name: test archer
        identifier: 'alarm'
        actions:
          - identifier: 'ALARMON'
            title: 'alarm on'
            activationMode: 'background'
            authenticationRequired: yes  
            destructive: yes
            behavior: 'default'  


automation old:
  - alias: 'archer test'
    initial_state: True
    trigger:
      platform: state
      entity_id: sensor.front_window
      from: 'closed'
      to: 'open'
    action:
      service: notify.ios_archers_iphone
      data:
        message: "archer's test" 
        data:
          push:
            badge: 0 # this will remove the badge/app icon number
            sound: "US-EN-Daisy-Front-Window-Open.wav"
            category: 'alarm'          #this has to match with identifier name 

  - alias: alarma archer
    trigger:
      platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: ALARMON
    action:
     service: script.check_sistem_script

i have not test the text imput part i will post it after testing

I copied your code and it’s working. I am going to check the root cause.
Thank you a lot.

Could you please make an example for us that use Hassio as well? I´m not sure what to put in my automation…

Never got it to work:frowning:

Thanks for your support!

im using hass.io but i don’t use the automation editor i edit my automation in the ymal file but you can post whatever you have on your automations and i will try to help you

Thanks!

Let´s see if we can get it working or if someone else know how to configure it. Tried other configurations as well but this is where I am at the moment…

Hardware and software versions:
Raspberry PI 3
Hassio v.0.67.0
Iphone X running Ios v.11.3

Code in the “configuration.yaml”

 ios:
  push:
    categories:
      - name: Lock
        identifier: 'ioslock'
        actions:
          - identifier: 'IOSLOCK1'
            title: 'Lock?'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: yes
            behavior: 'default'

Code in the “automations.yaml”

 - action:
 - data:
      message: Motion at home, strange right?
      data:
          push:
            badge: 0
          category: 'ioslock'
    service: notify.ios_klangens_iphonex
  alias: If no one is home and motion occurs send notification
  condition:
- condition: state
    entity_id: group.all_devices
    state: not_home
  id: '1507979542878'
  trigger:
  - entity_id: binary_sensor.motion_sensor_sensor
    platform: state
    to: 'on'
  - entity_id: binary_sensor.sensor
    platform: state
    to: 'on'
  - entity_id: group.basement_motion_sensor
    platform: state
    to: 'on'

This is how it looks under automations in HA

Output in the phone