Turning a Decommissioned iPhone into a UniFi Protect Camera
25 comments
·August 24, 2025VoidWhisperer
gerdesj
"The documentation on Github is enough, but frustratingly, the failure mode I ran into was the video just… not loading. However, I eventually got it nailed down, and now I have a new camera in Protect."
Are you sure you want to go down this route: "Turn device into IP Camera"? - https://apps.apple.com/us/app/ip-camera-lite/id1013455241
Anyway - this is likely the Github mentioned: https://github.com/p10tyr/rtsp-to-onvif
... its a proxy that takes a RTSP stream and makes it look all lovely and ONVIF (ie discoverable). The particular fix that OP mentions will be in that Github repo/wiki/issues but given I don't anything Apple, I can't be arsed to search
I think that Frigate has recently had a proxy or proxy handling recently added. Zoneminder would also work with this approach.
Please, whatever you do, put your cameras on their own VLAN, with no access to the internet. Especially if names like Reolink (int al) are involved. I own quite a few Reos and they live on a VLAN called SEWER!
nodesocket
I also thought this strange to leave out the exact details and information that people would actually be interested to learn about.
jakeydus
Honestly, I saw this and was very interested to learn how they actually solved the problem. Cool that OP did it! Bummed that they weren't willing to share how they did it.
treesknees
From some research, Unifi Protect doesn’t support live audio or audio playback for third-party cameras. It also lacks support for people and vehicle detections.
I would likely consider using this setup for some inexpensive auxiliary cameras to enhance coverage. I’ve also had the desire to add a cheap remote camera while I’m staying in an Airbnb. However, I wouldn’t use this system for any serious surveillance around the house.
thisislife2
I have heard the camera modules get hot and degrade as they weren't created to be always ON in smartphones?
high_priest
And the answer is as always, it depends. Mostly on the chip & sensor combo and if there is additional heat absorbing mass designed for the SoC.
xp84
Casey, this is the most Casey thing I've ever heard, using an iPhone + some hackery when even cheap Amazon no-name PTZ cameras ($30-40 usually) natively support onvif! I'm happy it worked for you though.
Havoc
Disappointed to see no discussion on battery. That's what is keeping me from implementing this. My old iphones are at 2+ years battery life. i.e. at the point where they're at risk of becoming spicy pillows and I'd love to not have a lithium fire in my apartment. In that context spending 50 bucks on amazon for a camera suddenly seems sound
xp84
Can confirm that sticking an old iPhone, say, connected to power in your garage to serve as a kiosk device 24/7 will 100% result in the battery swelling up. I had it happen. Now, in my case it didn't cause any harm and I was even able to replace that 5S's battery. But tbh I would not trust an Apple device in a permanently-powered situation for this reason.
Especially since Apple, in their benevolence, software-restricts the technology of the "only charge to 80%" option to only their newest devices (14 series and up, only) so anything older than that will be torturing its battery if left on a charger long-term.
bigiain
A long time ago, I used to work at a place that decided to stick iPads onto meeting room doorways to display who had the room booked (because people are the worst). These'd last 7 or 8 months before the battery puffed up enough to be noticed, or in a few cases to crack the screens. I grabbed a few power point timer switches, and set them to only over up the charger for a hour a day. Never had another battery puffing failure - at last not in the next 2 or 3 years before I left. (As the iPads got old, charging for 1 hour per day wasn't always enough to keep them running 24x7, but I'd set them to start charging at 6am so worst case was someone needed to power up the iPad and start the room booking webapp on it in the morning. If a particular iPad got its battery into a state where that was happening regularly, we just adjusted the power point timer to charge twice a day, morning and evening.)
radicaldreamer
Apple itself supports using an old iPhone as a camera for Apple TV Facetime and karaoke use, so while this is a risk, it doesn't seem to be something the company is concerned about.
https://support.apple.com/guide/tv/use-your-iphone-or-ipad-a...
CameronBanga
I've not personally tried it, but there have been people who have had success removing their iPhone batteries and getting old devices to power via Lightning.
https://www.reddit.com/r/androidafterlife/comments/zpya9p/i_...
Havoc
oh that's fun. I had assumed ifruits would just decide nope if they can't see the battery
edit: that's a rather old v6 in link...think they started with their authenticating components after that
password4321
This is a product category ("battery health protection device"): https://chargie.org | https://hn.algolia.com/?query=chargie&sort=byDate&type=comme...
thebruce87m
> 2+ years battery life
Is this considered old? I own countless devices with batteries older than this.
bigiain
I'm currently using an iPhone 13 from late 2021, so almost 4 years old. It's showing 79% Maximum Capacity in Battery Health, and I only occasionally use more then 75% of battery over a days use.
I still have the iPhone XR I upgraded from, so a 7 year old 2018 phone, that still holds a whole day's charge too (but doesn't get much use, and doesn't have a SIM in it right now so I'd guess it's powered down the cellular radios?)
I have an iPod Touch from a bit before Covid, so 6 years old from 2019-ish - it stopped getting daily use when Covid and WFH hit, so it's battery is old, but still in reasonable condition. (Pity newer iOS won't run on it...)
Havoc
Not an expert on this but my understanding is that at 2+ risk starts to increase, especially that have seen high use and fast charging.
My layman understand is that dendrites accumulate over time so risk is incremental over use...and for phones use and time is basically same thing. Low use items I'd totally run for many more years.
bongodongobob
No. We have a couple hundred phones at work that are 5-9 years old. Does failure rate increase with time? Of course. Until you hit 5 years, the phone is perfectly fine.
uz3snolc3t6fnrq
[dead]
yapyap
UniFi people are like the vegans of tech
gerdesj
Sorry?
I run an IT company and a lot of my customers have Unifi APs (we sold them). Our in house controller has a lot of sites on it and it must be a good 10 years old now. Its certainly gone through at least three Ubuntu LTSs.
I eat vegans for lunch.
mmastrac
The joke for those who missed it:
"How do you know somebody loves Unifi?"
"Don't worry they'll tell you"
Disclaimer: I do like unifi.
nodesocket
It is really good though. Network has come a long way, and really is powerful, intuitive, and can support most advanced use cases. Protect is awesome, no cloud storage tomfoolery. AI features like license plate and facial recognition, and partner it with access and you can do some awesome integrations such as automatically open up your front gate, door, etc based on your car or face.
aspenmayer
Have they had a third party audit since a disgruntled employee did whatever they did? They had an insider threat situation a couple years back I think. I didn’t follow the story closely at the time, but I’ve supported end users and installs for Ubiquiti/Unifi stuff, and since that happened, I haven’t really been sure how much I should trust them.
> "At first, I was presented with an endless spinner, as I hadn’t configured things properly. The documentation on Github is enough, but frustratingly, the failure mode I ran into was the video just… not loading. However, I eventually got it nailed down, and now I have a new camera in Protect."
------------------------
It is unfortunate that they decided to omit how they fixed the last issue they mentioned. That could've been useful knowledge for others