I recently acquired a few Xiaomi products and thanks to the community, I have been successful in integrating “most” of them into HA.
This post is about one such integration - XiaomiFang Wifi camera.
All I really did was follow the instructions from this project to hack it. The hack works great (even on the latest firmware 220.127.116.11) and opens up lots of features (ssh, telnet, sftp, rtsp etc) There is also an option of completely disabling cloud communications making the camera local only.
Once I managed to do that and verify the rtsp stream (http://camera-ip/unicast), then it was simply a case of adding a camera component into HA.
My configuration looks like this.
> - platform: ffmpeg
> input: -rtsp_transport tcp -i rtsp://camera-ip/unicast
> name: Garage Cam
There are also ways to use the camera with Synology Surveillance station.. I haven’t tested this yet.
Good luck hacking