neolink
neolink copied to clipboard
Neolink does not connect to MQTT broker. WARN: Connection Lost: Dropped connection
Describe the bug MQTT is not working. Just downloaded a fresh file for today's date. Both Home Assistant and MQTT broker are updated to the current version.
To Reproduce Steps to reproduce the behavior. Example:
- Create this configuration file:
bind = "10.2.90.202"
bind_port = 8555
[mqtt]
broker_addr = "10.2.90.8"
port = 1883
credentials = ["superuser", "superpass"]
[[cameras]]
name = "ArgusVanna"
username = "admin"
password = "ReolinkPass"
uid = "952700*****REP"
- Launch Neolink:
- We see the error "WARN"
Expected behavior I expected that it would connect via MQTT and entities would appear
Versions Neolink software: neolink_linux_x86_64_bookworm Reolink camera model and firmware: Reolink Argus 2E, build 21061601, BIPC_36S7616MC94, v2.0.0.0, firmware 0616_722_52_478
root@Zabbix:~/neolink# ./neolink mqtt --config=neolink.toml
[2024-07-02T18:18:52Z INFO neolink] Neolink 459c9255ada7ebda281eba32a8a9b94a30c471f0 release
[2024-07-02T18:18:52Z INFO neolink::mqtt] ArgusVanna: MQTT Staring
[2024-07-02T18:18:52Z INFO neolink::utils] ArgusVanna: Connecting to camera at UID: 95270003X0IZJREP
[2024-07-02T18:18:52Z INFO neolink_core::bc_protocol] ArgusVanna: Trying local discovery
[2024-07-02T18:18:52Z INFO neolink_core::bc_protocol] ArgusVanna: Local discovery success 95270003X0IZJREP at 10.2.90.43:41907
[2024-07-02T18:18:52Z INFO neolink::utils] ArgusVanna: Logging in
[2024-07-02T18:18:52Z INFO neolink::utils] ArgusVanna: Connected and logged in
[2024-07-02T18:18:55Z INFO neolink::common::camthread] ArgusVanna: Camera time is already set: 2024-07-02 21:18:57.0 -03:00:00
[2024-07-02T18:18:58Z INFO neolink::common::neocam] ArgusVanna: Model Reolink Argus 2E
[2024-07-02T18:18:58Z INFO neolink::common::neocam] ArgusVanna: Firmware Version 0616_722_52_478
[2024-07-02T18:19:10Z WARN neolink::common::camthread] ArgusVanna: Connection Lost: Dropped connection
[2024-07-02T18:19:10Z INFO neolink::common::camthread] ArgusVanna: Attempt reconnect in 50ms
[2024-07-02T18:19:10Z INFO neolink::utils] ArgusVanna: Connecting to camera at UID: 95270003X0IZJREP
[2024-07-02T18:19:10Z INFO neolink_core::bc_protocol] ArgusVanna: Trying local discovery
[2024-07-02T18:19:10Z INFO neolink_core::bc_protocol] ArgusVanna: Local discovery success 95270003X0IZJREP at 10.2.90.43:41907
[2024-07-02T18:19:10Z INFO neolink::utils] ArgusVanna: Logging in
[2024-07-02T18:19:11Z INFO neolink::utils] ArgusVanna: Connected and logged in
[2024-07-02T18:19:13Z INFO neolink::common::camthread] ArgusVanna: Camera time is already set: 2024-07-02 21:19:15.0 -03:00:00
[2024-07-02T18:19:24Z WARN neolink::common::camthread] ArgusVanna: Connection Lost: Dropped connection
[2024-07-02T18:19:24Z INFO neolink::common::camthread] ArgusVanna: Attempt reconnect in 100ms
[2024-07-02T18:19:24Z INFO neolink::utils] ArgusVanna: Connecting to camera at UID: 95270003X0IZJREP
[2024-07-02T18:19:24Z INFO neolink_core::bc_protocol] ArgusVanna: Trying local discovery
[2024-07-02T18:19:24Z INFO neolink_core::bc_protocol] ArgusVanna: Local discovery success 95270003X0IZJREP at 10.2.90.43:41907
[2024-07-02T18:19:24Z INFO neolink::utils] ArgusVanna: Logging in
[2024-07-02T18:19:25Z INFO neolink::utils] ArgusVanna: Connected and logged in
[2024-07-02T18:19:27Z INFO neolink::common::camthread] ArgusVanna: Camera time is already set: 2024-07-02 21:19:29.0 -03:00:00
MQTT brocker in HomeAssistant log:
2024-07-02 21:14:34: New connection from 172.30.32.2:58192 on port 1883.
2024-07-02 21:14:34: Client <unknown> closed its connection.
2024-07-02 21:16:34: New connection from 172.30.32.2:44750 on port 1883.
2024-07-02 21:16:34: Client <unknown> closed its connection.
2024-07-02 21:18:34: New connection from 172.30.32.2:53196 on port 1883.
2024-07-02 21:18:34: Client <unknown> closed its connection.
2024-07-02 21:18:40: Client NeolinkLastWill_neolink/ArgusVanna/status/motion closed its connection.
2024-07-02 21:18:40: Client NeolinkLastWill_neolink/ArgusVanna/status closed its connection.
2024-07-02 21:18:40: Client Neolink closed its connection.
2024-07-02 21:18:52: New connection from 10.2.90.202:53250 on port 1883.
2024-07-02 21:18:52: New client connected from 10.2.90.202:53250 as Neolink (p2, c1, k5, u'baguser').
2024-07-02 21:18:52: Client Neolink closed its connection.
2024-07-02 21:18:52: New connection from 10.2.90.202:53254 on port 1883.
2024-07-02 21:18:52: New connection from 10.2.90.202:53302 on port 1883.
2024-07-02 21:18:52: New connection from 10.2.90.202:53372 on port 1883.
2024-07-02 21:18:52: New client connected from 10.2.90.202:53254 as NeolinkLastWill_neolink/ArgusVanna/status (p2, c1, k5, u'baguser').
2024-07-02 21:18:52: New client connected from 10.2.90.202:53302 as NeolinkLastWill_neolink/ArgusVanna/status/motion (p2, c1, k5, u'baguser').
2024-07-02 21:18:52: New client connected from 10.2.90.202:53372 as Neolink (p2, c1, k5, u'baguser').
2024-07-02 21:19:32: Client Neolink closed its connection.
2024-07-02 21:19:32: Client NeolinkLastWill_neolink/ArgusVanna/status/motion closed its connection.
2024-07-02 21:19:32: Client NeolinkLastWill_neolink/ArgusVanna/status closed its connection.
2024-07-02 21:20:34: New connection from 172.30.32.2:33690 on port 1883.
Dropped connection is kindof my catchall for any sort of pipe that gets dropped, I will need more specifics to know which one actually caused this. I will make a build that prints something different for the different places a pipe can be dropped
Here this build, https://github.com/QuantumEntangledAndy/neolink/actions/runs/10216051705, should differentiate the different types of dropped connections so I can tell what is happening