Homebridge-Camera Device

Posted on
Tue Dec 06, 2016 4:42 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Homebridge-Camera Device

Please see the main release post for the update that now includes incorporating your Homebridge-Camera device. You will need to install ffmpeg and homebridge-camera-ffmpeg yourself to get it working.
Attachments
Screen Shot 2016-12-06 at 3.41.35 PM.png
Homebridge-Camera Device Setup (Foscam Camera Shown)
Screen Shot 2016-12-06 at 3.41.35 PM.png (78.95 KiB) Viewed 6351 times

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Dec 06, 2016 6:07 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Homebridge-Camera Device

Will this work with cameras that aren't HomeKit compatible? I don't have any home kit cams at the moment, but I have several cams.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Dec 06, 2016 6:14 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Homebridge-Camera Device

It should so long as you can get to the video and snapshot feeds via a URL. You will have to install the support on your own:

Code: Select all
sudo port install ffmpeg
sudo npm install -g homebridge-camera-ffmpeg


This might require updating your Homebridge, if you have issues then look at Webdecks sticky on upgrading to the latest version, it's pretty much right on.

Then check out this link for a list of thousands of cameras and their URL's, it should help you pinpoint what you need.

This HB add-on is geared towards generic use, but there are some specific camera add-ons as well that I'm going to try to incorporate like Foscam and iSight. If you have problems then let me know the types of cameras and I can see if I can help at all.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Dec 06, 2016 7:03 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Homebridge-Camera Device

Many thanks. Again!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed Dec 07, 2016 9:50 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

I know this isn't the support forum for ffmpeg homebridge camera but out of interest does anyone know if it should load an accessory for it when loading homebridge even if just a dummy camera URL is provided? Or does it try to validate it on startup and ignore if it's bogus? (Long short of it is i'm trying to work out what the URL would be as the cheapo cameras i have have hundreds of different entries on the list on iSpy and at the moment i'm not even sure if it's trying to connect to them!)

Computer says no.

Posted on
Wed Dec 07, 2016 11:04 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

(Or indeed a URL for a public feed that's known to work would be exceptionally handy if anyone knows one!)

Computer says no.

Posted on
Wed Dec 07, 2016 11:14 am
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: Homebridge-Camera Device

Not sure about your question, but what cameras are you trying?

I did a lot of trial and error with my cameras with curl or a web browser to finally figure out the correct urls.

Posted on
Wed Dec 07, 2016 11:44 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Homebridge-Camera Device

Do a google search on public feeds, you'll find quite a few out there. The only thing I can recommend is that you try the URL in your browser first - if it doesn't work there then it won't work anywhere else either more than likely. What kind of camera and can you post a screenshot of the device settings?

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Dec 07, 2016 12:08 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

Horrible cheap ONVIF cameras from china, the kind that caused all those DNS issues last month. I keep mine on their own private network with no gateway to the internet to reduce security issues. They actually have reasonable quality images for less than £20 a pop but their UIs are awful!

Computer says no.

Posted on
Wed Dec 07, 2016 12:17 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

Yeah I did a search on google but couldn't get any to work, but I wasn't sure if that was because it wasn't in the right format for the ffmpeg bridge to read. Kinda wanted one that I know 100% works to use as a baseline to see if my installation has been successful.

Computer says no.

Posted on
Wed Dec 07, 2016 12:39 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Homebridge-Camera Device

You might find something on Pentopia that you can use, I'm not sure. Are you able to pull the URL up in a browser?

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Dec 07, 2016 12:50 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

You can only access them via MSIE with some horrible activex components. The URL for that doesn't work in homebridge ffmpeg. They do however work in SecuritySpy with a type of ONVIF and a format of RTSP UDP so I'm gonna guess there is some form of URL they'll work with.

I'll have a look at pentopia and see if I can get it going with one of them. I suspect however that something's not right in my setup because I would have thought that home bridge would load it as an accessory then give me an error when I tried to use it in the home app.

Computer says no.

Posted on
Wed Dec 07, 2016 12:52 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Homebridge-Camera Device

RTSP is supported by ffmpeg.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Dec 07, 2016 12:52 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Homebridge-Camera Device

durosity wrote:
load it as an accessory then give me an error when I tried to use it in the home app


Not really, it will take it at face value and when you try to open the camera it will just say "error".

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Dec 07, 2016 1:09 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Homebridge-Camera Device

Colorado4Wheeler wrote:
durosity wrote:
load it as an accessory then give me an error when I tried to use it in the home app


Not really, it will take it at face value and when you try to open the camera it will just say "error".


See i don't even get that far, when loading homebridge i get:

Code: Select all
[07/12/2016, 18:55:29] Loaded plugin: homebridge-camera-ffmpeg
[07/12/2016, 18:55:29] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[07/12/2016, 18:55:29] ---
[07/12/2016, 18:55:29] Loaded plugin: homebridge-envisalink
[07/12/2016, 18:55:29] Registering platform 'homebridge-envisalink.Envisalink'
[07/12/2016, 18:55:29] ---
[07/12/2016, 18:55:29] Loaded plugin: homebridge-indigo
[07/12/2016, 18:55:29] Registering platform 'homebridge-indigo.Indigo'
[07/12/2016, 18:55:29] ---
[07/12/2016, 18:55:29] Loaded config.json with 0 accessories and 2 platforms.
[07/12/2016, 18:55:29] ---
[07/12/2016, 18:55:29] Loading 2 platforms...
[07/12/2016, 18:55:29] [Server - Home Bridge] Initializing Indigo platform...
[07/12/2016, 18:55:29] [Server - Home Bridge] Indigo base URL is http://127.0.0.1:8080
[07/12/2016, 18:55:29] Initializing Camera-ffmpeg platform...
[07/12/2016, 18:55:29] Loading 0 accessories...
[07/12/2016, 18:55:29] Camera is running on port 50733.
[07/12/2016, 18:55:29] [Server - Home Bridge] Indigo request: http://127.0.0.1:8080/devices.json/
[07/12/2016, 18:55:32] [Server - Home Bridge] Indigo request: http://127.0.0.1:8080/devices/Alarm%20-%20All%20Zones.json
[07/12/2016, 18:55:32] [Server - Home Bridge] Discovered Alarm Zone Group (ID 1680800472): Alarm - All Zones
[07/12/2016, 18:55:32] [Server - Home Bridge] Ignoring excluded ID 1680800472
etc


But I do have a camera configured. I just don't know if the URL is readable by FFMPEG or not. that's why I'm trying to find a known good public one to test it with!

However.. i have just found an old Foscam camera in my garage (FI8918E) so i've hooked that up and hopefully can get a URL from ispy to test with :D

Computer says no.

Who is online

Users browsing this forum: No registered users and 3 guests