I have that camera, running the latest firmware and also allowing RTSP streaming (check here http://xiaoyi.querex.be/). However, HASS doesn’t support RTSP streams, only MJPEG or JPEG, so you won’t get the camera working.
Thanks for replying.
I’ve 2 questions.
-
Based on what I understood from the link the 1.8.5.1 is the last firmware with RTSP support, is that right?
-
Is that possible to create a module to handle RTSP for Home-assistant?
Thanks
Question Number 1: See this thread (http://en.miui.com/thread-196713-1-1.html) apparently there is a new 2016 firmware which you can modify with a script to get RTSP support on this latest firmware (I used this method on an older firmware).
edit download it from here (https://drive.google.com/open?id=0B0hXitGpA19RdTJDcXlhYXVVNEk) - this is the modified version which automatically enables RTSP support and a few other things - note I haven’t tested this version yet.
Question Number 2. There is a feature request for this already (Rtsp stream support for camera)
Is there some news in this area? Some progress in the integration of RTSP protocol?
I kindly ask you again if there is some update about Rtsp support? Thank you in advance
Hi all – old topic, I know, but I have exciting news on this front: I’ve developed a HASS integration with the YI Home Cameras:
Unlike some hacks that force you to enable experimental RTSP streaming, yet lose the ability to use the official Yi app, this allows for both.
I’m waiting for some underlying library updates (and a lot more testing) before I publish, but I’m excited!
Excellent!!
And how?
My platform makes use of the v3 Yi “hacked” firmware, which (a) retains usage of the mobile app and (b) enables an FTP server. The platform utilizes FTP to find and stream the latest captured video file.
You can see my progress here: https://github.com/home-assistant/home-assistant/pull/9787
The documentation on the HASS website lists the cameras. That said, if you can install a custom firmware that enables an FTP server, it’s likely that camera will work.
It looks like this camera component is using particular ftp folder /tmp/…
Would it be possible to add an additional configuration to the component where you can specify the folder?
For instance, I have another YI smart camera with ftp server, but the component doesn’t work with it since there is some slight difference in its folder structure.
Yes, I can definitely add support. Can you share your full structure (path, folders under that path, etc.) so I can brainstorm a holistic strategy?
And under that, are there multiple folders, each with MP4s?
Yes, I believe it’s the same structure of folders based on date/time with .mp4 files.
Great! I will add an enhancement that allows you to specify a custom folder path. Stay tuned!
I came across something great: turns out, I already put that feature in the platform – I just forgot to document it!
Use the path
key to change your path:
camera:
- platform: yi
host: '192.168.1.100'
password: my_password_123
path: /tmp/hd1/record
Give that a shot and let me know how you get along. In the meantime, I’ll submit a PR to update the docs.
Xiaofang hacks firmware does have FTP server but doesn’t write mp4 files. I don’t think the component can be used. The RTSP stream support issue remains.
Does it save any type of video? Let me know; I’d be happy to see if I could expand the platform to cover your use case.