How to create your own HomeKit camera with a Raspberry Pi and HomeBridge

24

Comments

  • Reply 21 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    Is it possible that you post a tutorial, how you create the Image. Which plugins, Software and tols are used?
    There is kind of a lot of that stuff out there. I'm happy to answer any specific questions you had on the disk image, but a how-we-made-this style post probably isn't likely. It gets quite technical and won't have as much appeal. Again, if you want any specifics on this or how we made it, I'm here to help!
     0Likes 0Dislikes 0Informatives
  • Reply 22 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    JeFurry said:
    Is this disk image compatible with a Pi Zero (or Zero W)? They support camera modules, but are smaller, even cheaper, and lower powered...
    Sorry, didn't see the direct answer to if the provided image in the article works with the Pi Zero W?    Or do we need to start from NOOB and clean build.
    I don't see any specific reason this won't work on the Pi Zero W. It should work fine, maybe just a bit of lag on the video. I can't guarantee anything as I haven't tested, but you can really lower your cost that way, assuming it does work fine!
     0Likes 0Dislikes 0Informatives
  • Reply 23 of 73
    tealiotealio Posts: 4unconfirmed, member
    tealio said:
    I already have homebridge running at home, can you tell me what plugin you added for the pi camera? Also any configuration instructions or link to the guide would be sweet! I'm assuming you wouldn't or can't have two homebridge's running simultaneously. 
    This is the plugin used. 

    That walks you through most of it. You most likely could have multiple HomeBridge's running at the same time, though for this, you actually don't need to add the bridge to HoemKit if you don't want to. 
    Thanks Andrew! Once I was able to get homebridge restarting after power outages, it has been pretty reliable from an IT standpoint ($dayjob). My use case / setup is that my main "homebridge" is located in more of a "server" area in my home, I'm looking to add a camera to the front porch but it looks like the longest cable for the rasbi camera is 2 meters. I do have another Pi 3 that I play with for retro pie, so I could set up one near the front door for this project (Total cost = way below Logi Circle 2 event with a pi 3 investment + camera).

    When you say you "don't need to add the bridge to HoemKit if you don't want to. " , are you just saying you can do this project and have a camera that isn't available on Homekit? i.e standard IP camera that could be added to another app? 

    Finally, for those that haven't checked around yet on amazon for accessories for this project, this is what I've dug up so far : 


    Raspberry Pi Camera Module V2 - 8 Megapixel,1080p $25
    Link: http://a.co/cXJoNlf

    Latest Raspberry Pi Camera Case for V2 8 Megapixel - Clear $7 (These would be great to hang facing downward from a non-weather-exposed area, my use case is going to be for front door and package delivery monitoring)
    Link: http://a.co/f4s2Wv5

    Raspberry Pi Camera Case / Enclosure - Black $6
    Link: http://a.co/dQ7sA3o

    Flex Cable for Raspberry Pi 3 Camera/Display $7
    Link: http://a.co/7VdzAAV

    P.P.S - Here's another idea for a rasbi/homebridge project I'm going to attempt to tackle this week! OEM Homekit fans have been a nightmare (How does a ceiling fan cost triple for OEM homekit? #hunter)

    https://hackernoon.com/diy-home-automation-fan-control-with-raspberry-pi-3-rf-transmitter-and-homebridge-59ad24845770
     0Likes 0Dislikes 0Informatives
  • Reply 24 of 73
    JeFurry said:
    Is this disk image compatible with a Pi Zero (or Zero W)? They support camera modules, but are smaller, even cheaper, and lower powered...
    Sorry, didn't see the direct answer to if the provided image in the article works with the Pi Zero W?    Or do we need to start from NOOB and clean build.
    I don't see any specific reason this won't work on the Pi Zero W. It should work fine, maybe just a bit of lag on the video. I can't guarantee anything as I haven't tested, but you can really lower your cost that way, assuming it does work fine!
    One last question.  The Image has a 16.03GB size and says it is too large (etcher) to restore to a 16GB SD card.   Am I missing something or just need 32GB card?
     0Likes 0Dislikes 0Informatives
  • Reply 25 of 73
    Doesn't appear to work with the Pi Zero W.  Nodes, NPM and Homebridge all issue segmentation faults.

    Any chance you could share the steps you went though to build it?
    edited March 2018
     0Likes 0Dislikes 0Informatives
  • Reply 26 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    JeFurry said:
    Is this disk image compatible with a Pi Zero (or Zero W)? They support camera modules, but are smaller, even cheaper, and lower powered...
    Sorry, didn't see the direct answer to if the provided image in the article works with the Pi Zero W?    Or do we need to start from NOOB and clean build.
    I don't see any specific reason this won't work on the Pi Zero W. It should work fine, maybe just a bit of lag on the video. I can't guarantee anything as I haven't tested, but you can really lower your cost that way, assuming it does work fine!
    One last question.  The Image has a 16.03GB size and says it is too large (etcher) to restore to a 16GB SD card.   Am I missing something or just need 32GB card?
    That is a good question. Honestly, I'm not certain. I've restored this image to my 16gb card dozens (literally dozens) of times in the past two weeks putting this together and testing and haven't had that issue. For sure a larger 32gb card would do it, but maybe try Disk Utility instead of Etcher and see if it yields better results?
     0Likes 0Dislikes 0Informatives
  • Reply 26 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    tealio said:
    tealio said:
    I already have homebridge running at home, can you tell me what plugin you added for the pi camera? Also any configuration instructions or link to the guide would be sweet! I'm assuming you wouldn't or can't have two homebridge's running simultaneously. 
    This is the plugin used. 

    That walks you through most of it. You most likely could have multiple HomeBridge's running at the same time, though for this, you actually don't need to add the bridge to HoemKit if you don't want to. 
    Thanks Andrew! Once I was able to get homebridge restarting after power outages, it has been pretty reliable from an IT standpoint ($dayjob). My use case / setup is that my main "homebridge" is located in more of a "server" area in my home, I'm looking to add a camera to the front porch but it looks like the longest cable for the rasbi camera is 2 meters. I do have another Pi 3 that I play with for retro pie, so I could set up one near the front door for this project (Total cost = way below Logi Circle 2 event with a pi 3 investment + camera).

    When you say you "don't need to add the bridge to HoemKit if you don't want to. " , are you just saying you can do this project and have a camera that isn't available on Homekit? i.e standard IP camera that could be added to another app? 

    Finally, for those that haven't checked around yet on amazon for accessories for this project, this is what I've dug up so far : 


    Raspberry Pi Camera Module V2 - 8 Megapixel,1080p $25
    Link: http://a.co/cXJoNlf

    Latest Raspberry Pi Camera Case for V2 8 Megapixel - Clear $7 (These would be great to hang facing downward from a non-weather-exposed area, my use case is going to be for front door and package delivery monitoring)
    Link: http://a.co/f4s2Wv5

    Raspberry Pi Camera Case / Enclosure - Black $6
    Link: http://a.co/dQ7sA3o

    Flex Cable for Raspberry Pi 3 Camera/Display $7
    Link: http://a.co/7VdzAAV

    P.P.S - Here's another idea for a rasbi/homebridge project I'm going to attempt to tackle this week! OEM Homekit fans have been a nightmare (How does a ceiling fan cost triple for OEM homekit? #hunter)

    https://hackernoon.com/diy-home-automation-fan-control-with-raspberry-pi-3-rf-transmitter-and-homebridge-59ad24845770
    When I talked about not adding the bridge to HomeKit, I'm referring to the fact that the camera shows up separately than the bridge. Basically in HomeBridge, there are platforms and accessories. Platforms all are added separately, while accessories show up automatically under the bridge. In this case, the camera is a "Platform", so you can add the camera to HomeKit without adding the bridge. 
     0Likes 0Dislikes 0Informatives
  • Reply 28 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    JeFurry said:
    Is this disk image compatible with a Pi Zero (or Zero W)? They support camera modules, but are smaller, even cheaper, and lower powered...
    Sorry, didn't see the direct answer to if the provided image in the article works with the Pi Zero W?    Or do we need to start from NOOB and clean build.
    I don't see any specific reason this won't work on the Pi Zero W. It should work fine, maybe just a bit of lag on the video. I can't guarantee anything as I haven't tested, but you can really lower your cost that way, assuming it does work fine!
    One last question.  The Image has a 16.03GB size and says it is too large (etcher) to restore to a 16GB SD card.   Am I missing something or just need 32GB card?
    That is a good question. Honestly, I'm not certain. I've restored this image to my 16gb card dozens (literally dozens) of times in the past two weeks putting this together and testing and haven't had that issue. For sure a larger 32gb card would do it, but maybe try Disk Utility instead of Etcher and see if it yields better results?
     0Likes 0Dislikes 0Informatives
  • Reply 28 of 73
    Andrew_OSUandrew_osu Posts: 576member, editor
    tealio said:
    tealio said:
    I already have homebridge running at home, can you tell me what plugin you added for the pi camera? Also any configuration instructions or link to the guide would be sweet! I'm assuming you wouldn't or can't have two homebridge's running simultaneously. 
    This is the plugin used. 

    That walks you through most of it. You most likely could have multiple HomeBridge's running at the same time, though for this, you actually don't need to add the bridge to HoemKit if you don't want to. 
    Thanks Andrew! Once I was able to get homebridge restarting after power outages, it has been pretty reliable from an IT standpoint ($dayjob). My use case / setup is that my main "homebridge" is located in more of a "server" area in my home, I'm looking to add a camera to the front porch but it looks like the longest cable for the rasbi camera is 2 meters. I do have another Pi 3 that I play with for retro pie, so I could set up one near the front door for this project (Total cost = way below Logi Circle 2 event with a pi 3 investment + camera).

    When you say you "don't need to add the bridge to HoemKit if you don't want to. " , are you just saying you can do this project and have a camera that isn't available on Homekit? i.e standard IP camera that could be added to another app? 

    Finally, for those that haven't checked around yet on amazon for accessories for this project, this is what I've dug up so far : 


    Raspberry Pi Camera Module V2 - 8 Megapixel,1080p $25
    Link: http://a.co/cXJoNlf

    Latest Raspberry Pi Camera Case for V2 8 Megapixel - Clear $7 (These would be great to hang facing downward from a non-weather-exposed area, my use case is going to be for front door and package delivery monitoring)
    Link: http://a.co/f4s2Wv5

    Raspberry Pi Camera Case / Enclosure - Black $6
    Link: http://a.co/dQ7sA3o

    Flex Cable for Raspberry Pi 3 Camera/Display $7
    Link: http://a.co/7VdzAAV

    P.P.S - Here's another idea for a rasbi/homebridge project I'm going to attempt to tackle this week! OEM Homekit fans have been a nightmare (How does a ceiling fan cost triple for OEM homekit? #hunter)

    https://hackernoon.com/diy-home-automation-fan-control-with-raspberry-pi-3-rf-transmitter-and-homebridge-59ad24845770
    When I talked about not adding the bridge to HomeKit, I'm referring to the fact that the camera shows up separately than the bridge. Basically in HomeBridge, there are platforms and accessories. Platforms all are added separately, while accessories show up automatically under the bridge. In this case, the camera is a "Platform", so you can add the camera to HomeKit without adding the bridge. 
     0Likes 0Dislikes 0Informatives
  • Reply 30 of 73
    Got it running, thanks!!!  Did end up having to go with a 32GB SD.   Now that I have it working, I was curious how did you built the image.dmg your shared.  I want to clone this and put it use it for a couple cameras.  I had to install a different version of Nodes that was built for the PI Zero W.
    edited March 2018
     0Likes 0Dislikes 0Informatives
  • Reply 31 of 73
    mjmmjmmjmmjm Posts: 1member
    Etcher reports that the image is too big to fit on a 16 GB SD card. It would be useful if you included instructions on what is being installed. TIA.
     0Likes 0Dislikes 0Informatives
  • Reply 32 of 73
    mjmmjm said:
    Etcher reports that the image is too big to fit on a 16 GB SD card. It would be useful if you included instructions on what is being installed. TIA.
    In short (this also works with raspberry pi zero w)
    1. Start with a actual raspbian image from www.raspberry.org
    2. install actual version of node.js
    3. install actual version of npm (node packet manager)
    4. install actual version of homebridge using npm
    5. install actual version of hombridge-camera-rpi
    6. configure config.json
    7. configure systemctl to auto start homebridge
    You have to make several descisions where to install and which user does the installations (with sudo or pi himself).
    Solimickey6pack
     1Like 0Dislikes 1Informative
  • Reply 33 of 73
    Start again (after reading other comments)...

    I see that several other people have the 16.03GB image issue, which I imagine is made up of some free space...

    Can anyone suggest an easy way to reduce the image file down so it will fit on your average 16GB micoSD card?

    Just purchased a new 16GB sandisk micoSD for this, but it's only 15.98GB therefore Etcher say it cannot write as it's too small.
    edited March 2018
     0Likes 0Dislikes 0Informatives
  • Reply 34 of 73
    mrzippy said:
    HELP!

    Your disk image is 16.03 GB whereas a brand new Sandisk micro SD card is 15.98GB!

    I just got this new micro SD for this project, as my 8GB is too small, anyway your image is too big for the stated SD card size (although imagine some might be slightly bigger).

    Any chance of updating your image to smaller that 16GB, as assume a lot of free space in the image (especially as only 2.5GB download).

    Many thanks.
    Even the 8GB SD will be big enough, if you do it the hard way:
    Start downloading native raspbian from raspberry.org, 
     0Likes 0Dislikes 0Informatives
  • Reply 35 of 73
    Yes, I have a linux server with homebridge installed already, but that camera wasn't accessible from outside my local network, hence I want to try this image to see if I missed something.  In that setup I was using the Raspberry Pi as an IP camera (motioneyeOS) feeding into an IP camera homebridge plugin.  I am no expert at Linux therefore I thought I'd give this a try quickly to see if it works.
    edited March 2018
     0Likes 0Dislikes 0Informatives
  • Reply 36 of 73
    thymjan said:
    mjmmjm said:
    Etcher reports that the image is too big to fit on a 16 GB SD card. It would be useful if you included instructions on what is being installed. TIA.
    In short (this also works with raspberry pi zero w)
    1. Start with a actual raspbian image from www.raspberry.org
    2. install actual version of node.js
    3. install actual version of npm (node packet manager)
    4. install actual version of homebridge using npm
    5. install actual version of hombridge-camera-rpi
    6. configure config.json
    7. configure systemctl to auto start homebridge
    You have to make several descisions where to install and which user does the installations (with sudo or pi himself).
    make sure to add the camera module in /etc/devices
     0Likes 0Dislikes 0Informatives
  • Reply 37 of 73
    Is it possible to stream the video feed to an synology NAS?
     0Likes 0Dislikes 0Informatives
  • Reply 38 of 73
    Is it possible that you post a tutorial, how you create the Image. Which plugins, Software and tols are used?
    There is kind of a lot of that stuff out there. I'm happy to answer any specific questions you had on the disk image, but a how-we-made-this style post probably isn't likely. It gets quite technical and won't have as much appeal. Again, if you want any specifics on this or how we made it, I'm here to help!
    Hey, thanks a lot for this DYI. I got it up & running pretty fast.

    My question is: as far as I know, the video is capturing frames at 720p. Since the Pi Camera is able to handle 1080p, would it be possible to tweak it and switch to 1080p?

    Many thanks and congrats again!
     0Likes 0Dislikes 0Informatives
  • Reply 39 of 73
    onPVonpv Posts: 2unconfirmed, member
    when a try to add the home bridge, i enter the good pin code , and after the iphone scan and dont found it. FYI my raspberry is well installed and well connected to the WIFI because i connect with ssh to it.
    the system was working very well last week and not since yesterday. I re lauch the init script to generate a new pin code, remove all accesories from my home and it's no longer possible to detect the new homebridge and picamera
    I'll to format sd card and install from scratch.....
    if you have some tips for me tks

     0Likes 0Dislikes 0Informatives
  • Reply 40 of 73
    onPVonpv Posts: 2unconfirmed, member
    well FYI after clean install , reinstall firmware , now i can detect homebridge and picamera. When ma phone is connected to the WIFI all ist ok but in 3G/4G itns doest work and say : without response , this camera does not answer.
    perharp a network pb ? if you have tips to help me
    tks
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.