Open app on Android phone

thanks, now I get into trouble launching this app:

I understand I need to go to quite an investigation…

you need to get the package name which you can derive from the URL of the actual item page.

https://play.google.com/store/apps/details?id=com.tranzmate&hl=en_US&gl=US

so after where it says ?id= up until the & so this apps package name is com.tranzmate

Great, Thx!!!

All of a sudden this doesn’t work anymore :

  - service: notify.mobile_app_lm_g710
    data:
      message: command_activity
      title: http://www.netflix.com/browse/
      data:
        channel: com.netflix.mediaclient
        tag: android.intent.action.VIEW

Am I missing something ?

Read the release notes of the companion app.

I was trying to do something similar for the first time so I am not sure why its not working when it was…but I did get this yaml to work to open an app for me (below). Also this link helped me out with the correct syntax (Notification Commands | Home Assistant Companion Docs)
Edit, just noticed this text box is formatting the yaml spacing incorrectly. Use the link to see the correct spacing.

action:

  • service: notify.mobile_app_jeff_phone
    data:
    message: command_launch_app
    data:
    package_name: com.teslamotors.tesla
3 Likes

Thank you Jeff !

For people also looking for this :

  - service: notify.mobile_app_lm_g710
    data:
      message: "command_launch_app"
      data:
        package_name: "com.netflix.mediaclient"

Quick extra tip for anyone who finds this:
If you need to figure out the package name for a specific app, use the Android App, NFC tools.
Task>Add a task>Applications>Application>Click the Android button> This pulls up your app list on your phone> Select App.
Package name will be populated for you to copy and use in Home Assistant.

Probably 10s of other ways to find it, but this is what I found since I setup an NFC tag automation to open the tesla app (and then turn on my garage lights, open the garage door). Then wait until the garage closes and turn off the lights. I tap the tag before I leave the house to wake my tesla (whole other issue) and get going out.

1 Like

The play store URL also contains the package name

1 Like

Anyone know how/if I can send a command to an android wall panel to open VLC and get it to play a particular RTSP stream?

1 Like

I presume you want a camera stream on the wall panel when someone is f.e. at your door ?

I didn’t use VLC for that, but used just a card in home Assistant. When someone is at my door, I navigate to that specific view where the card is located for that device (your wall panel) using browser_mod.

That’s not your question, but maybe a solution :wink:

Thanks for the input. I do that already but find it very jerky, even with a sub (SD not HD) stream. I wanted to see if I could do it using VLC, which is much smoother and by-passes HA.

1 Like

is it possible to open a link in chrome on my android phone ?
how?

If you mean you want to press a button to open a website, you can do this:

hold_action:
  action: url
  url_path: >-
    https://

Just fill in the address of your choice. Also, I’m using for hold action on a Mushroom template card

No, I want to make an automation in HA , that opens an url in chrome on my phone.

A bit late but thought i add my solution because you wanted a button. You have to find the Intent of the app you want to open. Also you can open different activities if you find the right intent!

Opens YouTube Home:

show_name: true
show_icon: true
type: button
tap_action:
  action: url
  url_path: >-
    intent:#Intent;component=com.google.android.youtube/com.google.android.youtube.app.application.Shell$HomeActivity;end
hold_action:
  action: none
name: YouTube
icon: mdi:youtube

Opens Youtube Settings:

show_name: true
show_icon: true
type: button
tap_action:
  action: url
  url_path: >-
    intent:#Intent;component=com.google.android.youtube/com.google.android.apps.youtube.app.application.Shell$SettingsActivity;end
hold_action:
  action: none
name: YouTube Settings
icon: mdi:youtube

HI there, this works fine for You tube. Does anyone know how to find the intents for other android apps. Im looking for Listonic

found how to do it. This link works great.
https://support.actiontiles.com/knowledge-bases/8/articles/4083-finding-the-intent-url-for-an-android-app-to-launch-from-fully

A little late to the game but for anyone looking to do this like I was, here an updated easy way to do so.
To get your apps package name open the apps playstore page and click share. The app package name should be appended at the end of the link.
Below you’ll find how I got an action button to open my reolink app.

service: notify.mobile_app_pixel_5
data:
  message: Person Detected
  title: Doorbell Motion
  data:
    image: local/snapshots/doorbell.jpg
    actions:
      - action: URI
        title: Open Reolink app
        uri: app://com.mcu.reolink
enabled: true

1 Like

i have a App called Remote Controller. the URL i found is com.huawei.android.remotecontroller
what must be the url_path senn then? have tried it once so,

intent:#Intent;component=com.huawei.android.remotecontroller/com.huawei.android.remotecontroller.app.application.Shell$HomeActivity;end

but it comes an error message that HA can not load the URL.