QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
380 stars 49 forks source link

Reolink Argus PT battery drain #298

Open DeckardCain2014 opened 2 months ago

DeckardCain2014 commented 2 months ago

Describe the bug When the addon is running, the camera shows usage time the whole time. This leads to massive battery drain as the connection is always active.

To Reproduce Config: [[cameras]] name = "Terrassenkamera" username = "admin" password = "xxxxx" uid = "xxxxx" discovery = "remote" idle_disconnect = true push_notifications = false bind = "0.0.0.0" bind_port = 8560 stream = "Main" [cameras.pause] on_motion = true # Should pause when no motion on_client = true # Should pause when no rtsp client timeout = 2.1 # How long to wait after motion stops before pausing

Expected behavior Camera pause on no motion and after timeout.

Versions NVR software: HomeAssistant Neolink Addon Neolink software: 0.6.2 Reolink camera model and firmware: Argus PT; v3.0.0.2508_23072620

djayfresh commented 1 month ago

@DeckardCain2014 the stream = "Main" doesn't do anything, here is the available options: mainStream|subStream|externStream|both|all

Hope you figure this out though, I'm having a similar issue with my Argus PT camera, but for me I just see Stream not Ready. It never recovers from idle

Config:

bind = "0.0.0.0"
bind_port = 8444

[mqtt]
broker_addr = "10.10.20.11" # Address of the mqtt server
port = 1883 # mqtt servers port
credentials = ["mqtt_user", "on6dHItTMrqf"] # mqtt server login details

[[cameras]]
name = "driveway"
username = "admin"
password = "xxxxxx"
uid = "xxxxx"
#discovery = "remote"
stream = "subStream"
splash_pattern = "black"
format = "h264"
push_notifications = false
idle_disconnect = true
[cameras.pause]
  on_motion = true # Should pause when no motion
  on_client = true # Should pause when no rtsp client
  timeout = 20.1 # How long to wait after motion stops before pausing
[cameras.mqtt]
  enable_motion = true # motion detection
  enable_light = true # flood lights only available on some camera
  enable_battery = true # battery updates in `/status/battery_level`
  enable_preview = true # preview image in `/status/preview`
  enable_floodlight = false # preview image in `/status/floodlight_tasks`
  battery_update = 10000 # Number of ms between `/status/battery_level` updates
  preview_update = 10000 # Number of ms between `/status/preview` updates
  floodlight_update = 10000 # Number of ms between `/status/floodlight_tasks` updates
[cameras.mqtt.discovery]
  topic = "homeassistant"
  features = ["floodlight","motion","ir","camera"]