Yi Home Camera

Hi Community, I’m a new member and first of all wanted to thank everybody to make this openHab possible and grow, this is amazing platform let dreams come true.

My question is that I can’t find addon for Yi Technology devices (please correct me if i’m wrong)
and I would like to buy and use with openHab the Yi home camera device just don’t know where to start and how to gain the necessary information in order to make it work with openhab. If there is already something under different name please tell me if not I’m ok to get my hands dirty and find out (contribute and share my findings).
As a new user I’m still familiarizing myself with the platform but would love to find some best practices how you guys “debug” or find out the necessary information from new devices.

Thanks in advance.

You may be able to use:

Thanks! going to check it and reply with results.

Hay M8,

did you find anything?

Hi there,

Is any of you manage to make a Yi Camera work with openhab ?

Thanks for your answer.

I think you might be able to use them as simple rtsp devices.
But first you need to flash a custom firmware on the cameras https://github.com/TheCrypt0/yi-hack-v4
And then use the normal way for openhab rtsp How to display RTSP streams from IP Cameras in Openhab and Habpanel (Linux only)

1 Like

Thanks for that, It really looks working however need to work a but to add motion sensor etc… but there is this firmware as well (not tested yet):

Hi, @TheHun:

Still interested on this topic? I have recently bought a couple of Yi Home 1080p cameras and I have been able to integrate them with Openhab2 and Habpanel.

If anyone is still interested I can explain how I did with them.


Yes, please. ipcamera binding ? and which firmware did you flash ?

Yes please do.
Kind regards,

Hi all:

First, no specific binding needed in my case. You just need to flash the correct firmware in the camera. The tricky part is that there seems to be a combination of internal hardware and serial number to get to the correct version you need to flash.

In my case, I used AllWinner: https://github.com/roleoroleo/yi-hack-Allwinner. but there are at least two other possibilities:

You will have to read very carefully what is the right version you will need. No need to say that you will use it at your own risk and that there is always the risk of bricking your camera.

The instructions mention you must use a maximum of 16 Gb microSD card. I can tell you that I have used a 32 Gb one (the maximum size allowed for the camera) and it worked perfectly.

Once I had the new AllWinner firmware installed and after a couple of reboots, the camera shows two interfaces: the original one fully operational with the Xiaomi app; a new interface accessible via browser. There I disconnected the Cloud services (not really needed, just for security reasons), activated RTSP (only low quality to save memory), and configured the MQTT client.

There is an issue with the MQTT client and the camera events sent to the broker. You wil only receive the motion_stop message if you have activated the AI human motion detection, most probably because the original firmware “consumes” the motion_start message and the hack is not working. The problem with this is that as you only receive motion_stop, your item does not change value and, in principle, you would not know if you had motion. I found a simple workaround: a rule that changes the state of the item to “reset”. This way, when a “motion_stop” is received, I know there was a lost motion_start. Sound silly, buth works very well.

On the video side, I am using only pictures in Habpanel, so a simple image frame with refresh every 60 seconds is working well. If I see something I don’t like, I can access the RTSP video stream with VLC or any other IPCam app. The web interface of the hack is more sophisticated and there are json messages that you can process. I have not worked this out because the web interface of the hack gives you a very simple way to see captured recordings.

Hope this helps, KR.