Zigbee2MQTT can't get past onboarding

I’m trying to convert from ZHA to Z2M and I’m getting stuck. I got a 2nd dongle for Z2M, a Sonoff MG24. I have MQTT up and running for some other stuff already. I added the repo for Z2M and installed no prob there. Went through onboarded picked the sonoff, put in my mqtt broker info, submit and Z2M quits. I check out the logs and only error I have is

error: z2m: MQTT failed to connect, exiting... (ENOENT: no such file or directory, open 'fullchain.pem')

I’m using a user name and password but not SSL for MQTT.

I’ve already tried:

  • deleting Z2M
  • deleting ZHA
  • deleting MQTT addon and integration
  • reinstalling with default configs, no mqtt user/pw

No luck getting rid of this error. I’ve also been playing around with trying to skip onboarding using environment variables, force_onboarding: false or Z2M_ONBOARD_NO_SERVER: true. Both options still gave me onboarding. The Z2M_ONBOARD_NO_SERVER: true gets deleted from the config after I start Z2M. So maybe I’m doing it wrong or it’s not supported on HA?

Got it fixed.

  • goto add-ons, shutdown Z2M
  • on config tab / options / hit 3 dots - edit in YAML - delete key and cert entries.
  • open file editor, open /homeassistant/zigbee2mqtt/configuration.yaml
  • under the mqtt: section delete both key and cert lines
  • restart Z2M and complete onboarding

Hi, good that you solved it yourself!

Also: please take the time to mark the post that holds the answer.
You do that by selecting the three dots under the post:

image

Then select the check box:

image
By doing so:

  • this thread can be useful to other users as well (this thread comes up as solution when starting a thread which is similar to yours).
  • this prevents that someone else steps in trying to help

Thanks for giving back to the community! :+1:

1 Like