Issues Integrating Frigate with Home Assistant OS via MQTT on TrueNAS Scale

Hi everyone,

I’m running TrueNAS Scale 24.10, with Home Assistant OS in a VM and the Frigate app installed directly through the TrueNAS Apps section. I’m trying to integrate Frigate with Home Assistant OS via MQTT, but I’m encountering issues where Home Assistant is unable to connect with Frigate.

Here’s my current setup:

Setup:

  • TrueNAS Scale 24.10
  • Home Assistant OS running in a VM with IP: http://192.168.1.81:8123/
  • Frigate app installed directly via the TrueNAS Apps section with IP: https://192.168.1.170:5000/
  • Frigate’s API is accessible via browser, so Frigate seems to be working fine on its own.

MQTT Configuration in Frigate:

In the Frigate app, I have the following MQTT configuration:

yaml

mqtt:
  enabled: true
  host: 192.168.1.81  # IP address of Home Assistant's MQTT broker
  port: 1883  # Default MQTT port
  topic_prefix: frigate
  client_id: frigate
  user: mqtt  # MQTT username
  password: [hidden]  # MQTT password

MQTT Configuration in Home Assistant (Mosquitto Add-on):

In Home Assistant, the MQTT configuration in the Mosquitto broker add-on is as follows:

yaml

logins:
  - username: mqtt
    password: [hidden]
    broker: 192.168.1.81
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem

Issue:

  • I can access Frigate’s Web UI (https://192.168.1.170:5000/) and Home Assistant UI (http://192.168.1.81:8123/) in my browser.
  • The problem seems to be with the MQTT integration as Home Assistant cannot establish the connection with Frigate.
  • I’m unsure if the issue is with the MQTT configuration or something else preventing the integration from working.

What I’ve checked so far:

  1. Both Frigate and Home Assistant are on the same local network.
  2. The MQTT username, password, and IP address are consistent across both platforms.
  3. I can access Frigate’s Web UI, and the camera streams seem fine.
  4. I can also access Home Assistant UI, and the Mosquitto broker is running.

Could anyone assist me with troubleshooting the MQTT connection, or if there is another configuration issue I may have missed?

Thank you in advance for your help!

1 Like

I am new to both TrueNAS and Frigate (though I am experienced in networking and various other software packages). I am having the same problem described by OP. The Frigate log continually prints out

ERROR   : Unable to publish to <whatever>: client is not connected

I have verified that the MQTT broker (mosquito in HA) is configured and operating correctly. In HA I can even add the Frigate integration and on the initial add it populates with all the correct entities, but it will not connect or update the entities after that. No other log errors that I’ve been able to catch.

Nevermind. Turns out I’m just an idiot. I fat fingered the host IP and missed it 300 consecutive times I checked the settings.