frigate-hass-integration: HA errors : Error fetching information from http://192.168.2.6:5000/api/stats: [Errno 104] Connection reset by peer (r13 rc1)
Getting these errors in HA. Any guidance on what needs to be fixed?
Error fetching frigate data:
7:42:29 AM – (ERROR) Frigate (custom integration) - message first occurred at January 11, 2024 at 7:30:28 PM and shows up 980 times
Error fetching information from http://192.168.2.6:5000/api/stats: [Errno 104] Connection reset by peer
7:42:29 AM – (ERROR) Frigate (custom integration) - message first occurred at January 11, 2024 at 7:30:28 PM and shows up 1029 times
Running: frigate: 0.13.0-49814b3 frigate integration: v5.0.0-rc1 HA: Core 2024.1.2 Supervisor 2023.12.0 Operating System 11.4 Frontend 20240104.0
mqtt:
enabled: true
host: 192.168.30.21
user: mqtt_user
topic_prefix: frigate
client_id: frigate
password: PW
port: 1883
stats_interval: 300
detectors:
coral:
type: edgetpu
device: usb
snapshots:
enabled: true
timestamp: false
bounding_box: true
required_zones:
- driveway_zone
- doorbell_zone
- porch_zone
# crop: true
# height: 500
retain:
default: 30
go2rtc:
streams:
doorbell:
- "ffmpeg:http://192.168.30.40/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=PW#video=copy#audio=copy#audio=opus#timeout=5"
doorbell_sub:
- "ffmpeg:http://192.168.30.40/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=PW#timeout=5"
driveway:
# - rtsp://camadmin:PW@192.168.30.41:554/stream1
- rtsp://camadmin:PW@192.168.30.43:554/stream1
- "ffmpeg:driveway#audio=aac#timeout=5"
driveway_sub:
#- rtsp://camadmin:PW@192.168.30.41:554/stream2
- rtsp://camadmin:PW@192.168.30.43:554/stream2
- "#timeout=5"
porch:
- rtsp://camadmin:PW@192.168.30.44:554/stream1
- "ffmpeg:porch#audio=aac#timeout=5"
porch_sub:
- rtsp://camadmin:PW@192.168.30.44:554/stream2
- "#timeout=5"
webrtc:
candidates:
- 192.168.2.6:8555
- stun:8555
rtmp:
enabled: false
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: true
mode: continuous
width: 1920
height: 1080
restream: true
quality: 1
detect:
enabled: true
width: 640
height: 480
fps: 5
record:
sync_recordings: true
enabled: true
retain:
days: 30
mode: all
events:
pre_capture: 5
post_capture: 5
retain:
mode: active_objects
default: 30
required_zones:
- driveway_zone
- doorbell_zone
- porch_zone
objects:
track:
- person
- cat
- car
- truck
- bear
- horse
- dog
- motorcycle
- bicycle
- umbrella
- cow
- sheep
- animal
filters:
person:
threshold: 0.74
car:
threshold: 0.74
min_area: 10000
sheep:
min_area: 500
ffmpeg:
#hwaccel_args: preset-intel-qsv-h264
hwaccel_args: preset-vaapi
input_args: preset-rtsp-restream
output_args:
record: preset-record-generic-audio-aac
cameras:
doorbell:
birdseye:
order: 2
enabled: true
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/doorbell?video=copy&audio=aac
roles:
- record
- path: rtsp://127.0.0.1:8554/doorbell_sub?video=copy
roles:
- detect
detect:
enabled: true
width: 896
height: 672
fps: 5
zones:
doorbell_zone:
coordinates: 502,455,822,595,783,672,264,672,287,418,359,413,429,445
driveway_zone:
coordinates: 618,393,870,410,875,326,896,329,896,415,833,581,501,445,496,413
motion:
mask:
- 896,0,896,36,515,35,515,0
# - 896,0,896,275,845,279,836,390,603,378,427,394,350,393,289,394,207,388,209,191,256,0
record:
enabled: true
retain:
days: 30
mode: all
live:
stream_name: doorbell
driveway:
birdseye:
order: 3
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/driveway
roles:
- record
- path: rtsp://127.0.0.1:8554/driveway_sub
roles:
- detect
detect:
enabled: true
width: 1280 #640
height: 720 #360
fps: 5
zones:
driveway_zone:
coordinates: 979,720,123,720,31,569,348,316,560,214,1032,270,1018,499
#coordinates: 640,165,640,360,154,360,0,360,0,273,150,167,261,110,390,119,503,126
doorbell_zone:
coordinates: 26,545,0,517,0,459,166,332,203,317,237,323,281,348
#coordinates: 0,252,0,187,22,164,59,170,101,182
motion:
threshold: 220
mask:
- 0,0,425,0,430,34,0,39
#- 0,0,230,0,229,22,0,21
# - 640,0,640,130,296,97,219,94,153,97,34,109,0,143,0,0
record:
enabled: true
retain:
days: 30
mode: all
live:
stream_name: driveway
porch:
birdseye:
order: 1
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/porch
roles:
- record
- path: rtsp://127.0.0.1:8554/porch_sub
roles:
- detect
detect:
enabled: true
width: 1280 #640
height: 720 #360
fps: 5
zones:
porch_zone:
coordinates: 1228,338,916,267,530,241,227,436,330,568,533,720,1139,720
#coordinates: 610,249,443,222,236,185,63,277,124,360,596,360
objects:
- person
- cat
- bear
- horse
- dog
- motorcycle
- bicycle
- umbrella
- cow
- sheep
- animal
doorbell_zone:
coordinates: 574,232,649,191,1018,172,1243,218,1232,325,961,268
driveway_zone:
coordinates: 1022,71,1235,106,1237,205,1012,163
motion:
mask:
- 0,0,427,0,425,36,0,39
# - 0,0,236,0,233,22,0,26
# - 586,0,595,88,459,87,370,103,321,132,224,183,0,305,0,0
- 321,555,419,477,524,605,434,678
- 775,275,899,319,750,472,610,406
- 833,190,802,150,752,155,697,178,649,190,639,254,747,296,845,251
record:
enabled: true
retain:
days: 30
mode: all
live:
stream_name: porch
birdseye_record:
enabled: true
birdseye:
enabled: false
order: 4
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/birdseye
roles:
- record
detect:
enabled: false
record:
enabled: true
retain:
days: 30
mode: all
live:
stream_name: birdseye_record
# Optional: Motion configuration
# NOTE: Can be overridden at the camera level
motion:
# Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
# Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
# The value should be between 1 and 255.
threshold: 40
# Optional: The percentage of the image used to detect lightning or other substantial changes where motion detection
# needs to recalibrate. (default: shown below)
# Increasing this value will make motion detection more likely to consider lightning or ir mode changes as valid motion.
# Decreasing this value will make motion detection more likely to ignore large amounts of motion such as a person approaching
# a doorbell camera.
lightning_threshold: 0.8
# Optional: Minimum size in pixels in the resized motion image that counts as motion (default: shown below)
# Increasing this value will prevent smaller areas of motion from being detected. Decreasing will
# make motion detection more sensitive to smaller moving objects.
# As a rule of thumb:
# - 10 - high sensitivity
# - 30 - medium sensitivity
# - 50 - low sensitivity
contour_area: 30
# Optional: Alpha value passed to cv2.accumulateWeighted when averaging frames to determine the background (default: shown below)
# Higher values mean the current frame impacts the average a lot, and a new object will be averaged into the background faster.
# Low values will cause things like moving shadows to be detected as motion for longer.
# https://www.geeksforgeeks.org/background-subtraction-in-an-image-using-concept-of-running-average/
frame_alpha: 0.01
# Optional: Height of the resized motion frame (default: 100)
# Higher values will result in more granular motion detection at the expense of higher CPU usage.
# Lower values result in less CPU, but small changes may not register as motion.
frame_height: 100
# Optional: motion mask
# NOTE: see docs for more detailed info on creating masks
# mask: 0,900,1080,900,1080,1920,0,1920
# Optional: improve contrast (default: shown below)
# Enables dynamic contrast improvement. This should help improve night detections at the cost of making motion detection more sensitive
# for daytime.
improve_contrast: true
# Optional: Delay when updating camera motion through MQTT from ON -> OFF (default: shown below).
#mqtt_off_delay: 30
ui:
# Optional: Set the default live mode for cameras in the UI (default: shown below)
live_mode: mse
# Optional: Set a timezone to use in the UI (default: use browser local time)
timezone: America/Los_angeles
# Optional: Use an experimental recordings / camera view UI (default: shown below)
use_experimental: false
# Optional: Set the time format used.
# Options are browser, 12hour, or 24hour (default: shown below)
# time_format: browser
# Optional: Set the date style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 2/11/23
# medium: Feb 11, 2023
# full: Saturday, February 11, 2023
# (default: shown below).
date_style: short
# Optional: Set the time style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 8:14 PM
# medium: 8:15:22 PM
# full: 8:15:22 PM Mountain Standard Time
# (default: shown below).
time_style: medium
# Optional: Ability to manually override the date / time styling to use strftime format
# https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
# possible values are shown above (default: not set)
strftime_fmt: '%Y/%m/%d %H:%M'
# Optional: Telemetry configuration
telemetry:
# Optional: Enable the latest version outbound check (default: shown below)
# NOTE: If you use the HomeAssistant integration, disabling this will prevent it from reporting new versions
version_check: true
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 1
- Comments: 18
Are you hosting HAOS on a VM? We have similar setups. I’m hosting mine via cockpit-machine installed on Ubuntu-Server. Which Frigate is installed via docker on the same server.
Are you on Synology? If so by default port 5000 is used by DSM. Turn it off or move Frigate to another port.
[edit] never mind, you have VM on Ubuntu.