And some other variations. Any input on whats wrong here? The example on the VLC wiki also sets a type together with a URI, but I’m not sure how to do that using HASS.
EDIT: The Error message is a toast saying that the intent could not be started
02-13 22:19:18.291 23154 27928 D WebSocketRepository: Websocket: onMessage (text)
02-13 22:19:18.291 23154 27928 D WebSocketRepository: Message number 706 received
02-13 22:19:18.294 23154 23154 D MessagingService: Processing device command
02-13 22:19:18.298 23154 23154 E MessagingService: Unable to send activity intent please check command format
02-13 22:19:18.298 23154 23154 E MessagingService: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=net.wigle.wigleandroid.SCAN flg=0x10000000 pkg=net.wigle.wigleandroid }
02-13 22:19:18.298 23154 23154 E MessagingService: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2252)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1878)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.app.ContextImpl.startActivity(ContextImpl.java:1174)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.app.ContextImpl.startActivity(ContextImpl.java:1145)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.content.ContextWrapper.startActivity(ContextWrapper.java:445)
02-13 22:19:18.298 23154 23154 E MessagingService: at io.homeassistant.companion.android.notifications.MessagingManager.processActivityCommand(MessagingManager.kt:1703)
02-13 22:19:18.298 23154 23154 E MessagingService: at io.homeassistant.companion.android.notifications.MessagingManager.handleDeviceCommands(MessagingManager.kt:693)
02-13 22:19:18.298 23154 23154 E MessagingService: at io.homeassistant.companion.android.notifications.MessagingManager.access$handleDeviceCommands(MessagingManager.kt:102)
02-13 22:19:18.298 23154 23154 E MessagingService: at io.homeassistant.companion.android.notifications.MessagingManager$handleMessage$4.invokeSuspend(MessagingManager.kt:424)
02-13 22:19:18.298 23154 23154 E MessagingService: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
02-13 22:19:18.298 23154 23154 E MessagingService: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.os.Handler.handleCallback(Handler.java:958)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.os.Handler.dispatchMessage(Handler.java:99)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.os.Looper.loopOnce(Looper.java:230)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.os.Looper.loop(Looper.java:319)
02-13 22:19:18.298 23154 23154 E MessagingService: at android.app.ActivityThread.main(ActivityThread.java:8893)
02-13 22:19:18.298 23154 23154 E MessagingService: at java.lang.reflect.Method.invoke(Native Method)
02-13 22:19:18.298 23154 23154 E MessagingService: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
02-13 22:19:18.298 23154 23154 E MessagingService: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
02-13 22:19:18.303 23154 23154 I Toast : show: caller = io.homeassistant.companion.android.notifications.MessagingManager.processActivityCommand$lambda$41:1722
02-13 22:19:18.306 23154 23154 I Toast : show: isDexDualMode = false
02-13 22:19:18.306 23154 23154 I Toast : show: contextDispId = 0 mCustomDisplayId = -1 focusedDisplayId = 0 isActivityContext = false
02-13 22:19:18.577 23154 21905 I SensorReceiver: Sensor updates and sync completed
02-13 22:19:18.878 23154 21906 I SensorReceiver: Sensor updates and sync completed
02-13 22:19:18.878 23154 21906 I SensorReceiver: Sensor updates and sync completed
02-13 22:19:18.882 23154 21905 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
02-13 22:19:19.013 23154 23154 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
02-13 22:19:19.015 23154 23154 D LastUpdate: Last update is io.homeassistant.companion.android.UPDATE_SENSORS
02-13 22:19:19.023 23154 21905 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
Any idea what I’m doing wrong? This whole thing looks so much more powerful once you start looking at what you can do. It just isn’t as easy to get the intents right for everything to work.
, but it doesn’t work. The phone says the activity intent could not be sent. command_broadcast_intent doesn’t work either, with no error message at all. Any idea if I need to do something different to start a service, rather than an activity?
starting a service is not currently supported but you can submit a feature request on github for it. The app needs to implement the following feature to work with it.
That Some applications also require the class or component to be provided. For these applications you will need to provide the package as the intent_package_name and the full and complete class name under the intent_class_name parameter. You will need to know what class name to provide as each application is different.
Fixed the intent_extras part and removed the /
It returns no errors now but the script runs without effect.
When I use the Android ADB Bridge on my new Google TV’s to start YouTubeTV it starts in the browser without asking. My older tv’s asked me whether to use the web or the app. Is there a way to use intents - or some other method - to tell the Bridge to use the app instead of the web?
sounds like maybe you selected browser as default? Try to go in device settings to remove teh default. Also sounds like you are referring to an actual HA core integration and not the companion app?
Looking for some help please. Got adb commands working fine, can sleep/wake my Nvidia Shield. Found the intents on this chat on how to launch spotify, seems to work good. However heres what i am trying to acheive. If anyone could please help guide .
Launch Amazon Music app and contine playing my playlist.
Found this post, but it didnt open the app on my Shield.
am start -a android.intent.action.VIEW -n com.amazon.bueller.music/com.amazon.music.MainActivity
I’m trying to get my Home Assistant app to start a timer on my S23 Ultra (as a work around to Google breaking assistant) and am just getting notifications rather than the action performed.
Simplifying back to an MVP detailed in the documentation, to eliminate any Samsung weirdness with the clock app, gets me this call which reproduces the issue:-