App Link on Your Dashboard

agree with the tasker integration. have a virtual button to send a command to your phone, then it opens the app when that command is received

1 Like

I think I am following, but just to confirm you mean, it would open the app on the wall mounted tablet where my dashboard is, not my phone, correct ?

I was honestly hoping, just to be able to put a link or a button to manually push from the dashboard to open an app u downloaded from the play store.

Yes, that's correct, it will open on the device you choose. I have setup a thread outlining opening a dashboard on my tablet using this approach. I'll get a link shortly.

I have used this to open a dashboard / turn on the tablet in Tasker. You will need to adjust the action in Tasker to open an app.

And you need to replace the motion aspect of my solution with a button.

There's a chance we may be able to do this more simply.... Haven't tried it myself... And don't know if we will strike any problems....

But this looks promising also....

1 Like

okay thanks alot! I was totally happy with my unifi protect system but totally regretting it now that it seems like some of the only cameras that can't be easily integrated with hubitat :frowning:

What are you missing? Mainly live video? You can get most other functionality with my UniFi Protect integration.

What do you want to do exactly? Have a Hubitat dashboard be up most of the time and then be able to switch to video without going to the home screen?

ideally, would be having live feeds from thr unifi cameras on my HE dashboard 24/7.
but I figured a work around could be the split screen idea where half screen is hubitat dashboard and half screen in the unifi protect app with the camera view page showing.

1 Like

Just making sure I understand- why do you want it on the Hubitat dashboard instead of the Protect app? I'm assuming you want to interact with other entities in Hubitat while the videos are still live?

I haven't done it, but I think it is trivial to transcode the video for display on a dashboard. The catch is that it would require an external machine to do the processing.

You could certainly do it on a PC or a RPi. Would that be an acceptable option?

I just wanted the live streams on the hubitat dashboard, figuring it would look nicer on a 24/7 display.
but I am totally fine with the live video being in the protect app, if that app can be open and show the live streams while the dashboard is up.

essentially, I just want to be able to see live feeds from my unifi protect cams 24/7 while still having the the dashboard options to control lights, temp, music, etc.

whichever way is the easiest, most stable and reliable way to do that I am ok with :+1: thanks so much for the help on this

1 Like

This worked for me: Using VLC transcode Video RTSP stream to MJPEG / ActionTiles Forum / AT Support & Ideas

  1. Install VLC on your Windows PC.
    Probably will work in other environments, but I only tested on Windows.
  2. Go to UniFi Protect via the browser interface on your computer.
    In the Devices section of UniFi Protect, click on a camera and go to the Manage section, then enable at least one RTSP stream. Copy the URL (I used the 'unsecure' one).
  3. Open a Windows cmd window with Administrator access.
    Browse to the VLC directory: <Program Files>\VideoLAN\VLC
    Execute this command (no line-breaks!): vlc.exe -R <RTSP unsecure URL from UniFi Protect> --sout "#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8888/videostream.cgi}
  4. Add an Image tile to your dashboard
    Set the Image URL to: http://<IP address of PC running VLC>:8888/videostream.cgi

You should see the video stream on your dashboard. Note that this will likely only work on your local network.

You would want to customize the dst=:8888/videostream.cgi part to use different ports or paths if you wanted to run multiple streams at once.

Obviously you would probably want to auto-launch the vlc.exe command on boot and/or if it crashes for some reason.

2 Likes

I'd been wondering about vlc for streaming myself, not so much for cameras, but streaming tv from my pvr. Nice work.

1 Like

awesome, thanks so much for the info! I've only ever used Mac, but will maybe try this on a pi4! thanks!

Give it a try on macOS. This page from VLC is pretty generic, so it may just work there:

https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/#RTSP_live_streaming

(note that I just posted that as a similar example to show that it wasn't marked as only supported on certain environments. so, I would try the original, longer command above on macOS to see if it works)

thanks so much!! :crossed_fingers: I can get it working.

might be silly question, but what is the difference between this VLC method and your Protect integration method you outlined in other threads?

why would someone prefer one method over the other ?

thanks!

This transcoding method gets video into mjpeg format that you can put on a dashboard tile (or view in a browser, etc). You don't need an integration otherwise if that is all you want.

My integration does motion detection, smart motion detect (if supported), button presses from the doorbell, LCD messages, snapshots from cameras, and other things I am probably forgetting. But it doesn't do video streaming.

So, they're complementary to each other and you could use both depending on your needs.

wow thanks for the explanation, super helpful.
maybe I will try them together.

where is the best spot to find the full instructions of your method ?

I am very new to this so want to make sure I don't miss nothing with it :+1:

I linked to the code on GitHub in this post, which has configuration instructions: Ubiquiti Unifi Protect cameras - #37 by tomw

There's also discussion in that thread after my post about the progress when adding various features.

It's pretty easy to set up. I recommend installing using Hubitat Package Manager (HPM) and then configuring and using it as described in my readme. Let me know in the other thread if you have any issues.

Thank you for all the help so far! Greatly appreciated, I will be sure to post if I run into any issues along the way!

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.