Home assistant

Unlocking RTSP on the MoesHouse/Tuya 4MP Indoor Camera: A Complete Guide

AliExpress
TL;DR: Enable ONVIF/RTSP in the Tuya app, set a password, use username ‘admin’ and port 8554 with the stream URL rtsp://admin:PASSWORD@IP:8554/stream0 to stream on VLC or Home Assistant.

Frequently Asked Questions

How do I enable RTSP on the MoesHouse/Tuya 4MP camera?

Navigate to your camera’s settings within the Tuya or Smart Life app. Look for an ‘ONVIF’ or ‘RTSP’ option (sometimes labeled ‘Onvif Switch’) and enable it. You’ll also need to tap ‘Reset Password’ and set a new password that includes at least one capital letter. The username is always ‘admin’.

What is the correct RTSP stream URL for this camera?

The correct RTSP stream URL for the MoesHouse/Tuya 4MP camera is rtsp://admin:YourPassword@IP_Address:8554/stream0. Replace ‘YourPassword’ with the password you set in the app and ‘IP_Address’ with your camera’s local IP address. The camera uses port 8554, not the standard 554.

Why isn’t the standard RTSP port (554) working?

This specific MoesHouse/Tuya camera model does not use the standard RTSP port 554. Instead, it utilizes port 8554 for RTSP streams. You must ensure your firewall allows traffic on this port and use it in your stream URL.

How can I integrate this camera into Home Assistant?

In Home Assistant, add the ‘Generic Camera’ integration. For the ‘Stream Source’ field, enter the RTSP URL: rtsp://admin:YourPassword@IP_Address:8554/stream0. Leave the ‘Still Image URL’ blank unless you have a specific snapshot URL. The authentication method should be set to ‘Basic’.

What are common issues when setting up RTSP on this camera?

Common pitfalls include using the wrong port (554 instead of 8554), incorrect stream paths (e.g., /main or /sub instead of /stream0), incorrect authentication details (remember ‘admin’ is the username and the password needs a capital letter), and not allowing enough time for the camera to reboot after enabling ONVIF/RTSP.




After wrestling with the MoesHouse Tuya-powered 4MP indoor PTZ camera, I finally managed to get RTSP streaming working. Here’s everything I learned along the way, including the pitfalls, the correct stream URL, and how to get it working reliably on macOS using VLC.


What This Camera Is

The camera in question:

Tuya WiFi 4MP Indoor Security Camera with Night Vision and Motion Detection

  • Brand: MoesHouse
  • Model: 4MP WiFi Indoor Camera
  • Platform: Tuya Smart / Smart Life app
  • Features: PTZ, night vision, two-way audio, ONVIF, RTSP (claimed)

Despite advertising ONVIF and RTSP support, using those features is anything but plug-and-play.


First Steps: Enabling ONVIF/RTSP

In the Tuya or Smart Life app:

Uploaded image

  1. Open your camera settings.
  2. Look for “ONVIF” or “RTSP” (often called “Onvif Switch”).
  3. Enable it.
  4. Tap Reset Password and set a password with at least one capital letter (e.g., Admin1234).

Note: The username is always admin — this is hardcoded and cannot be changed.


Checking If the Camera Is Listening

We used nmap to confirm what ports were open:

nmap -p 554,8554 192.168.1.80

Result:

554/tcp  closed rtsp
8554/tcp open   rtsp-alt

This tells us the camera is using port 8554 for RTSP — not the usual 554.


Stream URL: The Missing Piece

Despite many guides suggesting /main, /sub, or /onvif1, none of them worked. The correct stream URL for this model is:

rtsp://admin:[email protected]:8554/stream0

This was confirmed through trial and error and analyzing debug output from VLC.

You can also use the secondary stream (lower quality but faster) in:

rtsp://admin:[email protected]:8554/stream1


VLC: Getting It Working

In VLC:

  1. Go to File → Open Network.
  2. Enter the full RTSP URL with username and password:rtsp://admin:[email protected]:8554/stream0
  3. Approve

Home Assistant Integration (No YAML Required)

Home Assistant’s UI makes it straightforward to add this camera without touching configuration.yaml.

  1. Open Home Assistant → Settings → Devices & Services.
  2. Click ➕ Add Integration (bottom‑right).
  3. Search for “Generic Camera” and select it.
  4. Fill in the fields:
    • Still Image URL: (leave blank or point to a snapshot URL if the camera supports JPEG)
    • Stream Source:
      rtsp://admin:[email protected]:8554/stream0
    • Leave authentication method as Basic (default).
  5. Click Submit and then Finish.

Home Assistant will create a new camera entity (e.g. camera.moeshouse_camera). You can now add it to a dashboard card or call camera.play_stream in automations.


Android App Support

Two great Android apps support this stream format:

  • ONVIF (by Developer: Biyee SciTech): Detects ONVIF cameras and auto-discovers RTSP streams.
  • StreamShow: Lightweight RTSP player, works flawlessly with the /stream0 endpoint.

Common Pitfalls

  • Wrong Port: 554 is closed by default. Port 8554 is used.
  • Wrong Stream Path: /stream0 is required — not /main, /sub, or /onvif1.
  • Authentication: Username is always admin. Use the password you set in the app’s ONVIF section. Password must include at least one capital letter.
  • Service Delay: After enabling ONVIF, the camera often needs to reboot and initialize before RTSP will respond.

Final Thoughts

Tuya-based cameras are cheap and flexible, but their RTSP/ONVIF support is inconsistent and poorly documented. With a bit of effort — and the right URL — they can work just fine for streaming into VLC, Blue Iris, Home Assistant, or Android apps like StreamShow.

Hopefully, this guide saves someone else the hours of trial and error it took to crack the RTSP stream on this device.

You can buy one of those on aliexpress here:

https://s.click.aliexpress.com/e/_oEHDngQ 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.