How to Hack a Yi Outdoor Security Camera (1080p) With Yi-Hack v4


Last time we showed you how to hack the cheap little (and cute) Wyze Cam v2 with a Micro SD Card, some time and freely available software from GitHub. This time we hack the Yi Outdoor Security Camera with Yi Hack v4.

Now we are back again showing you how to hack the super cheap Yi Outdoor Security Camera. This device is under $50, has night vision, and when you pair it up with Yi-Hack v4 you can add SSH, FTP, MQTT and even RTSP support (RTSP for a small donation to the software project). Best of all, you can enable privacy mode and keep the camera from phoning home to the Yi servers in China.

Stop letting your devices talk to their servers!

You’re buying security cameras, stop sending the data back to their servers. Sure, they give you an app, they want to sell you video recording services, but would they back you up in court if you needed them to? And Why bother paying them when you can use software like MotionEye or Zoneminder to capture events and record yourself? Use the open source software people have put time into, take control of your destiny. To do so, you have to apply the hack to the Yi Outdoor security camera. Thankfully, it’s really easy to do.

Hacking the Yi Camera – What you’ll need

Hacking the Yi Camera

How to hack the Yi Outdoor Security Camera

As in the last hack you’ll need to format the SD Card with a FAT32 partition. Again, I used my Linux desktop for this since I have a on-board SD Card reader that’s pretty fast. Since most cards come pre-formatted I just fired up GParted to double check the file system type.

GParted showing SD Card is already FAT32 formatted.
We’re in luck, the SD Card is already formatted for FAT32

If you were using Windows 10, you’re in luck, Windows will either offer to format the card or you can right click on it in This PC and format it. Just be sure, of course, to select FAT32.

Obtain the hacked firmware files

Jump on over to the GitHub releases page for the Yi-Hack v4 site and grab the last release for the camera. There are others available, so be sure you’re grabbing the right one.

Yi Hack v4 release page screenshot
Make sure for the Yi Cam Outdoor 1080p you’re grabbing the file marked outdoor. The file names may be different if there is a newer release, for this we’re using version 0.2.0

Once you have the zip file you simply need to extract the files to the root of your fresh and empty SD Card.

For me it was as easy as dragging and dropping the files from the zip into the root of the SD Card.

Once you have the files on the SD Card, you’ll need to open a tiny door on the bottom, with tiny screws, to access the SD Card slot on the camera. This is where our trusty #1 Philips screwdriver comes into play.

Removing the SD Card door on the Yi Cam Outdoors 1080p
The tiny door with the tiny screws, the requires the tiny screwdriver and takes the tiny SD Card is easy to get off.

Inserting the SD Card into the Yi Camera Outdoor

Now, this is maybe the only hard part of the entire process. It took me about a minute of fiddling to ensure I had the SD Card in all the way. Rest assured, it’s not hard at all. I just didn’t want to have to make two attempts so I made sure to push the card in all the way. It does have a push-to-snap-back mechanism, and don’t worry, as long as you have it in the slot, you’re okay. The slot however is small and you’ll want to take a close look before inserting.

Inserting the SD Card into the Yi Cam Outdoors 1080p
This thing was a stupid little guy to get in, but it wasn’t too hard – just be sure to push all the way or not put the door back on until you test it.

Finishing up the hack

You’re ready, power up the camera and go to the webpage for it. At this point you’ll be able to manage the settings and do what you need. Crypt0, the project lead, makes it really easy by setting the hostname for the camera to http://yi-hack-v4/. This works in most homes, but if you’re router won’t find the hostname, you’ll have to get on the router and find the IP address and manually connect.

Status page for Yi Hacks v4 - Yi Cam Outdoors Home

The first thing I did when I setup the camera is have it stop calling back to China. I’m going to make the donation for RTSP support so I don’t need the app and I never intended to use it when I bought the thing.

Setting the privacy restrictions for the Yi Cam

