Handle iOS Actionable Notification callbacks from companion app

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Blueprint for easy handling of callbacks that happen when you press actionable notifications from the iOS companion app..
Just add the identifier for the action and what action(s) you want to take when it’s pressed. It supports up to four identifiers, which is also the limit for the buttons. You don’t have to fill out all identifiers.
Also available as a gist.

blueprint:
  name: Handle Ios Actionable Notifications
  description: Catch event ios.notification_action_fired that is fired when you press an actionable notification, and choose an action based on the actionName.
  domain: automation
  input:
    choose_1:
      name: First button identifier
      default: []
    action_1:
      name: Action for first button
      default: []
      selector:
        action: {}
    choose_2:
      name: Second button identifier
      default: []
    action_2:
      name: Action for second button
      default: []
      selector:
        action: {}
    choose_3:
      name: Third button identifier
      default: []
    action_3:
      name: Action for third button
      default: []
      selector:
        action: {}
    choose_4:
      name: Fourth button identifier
      default: []
    action_4:
      name: Action for fourth button
      default: []
      selector:
        action: {}

trigger:
- platform: event
  event_type: ios.notification_action_fired
variables:
  choose_1: !input 'choose_1'
  choose_2: !input 'choose_2'
  choose_3: !input 'choose_3'
  choose_4: !input 'choose_4'
action:
- choose:
  - conditions:
    - condition: template
      value_template: '{{trigger.event.data["actionName"] == choose_1}}'
    sequence: !input 'action_1'
  - conditions:
    - condition: template
      value_template: '{{trigger.event.data["actionName"] == choose_2}}'
    sequence: !input 'action_2'
  - conditions:
    - condition: template
      value_template: '{{trigger.event.data["actionName"] == choose_3}}'
    sequence: !input 'action_3'
  - conditions:
    - condition: template
      value_template: '{{trigger.event.data["actionName"] == choose_4}}'
    sequence: !input 'action_4'
1 Like

Hi!
Do this still work after iOS-2021.5 ?
I can’t use it but don’t know why…