Home

Awesome

<p align="center"> <img height="200" src="https://raw.githubusercontent.com/TheCrypt0/yi-hack-v4/master/imgs/yi-hack-v4-header.png"> </p> <p align="center"> <a target="_blank" href="https://discord.gg/upPsFWZ"> <img src="https://img.shields.io/discord/530507539696189477.svg?logo=discord" alt="Official Discord Server"> </a> <a target="_blank" href="https://github.com/TheCrypt0/yi-hack-v4/releases"> <img src="https://img.shields.io/github/downloads/TheCrypt0/yi-hack-v4/total.svg" alt="Releases Downloads"> </a> <a target="_blank" href="https://trello.com/b/EtuK8577/yi-hack-v4"> <img src="https://img.shields.io/badge/Trello-yi--hack--v4-blue.svg" alt="Trello Board"> </a> <img src="https://img.shields.io/github/license/TheCrypt0/yi-hack-v4.svg"> </p>

Why another Yi firmware?

The answer is simple: missing updates, RTSP and not based on the latest stock firmware (which features improvements and new cool stuff). The effort and work that has been put into the other projects is great and without them the making of this new version wouldn't be possible.

RTSP Server

I've been working on a functional RTSP implementation for the past 3 months. After that I published on Discord the first working closed-beta, available to supporters only. Since then I fixed some issues with Xiaomi's H264 encoder that happened to hang ffmpeg of Shinobi and Home Assistant.

Now everything works as it should and the app functionalities are intact (but they can be disabled if you want).

Tested on the following platforms (but it should work with anything that accepts an RTSP stream:

I'm really thankful to those who supported the project and helped me by donating or sending me new cameras to test on, therefore I would like to reward them allowing to be the first ones to test the new functionalities.

Here's a quick guide on how to enable it: Enable RTSP Server.

Table of Contents

Features

This firmware will add the following features:

This firmware might add:

Supported cameras

Currently this project supports the following cameras:

Getting Started

  1. Check that you have a correct Xiaomi Yi camera. (see the section above)

  2. Get an microSD card, preferably of capacity 16gb or less and format it by selecting File System as FAT32.

IMPORTANT: The microSD card must be formatted in FAT32. exFAT formatted microSD cards will not work.

<details><summary>How to format microSD cards > 32GB as FAT32 in Windows 10</summary><p>

For microSD cards larger than 32 GB, Windows 10 only gives you the option to format as NTFS or exFAT. You can create a small partition (e.g 4 GB) on a large microSD card (e.g. 64 GB) to get the FAT32 formatting option.

You should now have a FAT32 partition on your microSD card that will allow the camera to load the firmware files to update to yi-hack-v4.

Example: 4 GB FAT32 partition on 64 GB microSD card

example: 4 GB FAT32 on 64 GB

</p></details>
  1. Get the correct firmware files for your camera from this link: https://github.com/TheCrypt0/yi-hack-v4/releases
Camerarootfs partitionhome partitionRemarks
Yi Home--Not yet supported.
Yi Home 17CN / 27US / 47USrootfs_y18home_y18Firmware files required for the Yi Home 17CN / 27US / 47US camera.
Yi 1080p Homerootfs_y20home_y20Firmware files required for the Yi 1080p Home camera.
Yi Domerootfs_v201home_v201Firmware files required for the Yi Dome camera.
Yi 1080p Domerootfs_h20home_h20Firmware files required for the Yi 1080p Dome camera.
Yi 1080p Cloud Domerootfs_y19home_y19Firmware files required for the Yi 1080p Cloud Dome camera.
Yi Outdoorrootfs_h30home_h30Firmware files required for the Yi Outdoor camera.
  1. Save both files on root path of microSD card.

IMPORTANT: Make sure that the filename stored on microSD card are correct and didn't get changed. e.g. The firmware filenames for the Yi 1080p Dome camera must be home_h20 and rootfs_h20.

  1. Remove power to the camera, insert the microSD card, turn the power back ON.

  2. The yellow light will come ON and flash for roughly 30 seconds, which means the firmware is being flashed successfully. The camera will boot up.

  3. The yellow light will come ON again for the final stage of flashing. This will take up to 2 minutes.

  4. Blue light should come ON indicating that your WiFi connection has been successful.

  5. Go in the browser and access the web interface of the camera as a website. By default, the hostname of the camera is yi-hack-v4. Access the web interface by entering the following in your web browser: http://yi-hack-v4

Depending upon your network setup, accessing the web interface with the hostname may not work. In this case, the IP address of the camera has to be found.

This can be done from the App. Open it and go to the Camera Settings --> Network Info --> IP Address.

Access the web interface by entering the IP address of the came in a web browser. e.g. http://192.168.1.5

IMPORTANT: If you have multiple cameras. It is important to configure each camera with a unique hostname. Otherwise the web interface will only be accessible by IP address.

  1. Done! You are now successfully running yi-hack-v4!

Unbrick your camera

TO DO - (It happened a few times and it's often possible to recover from it)

Acknowledgments

Special thanks to the following people and projects, without them yi-hack-v4 wouldn't be possible.


DISCLAIMER

I AM NOT RESPONSIBLE FOR ANY USE OR DAMAGE THIS SOFTWARE MAY CAUSE. THIS IS INTENDED FOR EDUCATIONAL PURPOSES ONLY. USE AT YOUR OWN RISK.