PiPup - Android TV app for notifications

It all works now after sideload the apk

only thing I struggle with is to show my cam, but that is because I only have rtsp stream

1 Like

Anyone in here now how to get the http stream from RTSPtoWEB integration in HA, the add-on works fine and can stream camera, but cannot figure out to get the HTTP stream?

1 Like

Like I mentioned, nothing happens on the TV at all (no popup, no message, nothing at all).
But on HA, the service ran successfully (no errors at all)

I added some testing instructions to my write up: PiPup/home_assistant.md at 11c72184338e59ed292ea5bf0e3a2c297af123fc · desertblade/PiPup · GitHub

Start PiPup on your fireTV manually and run the tests. Sometimes it does not start automatically, or you could have a permission issue.

I believe that a if the call is not formatted correctly PipUp just absorbs the it with no feedback.

2 Likes

Thank you @DesertBlade - i don’t have the TV anymore - will buy another soon, and will retest etc.
Thanks

I’m having trouble viewing images.

The test under Developer Tools → Services works and the image is displayed.

service: rest_command.pipup_image_on_tv
details:
ip: 192.168.1.203
title: PiPup
message: Notifications are working!
url: https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/cfcc3137009463.5731d08bd66a1.png

But in Node Red the image doesn’t show up.

{
“ip”:“IP-TV”,
“duration”:10,
“title”:“Titel”,
“message”:“Text.”,
“width”:460,
“height”:500,
“media”:{
“image”:{
“uri”:“https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/cfcc3137009463.5731d08bd66a1.png
}
}
}

Title and text are displayed.
When I use pipup_url_on_tv in Node Red, it shows a white rectangle instead of the image.
I was also surprised that I had to write url and not uri in the test under Services.

Thanks for every tip

Thomas

@dsm150 I am about to reproduce your rest_command - do you set it in the configuration.yaml?

Is there a way to test before saving and restarting my HA each time?

If you visit the Developer Tools section of HA and scroll down you can find rest entities as something you can refresh without a restart.

If you try it let us know if it works!

1 Like

Finally, got it working and displaying the stream on the TV correctly. Thanks.

1 Like

I have a Sony Bravia. I got PipUP to work BUT - while it opens, it doesn’t seem to be able to play video while there is a video playing on the app it opened up above - I get a blank screen with a network spinner for 30 seconds. I also can’t figure out how to get it to autolaunch when the TV boots up.

If I am on the “home screen” - it shows video. If I am in an TV app, but not playing video, it shows video.

I have wired it up so that when my Ring Doorbell notices motion, it pops up a window. Wish it showed video too :expressionless:

I’m doing this via “Android Debug Bridge” integration and

service: androidtv.adb_command
data:
  command: >-
    ps -ef | grep -v grep | grep pipup || am start
    nl.rogro82.pipup/.MainActivity
target:
  entity_id: media_player.android_tv

action in “when TV turns on” atuomation

1 Like

Hi.

Is this still working for you?

webrtc.html does not seem to load on my Fire TV when used in Pipup. stream.html works but I can’t find any way to disable the audio when using stream.html instead of webrtc.html.

Thanks

Yes still works here. At least on my android tv box and all my nvidia sheilds. If stream.html works but webrtc.html doesn’t, then it sounds like an incompatible source and not really a pipup problem. I’d check your source and go2rtc logs

http://xxxx:1984/webrtc.html?src=garage_main&media=video

Can anyone help me with an issue that I am having with this pipup setup please? I’ve posted the info here but essentially the only way I can display the live doorbell cam image in the pipup on my fire tv, is by using the webrtc.create_link service, but this has to use the native Reolink Integrations camera entity, which in itself is painfully slow to load. Ideally I want to be able to use a webrtc URL from go2rtc instead of creating one with a temp ID from the RTSP stream of the Reolink Integration, which will just load the local RTC stream, as this loads much quicker. As go2rtc doesn’t create entities, I can’t target it this way like in the write up by Sean Blanchfied.

Why do you need to use webrtc.create_link? Why aren’t using go2rtc via frigate as the writeup suggests?

I don’t use Frigate at all. I’ve worked out how to do this though. Removing the service call to create a link with webrtc.create_link and downloading a slightly different apk file which has the later webview as well as allowing http rather than just https. I’m now using a local http url instead via go2rtc which has resolved the issue.

1 Like

For a while, it worked flawlessly but now i have to open PipUp once for every few day.
How to accomplish that PipUp works forever in background?

Just bought a new Android Tv device. I came across reitblatt/PiPup: Enhanced notifications for Android TV (github.com). The developer has made some adjustments compared to the original. Is anyone able to create an APK of this?

1 Like

All set on Sony Android TV with stream from Unifi camera working flawlessly.
I have a problem with muted audio on the main source when PiP shows up, and even after PiP disappears.
I have to change the source on TV in order to get audio again.

Maybe someone has some advice?

@rogro82

Because we dont have the option to exit the PiP:
Is there a chance to make a script that we can use to STOP the casting?

For example, to make automation:
-IF motion detect is stopped for 5 seconds
-THEN stop sending video to TV

In that case we can put motion->streaming duration to (whatever)…

Thanks