Mi Home Cameras (Xiaofang / Dafang)
These compact indoor cameras require custom firmware to expose an RTSP stream.
Install custom RTSP firmware
The most widely used option is the Xiaomi-Dafang-Hacks firmware (available on GitHub). It enables RTSP streaming over your local network. Follow the project's flashing guide for your specific camera model — you will need a microSD card.
Enable RTSP in the web interface
After flashing, open a browser and navigate to http://<camera-IP>. In the web interface, go to Streaming → Enable RTSP. The default port is 8554.
Connect in SmartRTSP
In SmartRTSP, tap + → Manual, then enter the stream URL:
No username/password by default with custom firmware. Replace the IP with your camera's actual local IP address.
Aqara Cameras (G2H, G2H Pro, G3)
Aqara cameras support RTSP natively — no custom firmware required. They also support ONVIF for auto-discovery.
Enable RTSP in Aqara Home app
Open the Aqara Home app → tap the camera → Settings (gear icon) → Advanced → Enable RTSP. Copy the generated RTSP URL and credentials shown in the app.
Option A: ONVIF auto-discovery
In SmartRTSP, tap the ONVIF Scan button. Aqara cameras with ONVIF support will be discovered automatically on your local network with no manual URL entry required.
Option B: Manual RTSP URL
In SmartRTSP, tap + → Manual and enter the URL shown in the Aqara app. The typical format is:
For sub-stream (lower resolution), replace ch00_0 with ch00_1.
Xiaomi & Aqara RTSP URL Reference
| Camera Model | RTSP URL | Port |
|---|---|---|
| Mi Camera (Xiaofang/Dafang, custom fw) | rtsp://<IP>:8554/unicast | 8554 |
| Aqara Camera G2H — main stream | rtsp://admin:pass@<IP>:554/live/ch00_0 | 554 |
| Aqara Camera G2H — sub-stream | rtsp://admin:pass@<IP>:554/live/ch00_1 | 554 |
| Aqara Camera G2H Pro | rtsp://admin:pass@<IP>:554/live/ch00_0 | 554 |
| Aqara Camera G3 (Hub G3) | rtsp://admin:pass@<IP>:554/live/ch00_0 | 554 |
| Xiaomi 360 Home (some models, custom fw) | rtsp://<IP>:554/unicast | 554 |
Frequently Asked Questions
Do all Xiaomi cameras support RTSP?
What is the Xiaomi-Dafang-Hacks firmware?
Does Aqara G2H / G3 support ONVIF auto-discovery?
What is the default username and password for Aqara cameras?
admin. The password is set when you enable RTSP in the Aqara Home app — it is shown once on screen. If you missed it, disable and re-enable RTSP in the app to generate a new one.