xiaomi

package
v1.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 14 Imported by: 0

README

Xiaomi

This source allows you to view cameras from the Xiaomi Mi Home ecosystem.

Important:

  1. Not all cameras are supported. There are several P2P protocol vendors in the Xiaomi ecosystem. Currently, the CS2 vendor is supported. However, the TUTK vendor is not supported.
  2. Each time you connect to the camera, you need internet access to obtain encryption keys.
  3. Connection to the camera is local only.

Features:

  • Multiple Xiaomi accounts supported
  • Cameras from multiple regions are supported for a single account
  • Two-way audio is supported
  • Cameras with multiple lenses are supported

Setup

  1. Goto go2rtc WebUI > Add > Xiaomi > Login with username and password
  2. Receive verification code by email or phone if required.
  3. Complete the captcha if required.
  4. If everything is OK, your account will be added and you can load cameras from it.

Example

xiaomi:
  1234567890: V1:***

streams:
  xiaomi1: 	xiaomi://1234567890:cn@192.168.1.123?did=9876543210&model=isa.camera.hlc7

Configuration

You can change camera's quality: subtype=hd/sd/auto

streams:
  xiaomi1: xiaomi://***&subtype=sd

You can use second channel for Dual cameras: channel=1

streams:
  xiaomi1: xiaomi://***&channel=1

Documentation

Index

Constants

View Source
const AppXiaomiHome = "xiaomiio"

Variables

This section is empty.

Functions

func GetBaseURL

func GetBaseURL(region string) string

func Init

func Init()

Types

type Device

type Device struct {
	Did   string `json:"did"`
	Name  string `json:"name"`
	Model string `json:"model"`
	MAC   string `json:"mac"`
	IP    string `json:"localip"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL