Is it possible to creatie a button which click action is opening an app on my Android smartphone (f.e. Netflix) ?
Possibly if it’s in an notification but not on Lovelace.
I have never managed to do that.
Damn…
Created a remote control (harmony integration) and would like to add a button to call my Netflix app…
You can use command_activity
. It will open an app on the phone by sending a notification but the app also needs to support this.
Then use an input_boolean to trigger the notification from lovelace.
how to find the channel name of the app I want to open?
from Notification Commands | Home Assistant Companion Docs
the example
automation:
- alias: Navigate
trigger:
...
action:
- service: notify.mobile_app_<your_device_id_here>
data:
message: "command_activity"
title: "google.navigation:q=arbys"
data:
channel: "com.google.android.apps.maps"
tag: "android.intent.action.VIEW"
Go to the play store in a regular browser to the app. The address is the name I think they all start with They do not all start with com
.com
, see here.
thanks
do you know what the title and tags should be ?
data:
message: "command_activity"
title: "netatmo"
data:
channel: "com.netatmo.camera"
tag: "netatmo"
Did you try "android.intent.action.VIEW"
If you have a bixby button you can repurpose it to open any app. Search YouTube
I tried this without succes
alias: Netflix app oproepen
description: ''
trigger:
- platform: state
entity_id: input_boolean.toggle_call_netflix_app
condition: []
action:
- service: notify.mobile_app_lm_g710
data:
message: "command_activity"
title: "Call Netflix"
data:
channel: "com.netflix.mediaclient"
tag: "android.intent.action.VIEW"
mode: single
The example from Notification Commands | Home Assistant Companion Docs
worked fine with my trigger.
I get an error (translated) “Unable to send the job, please check the job format”
Suggestions ?
This is my automation to open Waze when I drive home from work.
service: notify.mobile_app_andreas
data:
message: command_activity
title: https://waze.com/ul?favorite=home&navigate=yes
data:
channel: com.waze
tag: android.intent.action.VIEW
Just to show there are multiple ways this could possibly be set up.
My advice is to Google around and see if you find some url perhaps that could open Netflix and try that as the title.
Did you try this?
Or this?
Found it
title: http://www.netflix.com/browse/
After restarting the phone, the netflix app must been manually opened once.
After that, it works fine.
Thanks @Hellis81 , you made my day !
No problem.
You should post the complete yaml and make it the solution so that others can find this if they also need it.
alias: Netflix app oproepen
description: ''
trigger:
- platform: state
entity_id: input_boolean.toggle_call_netflix_app
condition: []
action:
- 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
mode: single
Another way to trigger this is with a button card. You can set it to call_service
and put the automation in the card vs using an input_boolean
to trigger it.
Nice, no helper no trigger…changed my script…thank you !
alias: 'Switch : Streaming inschakelen'
sequence:
- device_id: 9ddb4ba42a6561e8a4000ec785a6d029
domain: select
entity_id: select.harmony_companion_activities
type: select_option
option: Streaming
- 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
mode: single
I actually already have Netflix listed Android Intents - Sending & Receiving List (Starting Activities too!)