How to Automatically Launch tinyCam Monitor Pro (or Any App) in PiP Mode on Android Sony TV When Reolink Doorbell Rings?

I am trying to get the reolink camera to display on a sony Tv. I get it to display the doorbell and then go back ,but the issue im having is trying to make it display in PIP mode when it goes over to tiny cam pro. Tiny cam pro does have a pip mode opition. Is it also possable to do that with an apple tv?

here is the YAML:
alias: Show Doorbell Popup via TinyCam PiP
triggers:

  • entity_id: binary_sensor.doorbell_visitor
    to: β€œon”
    trigger: state
    actions:
  • data:
    entity_id: media_player.android_tv_
    command: |
    monkey -p com.alexvas.dvr.pro -c android.intent.category.LAUNCHER 1
    action: androidtv.adb_command
  • delay: β€œ00:00:15”
  • data:
    entity_id: media_player.android_tv_
    command: |
    am force-stop com.alexvas.dvr.pro
    action: androidtv.adb_command
  • delay: β€œ00:00:01”
  • data:
    entity_id: media_player.android_tv_
    command: |
    am start -n com.att.tv/com.clientapp.MainActivity
    action: androidtv.adb_command
    mode: single

Tried for the life of me when I first installed TinyCamPro to get PIP working, could launch the app but no matter what it was always full screen. The solution I ended up settling on was enabling the webserver in TinyCamPro, and then pointing a PiPup notification at it using the webview feature it has. It’s a bit quirky, the popup size has to specifically be the same size as the video feed from the webpage, but outstanding other than that.

1 Like

I see, thank you for the help. It works Great!

1 Like

Hey so i had it up for a few day and it sometimes turn on white if i didnt load it for a while. Anyway to fix it for it to show up immediately. im using http://IP/axis-cgi/mjpg/video.cgi?token and that might take a while to load.