Setting up MQTT for Home Assistant integration #21871
Replies: 3 comments 1 reply
|
Based on your configuration, I can see that MQTT is enabled in your Frigate config with The issue is likely related to network connectivity between your Frigate container and the Mosquitto broker. Since you're running containers on a QNAP NAS, you need to ensure Frigate can reach the MQTT broker at Here are the key configuration requirements for MQTT in Frigate(1): mqtt:
enabled: True
host: mqtt.server.com
port: 1883
topic_prefix: frigate
client_id: frigate
user: mqtt_user
password: passwordFor the Home Assistant integration to function properly, MQTT must be enabled in your Frigate configuration file and Frigate must be connected to the same MQTT server as Home Assistant(2). The Frigate integration requires the Troubleshooting steps:
If you're running Frigate as a standard Docker container (not as a Home Assistant Add-on), the integration URL should be 📚 Sources:
Have another question? Just tag @inkeep. |
|
The issue you're experiencing is that Frigate cannot connect to your Mosquitto broker, even though Home Assistant can connect successfully. The unavailable sensors indicate that MQTT communication between Frigate and Mosquitto is not established. Проверка сетевого соединения между контейнерами: Чтобы проверить сетевое соединение между контейнерами Frigate и Mosquitto, выполните следующие действия:
Типичные причины проблемы: Судя по предоставленным скриншотам и похожим случаям, проблема может быть связана с:
Рекомендации по устранению: Попробуйте изменить конфигурацию MQTT в Frigate: mqtt:
enabled: true
host: mosquitto # Используйте имя контейнера вместо IP
port: 1883
user: homeassistant
password: mqtt
topic_prefix: frigate
client_id: frigateЕсли контейнеры находятся в одной сети Docker, использование имени контейнера ( Также включите отладочное логирование для MQTT в конфигурации Frigate: logger:
default: info
logs:
frigate.mqtt: debug
frigate.comms: debugЭто поможет увидеть более подробную информацию о попытках подключения в логах Frigate. 📚 Sources:
Have another question? Just tag @inkeep. |
|
I won, I launched mosquitto in a container along with frigate, with a simple configuration without a password and user |




Uh oh!
There was an error while loading. Please reload this page.
Hello, the mqtt setting in the frigate configuration does not affect the connection. I don't see any errors, and there is no information in the frigate or mosquitto logs. Three containers are running on a QNAP NAS.




Mosquitto logs only show Home Assistant
All reactions