Actionable notifications for Android w/ Cam Snapshot

This Blueprint is a remix of vorion’s Actionable notifications for Android located here:
:bell: Actionable notifications for Android

I modified their Blueprint so I could repurpose it for my Amcrest Doorbell. This should work with other camera entities and sensors as needed.

(Yes, I realize I have a typo in my screenshot above :slight_smile: )


  • Home Assistant app on your Android phone
  • Camera entity to display in the notification


I tweaked a few things from vorion’s original Blueprint including:

  • Added a camera entity for display in the notification.
  • Removed input_boolean from the required domains for the trigger so that I could use the doorbell press on my Amcrest AD410. This means, if you use an input_boolean, it will not reset after the automation is run like vorion’s Blueprint.
  • Changed the notify device format to a notify service calls instead of a mobile_app domain device. This requires your notify device to be in the format of notify.<device>, such as notify.notify that notifies all devices with the app installed. I unfortunately couldn’t figure out how to setup a selector to give you a list of available notify service calls, so you will need to do a little digging on format given your particular implementation. This can be done from the Developer Tools → Services section of Home Assistant. From this area, put in notify. in the Service entry and it should show you a list of valid notify options.

See vorion’s original post for additional notes on configuring the 3 actions including how to find the name of the app you want to open (If you’re doing that).


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

  name: Send actionable notifications for Android with Camera Snapshot
  description: >
    Send actionable notifications to an Android device. Customized from vorion's blueprint.
    - Remove notify_device integration requirement to allow notify groups to be used.
    - Removed trigger_entity domain input_boolean requirement. Removed reset of input_boolean from actions. (For use in detecting doorbell rings from sensor)
    - Added camera snapshot for doorbell capture (required).
    For each action, you can open an URL, an application on the device or load a lovelace view/dashboard.

    If you plan to use a lovelace view the format would be /lovelace/test where test is replaced by your defined path in the defined view.

    If you plan to use a lovelace dashboard the format would be /lovelace-dashboard/view where /lovelace-dashboard/ is replaced by your defined dashboard URL
    and view is replaced by the defined path within that dashboard.

    To pick the application to open, prefix app:// to the the package name.

    If the device does not have the application installed then the Home Assistant application will open to the default page.

    If you define an action and an URI for a button, URI will take precedence over action.
  domain: automation
      name: Device to notify
      description: Device or group of devices for notification through mobile_app notification service. For example
        <notify.mobile_app_iphone>, <notify.all_devices>, <notify.notify>
          type: search
      name: Trigger entity
      description: Send the notification when this boolean turns on
#          domain: input_boolean

      name: Doorbell Cam
      description: The Camera from wich take photo for notification.
          domain: camera
      name: Notification title (Optional)
      description: The title of the notification
      default: ""

      name: Notification message (Optional)
      description: The message of the notification
      default: ""
      name: Create persistent notification?
      description: Persistent notifications cannot be dimissed by swiping away
      default: false

# Action 1

      name: First action name
      description: Name of the first button
      default: ""
      name: URI for action 1 (Optional)
      description: Optional URI for the first action
      default: ""

      name: Action 1
      description: "Action to run when the first action is clicked"
      default: []

# Action 2

      name: Second action name
      description: Name of the second button
      default: ""

      name: URI for action 1 (Optional)
      description: Optional URI for the second action
      default: ""

      name: Action 2
      description: Action to run when the second action is clicked"
      default: []

# Action 3
      name: Third action name
      description: Name of the third button
      default: ""
      name: URI for action 3 (Optional)
      description: Optional URI for the third action
      default: ""

      name: Action 3
      description: "Action to run when the third action is clicked"
      default: []

mode: restart
max_exceeded: silent

  notify_device: !input notify_device
  trigger_entity: !input trigger_entity
  doorbell_cam: !input doorbell_cam
  notification_title: !input notification_title
  notification_message: !input notification_message
  persistent_notification: !input persistent_notification
  action_1_title: !input action_1_title
  action_1_uri: !input action_1_uri
  first_action: !input first_action
  action_2_title: !input action_2_title
  action_2_uri: !input action_2_uri
  second_action: !input second_action
  action_3_title: !input action_3_title
  action_3_uri: !input action_3_uri
  third_action: !input third_action
  image_file: '/local/doorbell/{{ expand(trigger_entity)[0].last_changed | as_timestamp  | timestamp_custom("%Y-%m-%d_%H-%M-%S") }}.jpg'

  platform: state
  entity_id: !input trigger_entity
  from: "off"
  to: "on"

  # Create camera snapshot
  - data_template:
      entity_id: !input doorbell_cam
      filename: /config/www/doorbell/{{ expand(trigger_entity)[0].last_changed | as_timestamp  |
        timestamp_custom("%Y-%m-%d_%H-%M-%S") }}.jpg

    service: camera.snapshot

  # Send actionable notification
  - service: !input notify_device
      title: "{{ notification_title }}"
      message: "{{ notification_message }}"
        tag: "{{ notification_title }}"
        persistent: "{{ persistent_notification }}"
        image: '{{ image_file }}'
        ttl: 0
        priority: high
        actions: >
          {% set titles = [action_1_title, action_2_title, action_3_title] %}
          {% set uris = [action_1_uri, action_2_uri, action_3_uri] %}
          {% set actions = namespace(data = []) %}
          {% for title in titles %}
            {% if title|length %}
              {% set uri = uris[loop.index - 1] %}
              {% set action_name = "action" + loop.index|string %}
              {% set action = {
                "action": "URI" if uri|length else action_name,
                "title": title,
                "uri": uri 
              {% set = + [action] %}
            {% endif %}
          {% endfor %}
          {{ }}

  # Wait for the user to select an action
  - wait_for_trigger:
      platform: event
      event_type: mobile_app_notification_action

  # Do the action that the user selected
  - choose:
    - conditions: "{{ == 'action1' }}"
      sequence: !input first_action
    - conditions: "{{ == 'action2' }}"
      sequence: !input second_action
    - conditions: "{{ == 'action3' }}"
      sequence: !input third_action