ANDROID : URI in Actionable Notifications: call a shortcut

Hello,

First, thx for the great job on Home Assistant, i’m using it for a few months and discover every day more and more advanced great features :+1:

For now it is possible to call an Android Application URI as described here:

- action: "URI"  
  title: "Open Twitter"  # Name of package for application you would like to open
  uri: "app://com.twitter.android"

But sometimes, it can be more efficient to call directly a shortcut within the android app itself like this for example: fr.freebox.android.compagnon/.MainAutomationActivityLauncher

With this, if the app allows it, you can call directly a specific UI of the app instead of its home and create even more useful actionable notifications.

Thanks !
AVB

1 Like

use the intent string, you’ll have to figure out the proper format but its supported in the frontend

second example: https://companion.home-assistant.io/docs/integrations/android-webview#links

Edit: also don’t forget about command_activity

Great thanks for your answer, looks to be what I’m looking for. :+1:

hi mates!
maybe you will find the below helpful.

I wanted to trigger app (by android system package name) by clicking at app logo (picture) from lovelace.
scrreeen

my lovelace card

type: grid
square: false
columns: 1
cards:
  - max_results: 50
    type: custom:search-card
  - type: grid
    square: false
    columns: 3
    cards:
      - type: picture
        image: /local/android_app_links/pinterest.png
        tap_action:
          action: URI
          title: Otwórz Pinterest
          uri_path: app://com.pinterest
      - type: picture
        image: /local/android_app_links/ghome.png
        tap_action:
          action: url
          title: Otwórz Google Home
          url_path: app://com.google.android.apps.chromecast.app
      - type: picture
        image: /local/android_app_links/gkeep_notes.png
        tap_action:
          action: url
          title: Otwórz Notatki Keep
          url_path: app://com.google.android.keep
      - type: picture
        image: /local/android_app_links/youtube.jfif
        tap_action:
          action: url
          title: Otwórz YouTube
          url_path: app://com.google.android.youtube
      - type: picture
        image: /local/android_app_links/spotify.png
        tap_action:
          action: url
          title: Otwórz Spotify
          url_path: app://com.spotify.music
      - type: picture
        image: /local/android_app_links/tidal.png
        tap_action:
          action: url
          title: Otwórz Tidal
          url_path: app://com.aspiro.tidal

1 Like