MQTT issue with Frigate and Home Assistant

So I have frigate running in a Docker container on a separate machine from my Home Assistant machine. I have MQTT setup in HA but I’m not sure where I’m going wrong on getting the Frigate machine to connect. The cameras show up in HA, but there doesn’t seem to be a connection to the MQTT broker from the Frigate machine.

This is what I have in my config.yml file for the frigate docker.

  enabled: True
  host:         <---Home Assistant machine's IP 
  port: 1883
  user:         <-- EMQX frigate user
  password:     <-- EMQX frigate user password

This is what I have in my frigate.yml in Home Assistant’s config directory.

mqtt:
  host: EMQX hostname
  user: EMQX frigate user
  password: EMQX  frigate password
  enabled: True

What am I doing wrong?

what are the logs?

2023-12-30 08:52:40.510477315 [2023-12-30 08:52:40] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected

frigate | 2023-12-30 08:52:45.086733929 192.168.0.5 - - [30/Dec/2023:08:52:45 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:52:54.093570699 192.168.0.5 - - [30/Dec/2023:08:52:54 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:03.090207078 192.168.0.5 - - [30/Dec/2023:08:53:03 -0700] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:12.093632848 192.168.0.5 - - [30/Dec/2023:08:53:12 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:21.091087743 192.168.0.5 - - [30/Dec/2023:08:53:21 -0700] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:30.094929742 192.168.0.5 - - [30/Dec/2023:08:53:30 -0700] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:39.097548364 192.168.0.5 - - [30/Dec/2023:08:53:39 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:44.218581157 [2023-12-30 08:53:44] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected

frigate | 2023-12-30 08:53:48.096817794 192.168.0.5 - - [30/Dec/2023:08:53:48 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:53:57.094789133 192.168.0.5 - - [30/Dec/2023:08:53:57 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:06.099517240 192.168.0.5 - - [30/Dec/2023:08:54:06 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:15.094653834 192.168.0.5 - - [30/Dec/2023:08:54:15 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:24.095746403 192.168.0.5 - - [30/Dec/2023:08:54:24 -0700] "GET /api/stats HTTP/1.1" 200 2122 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:33.093601848 192.168.0.5 - - [30/Dec/2023:08:54:33 -0700] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:42.097827922 192.168.0.5 - - [30/Dec/2023:08:54:42 -0700] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.12.4 aiohttp/3.9.1 Python/3.11" "-"

frigate | 2023-12-30 08:54:47.917966163 [2023-12-30 08:54:47] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected

What about logs of the mqtt broker?

There doesn’t appear to be any logs.