SECUREXSECURITY ENGINEERINGNVR 文档

MQTT

MQTT 是事件和状态实时分发通道,适合 Home Assistant、自动化和外部服务。它与 HTTP API 互补:HTTP 适合查询,MQTT 适合推送。

核心说明

本页内容按该功能本身整理,不再使用通用占位说明。以下项目均与当前主题直接相关。

连接

Broker 地址、端口、用户名、密码和 topic_prefix 必须与实际环境一致。

断线

日志出现 MQTT disconnected 时应先检查 Broker 网络、凭据、TLS 与连接限制。

主题

订阅时只监听需要的主题,避免把所有高频状态都写入自动化日志。

可靠性

关键自动化不要只依赖客户端内存状态,应能在重连后重新同步。

验证与排查

  • 修改或执行前记录当前版本/配置,以便回退。
  • 完成后同时检查 UI 状态和后端日志,不只看一个成功提示。
  • 如果问题只在单个摄像头/插件出现,先做最小范围对比,避免全局改动。

MQTT

MQTT is a realtime event/status channel for automation and integrations; it complements query-oriented HTTP APIs.

Core behavior

This page is topic-specific rather than a generic placeholder.

Connection

Broker host, port, credentials and topic prefix must match deployment.

Disconnects

Check broker reachability, credentials, TLS and limits.

Topics

Subscribe selectively to avoid noisy automation logs.

Reliability

Automations should recover state after reconnects.

Verification and troubleshooting

  • Record the current version/config before changes so rollback is possible.
  • Verify both UI state and backend logs after the change.
  • If only one camera/plugin is affected, isolate it before making global changes.

MQTT

MQTT distribuye eventos/estado en tiempo real y complementa la API HTTP.

Comportamiento

Esta página contiene contenido específico del tema, no un texto genérico.

Conexión

Host, puerto, credenciales y prefijo deben coincidir.

Desconexiones

Revise red, credenciales, TLS y límites.

Topics

Suscríbase solo a temas necesarios.

Fiabilidad

Las automatizaciones deben resincronizar tras reconectar.

Verificación y diagnóstico

  • Registre versión/configuración antes de cambiar para poder revertir.
  • Compruebe UI y logs del backend después.
  • Si afecta a una sola cámara/plugin, aíslelo antes de cambios globales.
输入关键词开始搜索