Ask HN: How do you do home surveillance?
In this age of IoT where devices are being taken over by strangers and (service) companies are storing clear-text passwords, how do you manage your home security? I'm talking less about motion sensors and door/window open/close sensors, and more about video surveillance. I want to add a couple of IP cameras but I'm completely petrified by the thought of someone getting access to a live feed from my house, due to the negligence of the service provider.
I've looked around and there are plenty of options for IP/Wi-Fi cameras with a tone of cool features, which can be accessed through a smartphone app, which, of course, is handled by the manufacturer (feed goes through its servers).
What I'd like is an IP camera that provides an API to which I can connect from my home server and let me see the feed only trough it. Motion sensing is also a cool, and useful feature, as it would allow me to send notifications.
How would you solve this or better yet, did you have this issue and already solved it?
103 comments
[ 2.8 ms ] story [ 164 ms ] threadThe brand I got was VStar (https://www.vstarcam.com.sg), it allows broadcast, control as well as record to a MicroSD card simultaneously.
As long as you secure your own network and monitors the logs to make sure no one that is not supposed to is connecting to your network, it should be fine.
It also has access log to tell you who accessed using what credentials. I managed to write a script that automatically pulls the logs every second and if there's an unrecognized IP, it will send me a slack notification.
You could also use the IR camera and a good enough IR lamp to give you coverage at night as well. Use a PIR if you want motion sensing added on.
https://projects.raspberrypi.org/en/projects/infrared-bird-b...
A private youtube channel is "private" to you and alphabet/youtube employees. I guess using your channel to check up on your puppy is fine, but you shouldn't expect privacy in your private channel.
https://zoneminder.com/ looks good too.
Then buy whatever IP camera you like. I bought 4 of the Reolink cameras for $50 ish each. Rated for outdoor use, power over ethernet, motion detection (can edit the sensitive area if you like), can be streamed to any RTSP client (like say most security software), etc. Generally plays well with others and doesn't depend on a cloud for anything.
So cameras -> RTSP -> whatever software you want.
https://wiki.zoneminder.com/index.php/Understanding_ZoneMind...?
gives some handy hints on zoning.
I was running Motion on the same machine and it continued to work without any problems.
I started off with a couple of Chinese WiFi cameras. I needed to hack a perl script to get at its stream; https://gist.github.com/opless/d1effc2eefdf2dfe3b1a6418979bc...
Now I use eBay'd Axis POE cameras dumping continuous video to a samba share, and motion eye to capture a frame every second and video when motion triggered.
All very overkill but worthwhile as it's caught vandals, bike thieves and trespassing landlords.
A pfsense router with haproxy sorts out the SSL website to the docker containers part.
Raspberry PIs, other SBCs and usb webcams/noIR are an exercise in futility, as the inbuilt camera interface and v4l lags horribly at reasonable resolutions.
USB webcams can behave oddly if you stream constantly and are close to using the bandwidth of USB2
Zoneminder is memory hungry and will suck CPU like no tomorrow. But has a decent user interface, if you keep lots of data.
MotionEye can be configured to be unable to play back its captures which is a bug imho.
Cheap and chearful. Bash scripts over ssh to turn it on or off.
Do you know what codec and resolution is in use? What about the lag? What model of camera?
I'm curious because my CCTV journey has been over a few years, and there has obviously been kernel and distro improvements.
I did use the MotionEyeOS distro with an internal camera last summer briefly (a fortnight), but it didn't fit my use case very well.
I did though once set up a timelapse cam to try & trace where a bush rat was getting in the house.
If they have any business with me, they know my phone number or email address, or they can write a letter.
Otherwise, I'd rather not worry about the mysterious strangers. 99.99999% of them will be delivering pizza leaflets anyway.
Putting your head in the sand about it is just naïve optimism that I can't relate to. The odds are greater than you realize and the stakes are your life, it just makes no sense not to take a few precautionary measures for home defense. You don't have to make a hobby of it or go full prepper, but basic gun ownership and entry hardening don't require that much effort or expense and yield a huge ROI on protection from very realistic threats.
There is a benefit to living in an area of trust even beyond the mental benefit of being free from worry and stress. A great bonus for me is that I do not have to be home when someone needs to come service the heating system or look at the pipe under the sink. Local tradespeople know that the doors are generally open in our neighborhood so they can come and go as needed without anyone having to take time off from work to let them in. It is also very helpful for our neighbors who can get into the garage to borrow a tool or leave something they just baked on our kitchen table.
There are definitely places where I would probably not feel comfortable leaving everything open, but I am glad that most of my life has been spent in a community where we do not need to worry about our personal safety.
The murder rate in the USA is 5.3. In both the UK and Denmark (the countries I've lived) it's 1.2. Furthermore, the general feeling in society in both countries is that murder victims are criminals (drug dealers etc) or relatives/friends with the murderer (domestic violence, arguments). This is backed up at least by the British statistics [1] "furtherance of theft or gain accounted for 7% of homicides" "among suspects: 42% were known to be drug users and around a quarter (24%) were known to be drug dealers".
I've never known anyone who was murdered. I've never heard anyone speak of someone they know being murdered.
The burglary rate is higher, but a camera system probably isn't much of a deterrent.
> basic gun ownership
(1) Run away, (2) Hide, (3) Call 112?
[1] https://www.ons.gov.uk/peoplepopulationandcommunity/crimeand...
If I had to install special security equipment and arm myself with a machine for making holes in other people to 'feel safe', I'd rather move somewhere with a more peaceful culture if I had the option.
Poland resident here. Everyone locks the door here, even in the most remote areas.
The valley I live in (which is kind of a natural cul de sac with no through traffic) hasn't witnessed a crime in 50 years.
[Edit - I grew up near a country village in England. We never locked our doors there either. That was a few decades ago, but makes the point that my current Aus position isn't unique. There are pockets of sanity]
Even though I live in a new place outside of town, there is enough of a drug issue in our nearby small town that locking doors and running cameras makes sense. My brother-in-law laughed that we even lock doors until I showed him the theft stats in the area.
Worked very well.
Moved onto ZoneMinder and after hours of setup I felt the UI wasn't good enough for a non-tech person. I want others in my family access the feeds with ease, ZoneMinder does not cut it.
While I was experimenting with cameras, I was also getting into HomeAssistant which had motionEye as a supported service. It was easy to add cameras and almost any camera could be hacked to have RTSP support and motionEye.
Motion-detection could be enabled on the Raspberry Pi's motionEye, offloading compute off the cameras. This was important for me as many of my cheap Chinese cameras lag/hang/shutdown on load.
The Raspberry Pi also has Pi-Hole installed which I configured to block all IPs and domains being used by the IP cameras thereby limiting its access to local network only.
As I kept adding cameras (10+), performance on Raspberry Pi started getting affected, so I added another Raspberry Pi and installed motionEye on it. Setup MQTT on motionEye to send notifications to HomeAssistant on motion/human detection. Added multiple HDDs (4) so cameras can write with less conflicts.
I still haven't got some cameras (Xiaomi) into this setup as I don't want to hack them yet. (The open firmware(s) lack features). But they do backup recordings to the same Raspberry Pi NFS and I plan to find something which can show motionEye and Xiaomi videos in one interface.
This is what I used to set up a home surveillance with notification alerts.
https://www.bouvet.no/bouvet-deler/utbrudd/building-a-motion...
====
I just wanted to add, while I have an Arlo Pro as well, I've found the Raspberry Pi Zero solution cheaper and more reliable. The Arlo's camera quality is better, but the software often fails to capture someone walking by. I'm also more skeptical about how safe my videos are on Arlo's servers.
motionEye can also be used directly on Raspberry Pi Zero along with the Raspberry Pi Camera but I don't use that setup as getting night vision to work on it a hassle and expensive, comparatively. It works though :).
You might have to be careful here. My understanding is that PiHole is just a domain lookup blocker so it won’t block a device which phones home with a straight IP address.
Happy to be corrected.
Sadly DNS over HTTPS takes this control away from you.
When I did have them (for monitoring a puppy) I put a camera on a physical switch so power could be completely cut when I was at home. For awhile I had this on a WiFi enabled switch, though I used a different switch brand than the camera to add layers that would need to be compromised.
Sad, the nest protect has a microphone, multiple networks, speaker, light, presence detection, alarm, smoke detector, etc.
I'd love to get the same hardware with a sane stack that will interoperate with my home not just today, but in 10 years as well.
It does not rely on any external cloud service or the like, but is based on a Raspberry PI and a IR cam, completely self-hosted. The stream is only available in the local network, but could be accessed from anywhere with a properly set up VPN (e.g. Wireguard).
It does not tick all your requirements but maybe you can use it as a foundation for building your own solution.
Also have a look at ZoneMinder: https://www.zoneminder.com/
I also have some Schlage locks and a few sensors on areas like my garage doors in case they are forcibly opened.
I know of zero stories in which these people's home security or guns prevented or helped resolve a break-in or other crime. In fact, unless I'm forgetting something, I don't know that I really know anybody that's had their house robbed at all (this is a privilege, I know)...
I do know other stories, though... Like somebody going downstairs in the middle of the night, gun-drawn because a relative got home from a trip a day early without telling anybody... Or somebody rushing home from work (armed again) because they got alerts from their home security system and couldn't access their cameras... only to find a Sheriff's deputy already in the house and... absolutely nothing amiss other than their kid leaving a door open.
And we haven't even started talking about privacy concerns.
Personally, I lock my doors at night and when I leave the house. If somebody wants to smash the glass in the french doors and walk right in, well, they're gonna be pretty disappointed in what I've got in there. I'm OK with that setup.
I know OP's question is about making the tech work in a safe way, but I can't help but wonder if all of the surveillance/security stuff is really necessary, unless you live in a high-crime area...
Great comparison to home gun ownership, it feels like a lot of money, technology, and energy put into protecting yourself from an extremely unlikely threat.
I find it quite useful to know when a package is left at my door.
My control system for lights can make the house look lived in, but is also really handy for controlling lights where they are hard to reach.
We have no useful front facing windows, it's quite nice to know when friends/family drive up for a kid pick up, visit, whatever without having to wait for them to knock.
It's nice to know when things happen, like a tree falling and landing on your house. Also handy if you have a surprise and your kid/wife/house sitter/plumber needs inside your house and your not there.
I just wanted to point out that home automation and surveillance have quite a bit of overlap and can be useful for more than detecting unwanted intruders.
The Wyze cams are nice as they have audio, detection zones, etc.
Most Cameras support RTSP which will allow you to monitor their streams from 3rd party software.
https://www.theregister.co.uk/2020/01/29/ubiquiti_data_colle...
My father in law has cheap Chinese cameras from Amazon that didn’t last 6 months. He also pays a monthly subscription for his Nest Cameras.
I’ll be installing a G3 Flex and an outdoor Mesh AP on the patio of a condo by the beach. We’ll see how long it lasts. Inside the USG and a Switch have been running fine.