Self-hosted control for Yoosee IP cameras, with no Yoosee cloud and no Yoosee app.
Status: on hold (2026-10-07). The Yoosee app and camera protocols are analysed and written up under
docs/; no implementation code exists yet. Paused at a decision point: on the newer IoTVideo cameras, PTZ and native SD-card playback ride a cloud-token-gated P2P session, so strict zero-token feature parity with the Yoosee app isn't achievable for those two features — they'd need a one-time token read (runtime traffic still stays local), the unconfirmed LAN-local auth path (te-qgj.9), or a local control interface found in the camera firmware. Local live view, recording, playback (TianEye-recorded), motion alerts and discovery remain fully feasible with no cloud. Resuming depends on that direction call and the hardware firmware work. This README and the docs capture what the analysis found.
Yoosee cameras are cheap and common. Out of the box they depend on the Yoosee app and the Gwell P2P cloud for setup, viewing, playback and alerts. That means:
- your video goes through servers you don't control,
- the camera stops being useful if the cloud or the app goes away,
- there is no clean way to put the camera in your own NVR or home automation setup.
TianEye replaces that dependency. The camera talks only to your own network, and TianEye handles setup, live view, recording and alerts locally.
- Local discovery. Find Yoosee cameras on the LAN.
- Provisioning without the cloud. Get a factory-reset camera onto Wi-Fi and set its password without the Yoosee app.
- Live view. Pull the camera's RTSP/ONVIF streams and serve them to a browser.
- Recording. Continuous and/or motion-triggered recording to local disk, with retention limits.
- PTZ and settings. Pan/tilt, IR/night mode, and basic image settings where the model supports them.
- Alerts. Motion events without phoning home.
- Keep all traffic off the vendor cloud. The reverse engineering settled how: block the camera's internet egress (firewall + local DNS/NTP) and serve media locally over RTSP/ONVIF, rather than impersonate the Gwell/IoTVideo P2P cloud. On the newer (IoTVideo) cameras the P2P handshake is keyed by a cloud-issued token, so impersonation isn't feasible with just the device password; blocking is. See docs/cloud-redirect.md.
- Remote access from outside the LAN. Use a VPN (WireGuard, Tailscale) instead.
- Supporting camera brands other than Yoosee/Gwell.
Common values on Yoosee firmware; the first entry in Tested cameras has been confirmed against real hardware, the rest still vary by model:
| Item | Common value on Yoosee firmware |
|---|---|
| RTSP main stream | rtsp://<ip>:554/onvif1 |
| RTSP sub stream | rtsp://<ip>:554/onvif2 |
| ONVIF port | 5000 |
| Username | admin |
| Password | the RTSP password set on the app's "Connect NVR" screen (separate from the cloud account password; see docs/crypto-and-auth.md) |
| Discovery | firmware 32.01.37 does not answer ONVIF WS-Discovery; such cameras must be found by probing RTSP/ONVIF ports and spotting the HIipCamera RTSP realm |
Firmware differs a lot between models, and some units don't expose RTSP/ONVIF at all. Tested models are listed under Tested cameras.
The cloud protocol isn't documented, so redirection depends on reverse engineering for interoperability, done only on hardware we own:
- Log the cameras' DNS queries and capture their traffic on an isolated network.
- Decompile the Yoosee Android app (e.g. with jadx) to find server hostnames and the registration, P2P and alarm protocols.
- Write the findings up in our own words under
docs/.
The APK, decompiled code and raw packet captures are never committed. They are proprietary, or they contain device IDs and passwords.
Steps 2–3 (decompile and document) are done; step 1 (on-wire capture) is the pending hardware phase — several findings below are marked as needing a capture to confirm.
Findings so far (Yoosee app 6.46.1, static analysis plus one test camera), in a suggested reading order — start at the top for the big picture, go deeper as needed:
1. Orientation — read these first
- cloud-redirect.md — the bottom-line verdict: cut the cloud by blocking it (not impersonating), and why. Start here; it frames everything else.
- security-findings.md — consolidated security & privacy weaknesses (plaintext Wi-Fi setup, reversible device passwords, uploads-on-by-default, unauthenticated ONVIF, …), ranked, each linking to the detail.
- app-overview.md — what the app is: package, the two P2P SDKs, the big picture.
2. What leaves the network, and where it goes
- cloud-endpoints.md — every domain and IP, and how each is used.
- data-inventory.md — every data item that leaves the LAN.
- privacy-uploads.md + camera-uploads.md — the images and video the app and camera upload.
3. What TianEye can do locally instead
- local-storage.md — for each thing the cloud stores, can we keep it locally?
- discovery.md — finding cameras on the LAN.
- onvif.md — what the camera's ONVIF really supports (streams only; no events/PTZ).
- live-view.md — the proven media path: camera RTSP → browser over WebRTC.
4. Controlling the camera
- camera-control.md — live video, PTZ, image/night settings, SD playback.
- add-camera.md — provisioning a camera onto Wi-Fi and binding it.
- alarm-delivery.md — how alarms and push notifications work.
- ota-firmware.md — firmware updates.
- direct-control.md — the LAN/AP paths that need no cloud.
5. Protocol internals
- protocol.md — the cloud HTTP API and request signing.
- crypto-and-auth.md — TLS trust, signing, RTSP auth, P2P certification.
- native-libs.md — inventory of the
.solibraries.
6. Reimplementing the camera SDKs in Go (deepest; read the guide first)
- protocol-go-guide.md — the build order and what gates cloud-free control.
- protocol-iotvideo.md — IoTVideo P2P: transport, session, crypto, app layer.
- protocol-gwell.md — the legacy Gwell P2P stack.
7. Doing the on-wire work (the deferred hardware phase)
- capturing.md — how to capture and decrypt phone↔camera↔cloud traffic on macOS (tools, commands, filters); the gateway to confirming everything marked "needs capture".
Addresses are placeholders (TEST-NET-1);
real LAN addresses live in a gitignored *.local.yaml.
| Model | Firmware | Hardware | Open TCP ports | RTSP | ONVIF | Notes |
|---|---|---|---|---|---|---|
| "IPC" (mfr reports "Technology"), IoTVideo SDK family | 32.01.37 | Ver 2.1 | 21, 554, 5000, 50000 | rtsp://192.0.2.10:554/onvif1, /onvif2 — HTTP Digest, realm HIipCamera, user admin |
port 5000, SOAP | FTP (21) present but broken (inetd can't exec ftpd); 50000 speaks an unknown binary protocol (silent on connect, not HTTP); ONVIF device info, capabilities, media profiles and stream URIs all answer without auth, but Events, PTZ, Imaging and time are advertised and don't work (docs/onvif.md); both streams H.264 Main (1920×1080 and 640×360) at a measured 15 fps with G.711 A-law 16 kHz audio (ONVIF advertises 30 fps and 8 kHz); RTP over UDP only |
- Server: Go, shipped as a single binary with the web UI embedded.
- Web UI: Angular.
- API: ConnectRPC with a protobuf contract shared by the Go backend and the Angular frontend.
- Video: the camera's RTSP stream reaches the browser through WebRTC, re-packetized but not transcoded (docs/live-view.md).
TBD. There is no runnable code yet.
Issues and PRs are welcome. If you own a Yoosee camera, a report with the model, firmware
version and the ports it has open (nmap -p- <camera-ip>) is very useful.
TianEye is an independent project and is not affiliated with or endorsed by Yoosee or Gwell. Use it only on cameras you own.