Connect z2m to local mqtt

Hi All,

My raspberry running dietpi (debian 11) with mosquitto broker and supervised homeassistant. In the homeassitant I added mqtt integration, and it connected to my local mqtt broker, no issue. But now I’m trying to install z2m, and it’s showing this

Zigbee2MQTT:info  2022-12-02 19:02:56: Connecting to MQTT server at mqtt://127.0.0.1
Zigbee2MQTT:error 2022-12-02 19:02:56: MQTT error: connect ECONNREFUSED 127.0.0.1:1883
Zigbee2MQTT:error 2022-12-02 19:02:56: MQTT failed to connect, exiting..

z2m config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  server: mqtt://127.0.0.1
serial:
  port: /dev/ttyACM0
  adapter: ezsp

Broker has no login/pass, it’s just my local machine.

Any suggestions appreciated! I’ve spend few hours trying to solve this with no result…

Thanks!

Hi @Pavel-Demidyuk have you solved the problem? How?
Thanks!