[RELEASE] Generic Video Camera DeviceType, Yes, Live Video Streaming

dth_cameras

(Patrick Stuart [@pstuart]) #1

The code is now available via the github link above. This was written live on my weekly show Live Code Fridays…

This just takes whatever stream URL you want, creates a child device from child smartapp and passes it into the device for streaming.

Will add more features to this over time, but its a simple way to add streaming video feeds to SmartThings.

Android works far better than iOS, since iOS doesn’t support as many protocols, etc. Might take some tinkering to find the right settings / resolution, etc. to optimize.

How to Install:

Github integration works for smartapps and devicetypes, just add the repo and copy down the files

or

Install from Code for each smartapp and the devicetype

Publish the connect app and devicetype (don’t publish the child smartapp)

Go to Marketplace, smartapps, my apps, find the connect app. Click Done to install the smartapp.

Go to smartapps in fly out, side menu find the Generic Video Camera Connect smartapp.
(If it isn’t there, its a platform bug, need to go into IDE, locations, smartaps, find the smartapp, click on it and uncheck the child check box)

Add a camera.

Make sure the url is all lowercase for rtsp or http: etc, as Android and iOS can tend to capitalize the first letter, which can then fail.

Add as many cameras as you want.

They will show up in your things list.

For assistance, you must provide the following information to get support:
SmartThings Mobile version Number
Mobile Device, Android, iOS, Windows
Camera Make and Model
Streaming URL you are trying to use
Proof that some how you don’t have access to google or other search engines to find the correct url :slight_smile:

Known Issues:
iOS streaming is limited, nothing I can do about this, it appears it is an iOS limitation, try a low res stream.
Sometimes streaming will stop or lag out, this might be an ST app issue, restart app and should be fine.
Resuming from sleep on android with stream open may result in black window or missing video tile, wait a bit or force quit and restart app.

DO NOT ASK SmartThings FOR SUPPORT!!!

This is completely unsupported and taking advantage of undocumented / unreleased features which can and probably will break in the next mobile app release, firmware upgrade, platform release, phase of moon change or at the flap of a butterfly’s wing.

Feel free to fork, extract and or use this code how you see fit, I provide no warranty. It could melt your phone for all I know. If you do use the code or any part of it, all I ask is you provide a credit back to “pstuart” and a link to the original github code in a comment.

NOTE: Do not port forward your cameras. This will only work when you are on your home network or using a VPN back to your home network. I repeat, DO NOT PORT FORWORD your cameras.


Blue iris camera
FAQ: Using cameras not on the official list? (V1 hub FAQ)
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
Connecting PEQ Camera (Icamera 1000) to SmartThings
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
Generic Camera Device using local connection (new version now available)
Generic Camera Device using local connection (new version now available)
Network Connected CCTV
Best camera options for SmartThings integration
Xiaomi yi WiFi camera
POE IP Cameras
What cool things are you automating? (UK)
360 smart camera
Ip Wecam device handler/smartapp code?
Logitech Alert Device Handler (or generic RTSP)
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
Ubiquity UniFi Video Cameras
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
Pairing Onvif cameras
Original Xiaomi 1080p wi-fi smart camera ST integration
Hikvision cameras
Ubiquiti UniFi Video NVR Integration
Im new and Deciding on a hub. Smartthings questions
Camera's, Am I Best Off Going Seperate? (UK)
FAQ - Integrating Blue Iris CCTV Web Server with ST and webCoRE
CCTV Integration? (XMEYE)
Cheap spy cams?
Ubiquiti UniFi Video NVR Integration
[RELEASE] D-Link Camera Manager (Connect) - Add your D-Link IP Cameras to SmartThings! Video Streaming, Image Capture, Motion Detection and more
Netvue 1080p cam
[RELEASE] [Universal] Foscam Camera Device Handler with Discovery, Live Video Streaming, Motion Sensor/Alarm Integration - SD (FI89xx), HD (FI98xx, FI99xx), Cx, Rx, Ex, Fosbaby
[RELEASE: v6.7] ActionTiles (formerly called "SmartTiles V6")
[RELEASE: v6.7] ActionTiles (formerly called "SmartTiles V6")
Anyone know of just a video transmitter?
Smartcam hd vs hd pro
Samsung SmartCam: SNH-P6410BN, SNH-E6440BN and SNH-1011ND (+WWW Digest auth) (tested and working)
(Marc) #2

Cool, does this need a v2 hub? I’m still trying to see what advantage ST integration for exterior cameras??? Other than one app to look at things. I record continuously, as motion on these DVR cameras is always finicky.


(Patrick Stuart [@pstuart]) #3

I don’t know… Will test on my v1 hub shortly, but it appears to be streaming to the mobile app, not via the hub.


(Marc) #4

I just hooked up my Swann 1080p DVR 8 camera system today, so great timing! It supports RTSP. Got it from Costco for $399 last week (now back to regular price).

http://m.costco.com/Swann-8-Channel-HD-Analog-DVR-with-2TB-HDD,-8-1080p-Cameras-with-100’-Night-Vision.product.100244911.html


(Patrick Stuart [@pstuart]) #5

Yup, best of all, this doesn’t require DNI to be the IP:PORT in hex, it just works.


(Marc) #6

Is be happy to test when your ready!


(Kevin) #7

I’m hoping your new device handler doesn’t rely on the current htmlTile…


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #8

Dies it use any code shared by SmartThings under an NDA, even a verbal informal one?


(Patrick Stuart [@pstuart]) #9

Nope, htmlTile is limited to external calls only. This is live local streaming.


(Patrick Stuart [@pstuart]) #10

My concern is if it creates any unneeded load or adds to the instability of the mobile app.


(Jeff DeWolfe) #11

Can’t wait to try it! Also, your landscaping looks great! :wink:


(Patrick Stuart [@pstuart]) #12

2 dogs. My wife was out all day patching the grass.


(Allan Klein) #13

What problem were you encountering with this? If it works locally, I can’t think of why it wouldn’t work remotely (assuming proper ports are forwarded on your firewall). Nice job, looking forward to getting my Hikvision cameras tied in.


(Michael) #14

What a tease… :disappointed:


(David) #15

Well done! I can’t wait to see how you pulled this off… I was trying to do this with my DTH but to no avail.


(Patrick Stuart [@pstuart]) #16

Yes if you protect forward it will work. But I can’t recommend it.


(Jeff DeWolfe) #17

I’ve got 2 dogs as well and yes, they are rough on the lawn. I was serious though, yours does look good. Tell the wife! :slight_smile:


(Michael) #18

For those wondering about v1, I found this. Not sure if this means this will not work on a v1 but I would assume so.

What do I need to use video?

The new SmartThings app, a SmartThings-compatible camera, and the Samsung SmartThings Hub v2. First-generation Hubs do not support video.

Do you know if ST will be able to take action based on motion in a camera or anything like that?


(Patrick Stuart [@pstuart]) #19

I will be testing my code on hub v1 tomorrow, I don’t think it uses the video services, just streams directly to the mobile device.


#20

i’ll volunteer to test, currently 1 Foscam FI8910W and 2 Hikvisions en route from China :stuck_out_tongue: