AlexxIT/go2rtc · error
wyze: camera not found
Error message
wyze: camera not found: %s
What it means
GetCamera searched the cached camera list (fetching it if empty) for a camera matching the given MAC or nickname case-insensitively and found none. Indicates an unknown/typo'd camera id, or the device is not of product type Camera.
Solutions
- Use the camera's MAC or exact nickname as shown in the device list
- Re-fetch the device list in case the camera was added later
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/wyze/cloud.go:234 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of AlexxIT/go2rtc@c245815e75 (2026-09-07).
Data as JSON: /api/errors/827ad50a96c2902f.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/wyze/cloud.go:234
return c.cameras, nil
}
func (c *Cloud) GetCamera(id string) (*Camera, error) {
if c.cameras == nil {
if _, err := c.GetCameraList(); err != nil {
return nil, err
}
}
id = strings.ToUpper(id)
for _, cam := range c.cameras {
if strings.ToUpper(cam.MAC) == id || strings.EqualFold(cam.Nickname, id) {
return cam, nil
}
}
return nil, fmt.Errorf("wyze: camera not found: %s", id)
}
func (c *Cloud) GetP2PInfo(mac string) (map[string]any, error) {
payload := map[string]any{
"access_token": c.accessToken,
"phone_id": c.phoneID,
"device_mac": mac,
"app_name": appName,
"app_ver": appName + "___" + appVersion,
"app_version": appVersion,
"phone_system_type": 1,
"sc": "9f275790cab94a72bd206c8876429f3c",
"sv": "9d74946e652647e9b6c9d59326aef104",
"ts": time.Now().UnixMilli(),
}
jsonData, _ := json.Marshal(payload)
View on GitHub (pinned to c245815e75)