how to get mqtt connect with HomeAssistant #11439
-
Describe the problem you are havingI cant get mqtt to work, please help. Thank you Version0.13.2-6476F8A Frigate config file# ~/docker/frigate/config.yml
# yaml-language-server: $schema=http://10.13.2.217:5000/api/config/schema.json
ui:
use_experimental: true
live_mode: jsmpeg
record:
expire_interval: 30
# Only enable this if you are using GPU pass-through with Intel GPUs
#ffmpeg:
# hwaccel_args: preset-vaapi
# Only enable the detector if you are using coral PCIe passthrough
detectors:
# coral2:
# type: edgetpu
# device: usb
coral:
type: edgetpu
device: pci
logger:
default: info
rtmp:
enabled: false
live:
height: 2160
quality: 6
birdseye:
restream: true
mode: continuous
go2rtc:
streams:
parking:
- rtsp://admin:DungHong0622@192.168.0.183:554/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: parking audio=opus'
parking_sub:
- rtsp://admin:xxxxxxxxxxxxxx@192.168.0.183:554/cam/realmonitor?channel=1&subtype=0
front-door:
- rtsp://admin:xxxxxxxxxxxx@192.168.0.162:554/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: front-door audio=opus'
front-door_sub:
- rtsp://admin:xxxxxxxxxxxxx@192.168.0.162:554/cam/realmonitor?channel=1&subtype=0
backyard:
- rtsp://admin:xxxxxxxxxxxxx@192.168.0.102:554/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: backyard audio=opus'
backyard_sub:
- rtsp://admin:DungHong0622@192.168.0.102:554/cam/realmonitor?channel=1&subtype=0
frontshed:
- rtsp://admin:DungHong0622@192.168.0.203:544/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: frontshed audio=opus'
frontshed_sub:
- rtsp://admin:xxxxxxxxxxxxxx@192.168.0.203:554/cam/realmonitor?channel=1&subtype=0
shedside:
- rtsp://admin:xxxxxxxxxxxxx@192.168.0.126:554/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: shedside audio=opus'
shedside_sub:
- rtsp://admin:xxxxxxxxxxxxx@192.168.0.126:554/cam/realmonitor?channel=1&subtype=0
front_shed_door:
- rtsp://admin:xxxxxxxxxxxxx@192.168.0.235:554/cam/realmonitor?channel=1&subtype=1
- 'ffmpeg: front_shed_door audio=opus'
front_shed_door_sub:
- rtsp://admin:xxxxxxxxxxxx@192.168.0.235:554/cam/realmonitor?channel=1&subtype=0
webrtc:
candidates:
- 192.168.0.162:8555
- 192.158.0.183:8555
- 192.168.0.102:8555
- 192.168.0.220:8555
- 192.168.0.203:8555
- 192.168.0.235:8555
#- stun:8555
mqtt:
enabled: true
host: core-mosquitto:1883
topic_prefix: frigate
client_id: frigate
user: xxxxxxxxx
password: xxxxxxxxx
cameras:
parking:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxxx@192.168.0.183:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxxxx@192.168.0.183:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
#- car
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 4000
dog:
min_score: 0.8
threshold: 0.5
min_area: 4000
cat:
min_score: 0.8
threshold: 0.5
min_area: 4000
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 59
post_capture: 60
motion:
mask:
- 609,0,257,0,261,69,609,61
zones:
zone_0:
coordinates: 504,480,640,409,520,427,478,126
zone_1:
coordinates: 166,435,513,480,545,392,213,331
zone_2:
coordinates: 257,117,158,384,266,401,335,110
zone_3:
coordinates: 194,322,146,452,0,399,32,274
front-door:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxxx@192.168.0.162:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxxxx@192.168.0.162:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 700
dog:
min_score: 0.8
threshold: 0.5
min_area: 700
cat:
min_score: 0.8
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 59
post_capture: 60
motion:
mask:
- 619,0,318,0,326,56,613,56
backyard:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxx@192.168.0.102:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxxx@192.168.0.102:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 700
dog:
min_score: 0.8
threshold: 0.5
min_area: 700
cat:
min_score: 0.8
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 59
post_capture: 60
motion:
mask:
- 359,61,359,0,616,0,614,59
shedside:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxxx@192.168.0.126:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxxx@192.168.0.126:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 700
dog:
min_score: 0.8
threshold: 0.5
min_area: 700
cat:
min_score: 0.8
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 59
post_capture: 60
motion:
mask:
- 241,66,230,21,608,0,608,64
zones:
zone_0:
coordinates: 459,0,461,248,229,251,246,0
zone_1:
coordinates: 551,480,210,480,226,262,522,274
frontshed:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxxx@192.168.0.203:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxxxxx@192.168.0.203:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 700
dog:
min_score: 0.8
threshold: 0.5
min_area: 700
cat:
min_score: 0.8
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 59
post_capture: 60
motion:
mask:
- 447,50,441,0,617,0,640,56
front_shed_door:
ffmpeg:
inputs:
- path: rtsp://admin:xxxxxxxxxxxxxxx@192.168.0.235:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://admin:xxxxxxxxxx@192.168.0.235:554/cam/realmonitor?channel=1&subtype=1
input_args: preset-rtsp-restream
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
# - car
- dog
- cat
filters:
person:
min_score: 0.8
threshold: 0.5
min_area: 700
dog:
min_score: 0.8
threshold: 0.5
min_area: 700
cat:
min_score: 0.8
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 500
retain:
default: 30
record:
enabled: true
retain:
days: 30
mode: active_objects
events:
retain:
default: 30
mode: active_objects
pre_capture: 60
post_capture: 60
motion:
mask:
- 441,56,436,0,640,0,640,55 Relevant log output2024-05-20 04:41:06.041977934 [INFO] Preparing Frigate...
2024-05-20 04:41:06.056036547 [INFO] Starting Frigate...
2024-05-20 04:41:06.958655907 [2024-05-20 04:41:06] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-05-20 04:41:07.024187470 [2024-05-20 04:41:07] peewee_migrate.logs INFO : Starting migrations
2024-05-20 04:41:07.027342832 [2024-05-20 04:41:07] peewee_migrate.logs INFO : There is nothing to migrate
2024-05-20 04:41:07.030535507 [2024-05-20 04:41:07] frigate.app INFO : Recording process started: 298
2024-05-20 04:41:07.032048297 [2024-05-20 04:41:07] frigate.app INFO : go2rtc process pid: 95
2024-05-20 04:41:07.047787274 [2024-05-20 04:41:07] detector.coral INFO : Starting detection process: 308
2024-05-20 04:41:07.047973194 [2024-05-20 04:41:07] frigate.app INFO : Output process started: 310
2024-05-20 04:41:07.073533484 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for parking: 320
2024-05-20 04:41:07.077396662 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for front-door: 322
2024-05-20 04:41:07.081104069 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for backyard: 324
2024-05-20 04:41:07.087602577 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for shedside: 327
2024-05-20 04:41:07.091642476 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for frontshed: 329
2024-05-20 04:41:07.092247896 [2024-05-20 04:41:07] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci
2024-05-20 04:41:07.096767872 [2024-05-20 04:41:07] frigate.app INFO : Camera processor started for front_shed_door: 342
2024-05-20 04:41:07.096772079 [2024-05-20 04:41:07] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-05-20 04:41:07.100679094 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for parking: 343
2024-05-20 04:41:07.104821070 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for front-door: 346
2024-05-20 04:41:07.108643311 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for backyard: 349
2024-05-20 04:41:07.113412348 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for shedside: 355
2024-05-20 04:41:07.117531911 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for frontshed: 364
2024-05-20 04:41:07.122211927 [2024-05-20 04:41:07] frigate.app INFO : Capture process started for front_shed_door: 366
2024-05-20 04:41:08.851755028 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to parking/all: client is not connected
2024-05-20 04:41:08.851759388 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:41:08.858530460 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to zone_0/all: client is not connected
2024-05-20 04:41:08.859217607 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to zone_1/all: client is not connected
2024-05-20 04:41:08.860853174 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to zone_2/all: client is not connected
2024-05-20 04:41:08.861049804 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to zone_3/all: client is not connected
2024-05-20 04:41:08.957815511 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to backyard/all: client is not connected
2024-05-20 04:41:08.957819388 [2024-05-20 04:41:08] frigate.comms.mqtt ERROR : Unable to publish to backyard/motion: client is not connected
2024-05-20 04:41:09.098284063 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to shedside/all: client is not connected
2024-05-20 04:41:09.098287580 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to shedside/motion: client is not connected
2024-05-20 04:41:09.098288752 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to zone_0/all: client is not connected
2024-05-20 04:41:09.098312538 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to zone_1/all: client is not connected
2024-05-20 04:41:09.464022996 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to frontshed/all: client is not connected
2024-05-20 04:41:09.464026252 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to frontshed/motion: client is not connected
2024-05-20 04:41:09.566990615 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/all: client is not connected
2024-05-20 04:41:09.566994223 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:41:09.734948262 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to front-door/all: client is not connected
2024-05-20 04:41:09.736713088 [2024-05-20 04:41:09] frigate.comms.mqtt ERROR : Unable to publish to front-door/motion: client is not connected
2024-05-20 04:41:53.075386339 [2024-05-20 04:41:53] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:41:55.692612021 [2024-05-20 04:41:55] frigate.comms.mqtt ERROR : Unable to publish to frontshed/motion: client is not connected
2024-05-20 04:41:57.482055130 [2024-05-20 04:41:57] frigate.comms.mqtt ERROR : Unable to publish to backyard/motion: client is not connected
2024-05-20 04:42:00.736282858 [2024-05-20 04:42:00] frigate.comms.mqtt ERROR : Unable to publish to shedside/motion: client is not connected
2024-05-20 04:42:02.660780061 [2024-05-20 04:42:02] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:42:03.351951277 [2024-05-20 04:42:03] frigate.comms.mqtt ERROR : Unable to publish to front-door/motion: client is not connected
2024-05-20 04:42:17.357605533 [2024-05-20 04:42:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:42:45.095088746 [2024-05-20 04:42:45] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:43:15.467721607 [2024-05-20 04:43:15] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:43:17.369199963 [2024-05-20 04:43:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:44:17.380795815 [2024-05-20 04:44:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:44:55.853883470 [2024-05-20 04:44:55] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:44:56.103833499 [2024-05-20 04:44:56] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:45:17.398298409 [2024-05-20 04:45:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:45:26.073038717 [2024-05-20 04:45:26] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:46:10.158271324 [2024-05-20 04:46:10] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:46:17.415022986 [2024-05-20 04:46:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:47:17.426688560 [2024-05-20 04:47:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:47:24.830417197 [2024-05-20 04:47:24] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:47:41.694378829 [2024-05-20 04:47:41] frigate.comms.mqtt ERROR : Unable to publish to backyard/motion: client is not connected
2024-05-20 04:47:47.253623883 [2024-05-20 04:47:47] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:47:57.560359783 [2024-05-20 04:47:57] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:48:11.909792536 [2024-05-20 04:48:11] frigate.comms.mqtt ERROR : Unable to publish to backyard/motion: client is not connected
2024-05-20 04:48:17.267060948 [2024-05-20 04:48:17] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:48:17.445249589 [2024-05-20 04:48:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:48:26.455110271 [2024-05-20 04:48:26] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:48:56.449643695 [2024-05-20 04:48:56] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:49:14.661702743 [2024-05-20 04:49:14] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:49:17.456780465 [2024-05-20 04:49:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:49:47.537656973 [2024-05-20 04:49:47] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:49:53.802043320 [2024-05-20 04:49:53] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:50:04.092568121 [2024-05-20 04:50:04] frigate.comms.mqtt ERROR : Unable to publish to frontshed/motion: client is not connected
2024-05-20 04:50:17.473697224 [2024-05-20 04:50:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2024-05-20 04:50:21.108927034 [2024-05-20 04:50:21] frigate.comms.mqtt ERROR : Unable to publish to parking/motion: client is not connected
2024-05-20 04:50:34.892950592 [2024-05-20 04:50:34] frigate.comms.mqtt ERROR : Unable to publish to frontshed/motion: client is not connected
2024-05-20 04:50:37.054303906 [2024-05-20 04:50:37] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:51:07.251184458 [2024-05-20 04:51:07] frigate.comms.mqtt ERROR : Unable to publish to front_shed_door/motion: client is not connected
2024-05-20 04:51:17.485887590 [2024-05-20 04:51:17] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected Frigate statsNo response Operating systemHassOS Install methodDocker Compose Coral versionPCIe Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
NickM-27
May 20, 2024
Replies: 1 comment
-
You should not be including the port in the host definition |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vietxtlife
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should not be including the port in the host definition