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
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.
I am trying to do something similar but canāt seem to get it working. I am getting this error:
expected dict for dictionary value @ data['data']. Got None extra keys not allowed @ data['actions']. Got None
Here is the call I am using:
service: notify.mobile_app_pixel_tablet
data:
message: Motion Detected
title: Motion Detected
data:
actions:
- action: URI
title: Open Home Assistant
uri: app://io.homeassistant.companion.android
enabled: true
Any Ideas?
Nevermind I found my issue with spacing. actions needed to be spaced out. However this didnāt seem to solve what I wanted. I was hoping this would automatically open the app however it just gives a notification to click on that will open the app.
to open the HA app you need to use the correct command
https://companion.home-assistant.io/docs/notifications/notification-commands#webview
Was reviewing this for another application.
To send destination to Tesla for navigation, by āsharingā the address with the Tesla app.
Since Tesla app uses Google navigation setup, the google navigation works for sending address to Tesla too.
ex. for google from Notification Commands
automation:
- alias: Search google maps
trigger:
...
action:
- service: notify.mobile_app_<your_device_id_here>
data:
message: "command_activity"
data:
intent_package_name: "com.google.android.apps.maps"
intent_action: "android.intent.action.VIEW"
intent_uri: "geo:0,0?q=1600+Amphitheatre+Parkway%2C+CA"
Changing the package name to Tesla app will send the navigation specified in āintent_uriā to Tesla car.
intent_package_name:"com.teslamotors.tesla"
May work for other āsmartā cars too.
Other format for the intent_uri found here ā¦ Google Maps
Perhaps this will be helpful to somebody.
My approach was to find native deep-links for the app. After decompiling the apk, Iāve found that the app of my interest supports deep-links even tho it wasnt used anywhere. So I read the decompiled APK using my limited machine code knowledge and traced the code line-by-line. After 6+ hours, Iāve find whats basically a giant switch-case to handle different deep-link keywords.
With this knowledge I was able to guess the format and opened the app via a long-press of a tile card with URL.
P.S. Not all apps support this deep-link feature tho.