Settings page for Yi Hacks v4 - Yi Cam Outdoors Home

You’ll see above I am updating the hostname of the device, I’m going to install a second one after running through the hack again, on the back door. I want to be sure they have unique host names and I wanted to make them more familiar. Of course too, I’ve turned private mode on by disabling the cloud support and am going to test the “Recording without Cloud” function. Since I’m going to pipe it into MotionEye, it’s really just an experiment.

Of course, if I wanted to use the Yi App, change Wifi, etc, I can re-enable the feature.

Yi Camera Advanced Features

By default the FTP server isn’t enabled and neither is the NTPD server (to sync the time with the atomic clock servers worldwide, we’ll assume this thing doesn’t have a RTC chip). If you scroll down you can enable (or disable) these too.

Enable MQTT

Since I’m running Home Assistant at home, Node Red and Mosquitto, I’m going to also turn on the MQTT support and feed motion events into those systems (Mosquitto -> Node Red -> Home Assistant most likely). Turning it on with Yi Hacks v4 is actually amazingly simple.

Omitted from the screenshot above is the section for security. You can easily set the username and password for your MQTT server in one fell swoop. Be sure if you’re running more than one camera to update the Client ID so they are unique to your MQTT server.

MQTT testing – Using MQTTBox from the Windows Store I can see the messages when there is motion on the camera.

RTSP Support on Yi Hacks v4

The good and bad news

The good news is – Yi Hacks supports RTSP output. You can pick up the camera from apps like VLC, MotionEye, Zoneminder, Home Assistant, et. al. The bad news, you’ll have to donate a few British Pounds to do so. The good news, it’s going right to the GitHub project maintainer, so don’t feel too bad about being held ransom.

Obtaining the key just takes a few steps and some time for Crypt0 to email you a license key. You’ll have to hop into the Discord server for the hack (where you can also get some support) and request a donation. From there you’ll be sent to the site to tie your camera to the RTSP software and you’ll be good to go.

Final thoughts

Overall, the hack is easy, the camera is cheap – one of the easiest. At the same time, it wasn’t made abundantly clear upfront that I’d have to drop a few more bones to get the RTSP license key. But I feel good about supporting a project and hope that means some of the 101 open issues currently start getting closed.

Don’t wait, it’s a great camera, go grab one today.

You Might Also Like


  • Reply Sid Leach 05/17/2020 at 8:03 AM

    If you take a brand new Yi Outdoor camera and put the SD card in it at the outset, without first connecting the camera via the Yi app, it looks like you end up unable to connect to the camera. There is no opportunity to enter your password for your wireless network, and it sits there repeatedly saying, “waiting to connect …”. Perhaps it would be good to mention that you first connect the camera via their app before you hack the camera? Unfortunately, I was unfamiliar with the Yi products, and did not have any experience with how you connect to the camera.

    • Reply ImaLamer 05/21/2020 at 2:04 AM

      I believe as well, though, you can hunt for and edit the wpa_supplicant file to enter the SSID & password.

  • Reply eric 11/17/2020 at 3:36 AM

    Thanks for the hack !
    Can you tell if I can do it with a Mac ?

    • Reply ImaLamer 11/17/2020 at 8:02 PM

      You can but the steps for setting up the SD card might change. Let me know if you want me to update the article for Mac!

  • Reply ImaLamer 11/25/2020 at 8:54 PM

    I just performed this hack on the second camera! It was a hassle to go through Discord to get the license key for RTSP but it worked and I did the hack in less than 10 minutes.

  • Reply Using the Yi Cam Outdoor with MotionEye and Home Assistant - Kinda Lame 11/28/2020 at 9:02 PM

    […] we’ll need a running network camera. We’ll assume that we’ve already setup a hacked Yi Cam (or Wyze cam) that has RTSP enabled and running. If you followed the guide and paid for the RTSP […]

  • Tell us how lame this is!

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    %d bloggers like this: