Launch apps on Android TV

I’ve setup adb to integrate my Shield / Android TV device. I’ve got it connected and can get HASS to tell the Shield TV to go back to the home screen using:

- id: android-shield-remote
  alias: Shield Send Home
  trigger:
  #- minutes: /5
  #  platform: time_pattern
  action:
    service: androidtv.adb_command
    data:
      entity_id: media_player.shield_tv_wifi
      command: "HOME"

However, I’m having trouble finding info on the next steps with a view to launching specific apps. At this point I’m not concerned about the logic of when and why I want/need to launch a given app although I will in the near future.

At this point, I’m just looking to make the steps to be able to manually trigger an automation that will set the Shield TV to a specified app such as kodi or youtube etc.

I’ve seen a few threads but these all appear to cater towards those with more established automations and there is no obvious reference to how to implement the basics of launching a given app.

Any pointers would be greatly appreciated.

1 Like
2 Likes

Sadly, my problem is that I don’t understand what I’m supposed to do with those intents. How do I run them? I’m probably being really dumb but I just don’t know where to even start with them.

Thanks.

ever figure this one out?