Frigate invalid host

Get Frigate working but not the mqtt part.

Getting everytime
frigate.comms.mqtt ERROR : Unable to connect to MQTT server: Invalid host.
strange thing using the same password and username as my HA-agent on the pc. and info to pc and receiving is working correctly.

To be able to get notification to work, first need this to work

what is your mqtt config?

getting a bit further whit it in the mean time.
even if it does not ask at it on the site of frigate, but needed to fit host also in. atleast that error seems to be gone if i see correct.
but the next one stay there
Unable to publish to stats: client is not connected

@crzynik

mqtt:
  host: http://homeassistant.local:8123/
  user: wvr broker
  password: xxxxxxxx

cameras:
  slaapkamer:
    ffmpeg:
      inputs:
        - path: rtsp://werner:[email protected]:88/videoMain  
          roles:
            - detect
            - record
    detect:
      width: 640
      height: 480
      fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 2
    record:
      enabled: True
      events:
        retain:
          default: 10        

well there’s your problem, you’re trying to give it the home assistant frontend as the mqtt host which is incorrect. It also should not include the protocol

it should be host: ha_ip

tried

host: ha_ip:1883
host: mqtt://core-mosquitto:1883
host: 192.168.68.52:8123
host: 192.168.68.52:1883

whit all them I don’t get the first message only the next one.

2023-08-08 17:02:10.038871636  [2023-08-08 19:02:10] frigate.comms.mqtt             ERROR   : Unable to publish to slaapkamer/all: client is not connected

snippet from my code

mqtt:
enabled: True
host: [ip address]
port: 1883

Thanks, unknow how and why but whit this and swapping to other username and password I have.
Suddenly it works.

now on the hund to get also image to my phone when object is found. Than time limit, because now I get 4x message that object has been found.

First job today was getting frigate working. and than the other thing was getting notification working.

After similar connection issue like above, I separated port from host and can confirm this helped in my case:

mqtt:
enabled: True
host: core-mosquitto
port: 1883
user: XXXXXXX
password: YYYYYY