Actionable notification not controlling inout boolean

Hi, i just learned about actionable inputs and wanted to try it. I am trying to have the following workflow:

If an inout boolean is “on” for more than 5 minutes → I get an iOS notification with an actionable option to turn it off.

I got as far as getting the action to show up when I press and hold the notification but when I press on that action — nothing happens. Here’s the code:


action:
  - service: notify.mobile_app_mk_iphone_14
    data:
      message: Check the door if it should be locked
      title: Door might be open
      data:
        actions:
          - action: lock
            title: Lock?
            service: input_boolean.turn_off
            data: {}
            target:
              entity_id: input_boolean.lock_switch_2
mode: single

Separately, is there a way for the action to always just show up an option instead of me pressing & holding the notification?

Thank you

I believe the input boolean turn off action should be separate from the notification. All you need in your notify service call is the action and title. You should have an automation triggered on the event ‘mobile_app_notification_action’ with the action title in the event data.There are examples in the companion app documentation.

I think I understand what you mean, so is it a separate automation or separate “Action” in the same automation?

It would be a separate automation. When you click on the action on your phone, an event fires in HA. Your new automation would be triggered by that event.