You write "jails", so I assume you are running TrueNAS CORE now and not TrueNAS SCALE? TrueNAS CORE is FreeBSD based and does not have a native Home Assistant implementation. You will probably have to install HA in a VM. Create e.g. a Ubuntu VM and use docker compose to deploy.