I’m new to Home Assistant but have made some progress in configuring my smart home. However, I’ve encountered some devices that aren’t fully supported by ZHA, so I’ve decided to try Zigbee2MQTT.I’m currently running Home Assistant OS on a Raspberry Pi 5 with Sonoff E-dongle and following a video guide to set up Zigbee2MQTT. I’ve completed all the steps, but when I press “Start” on the add-on, the log is filled with repetitive errors:
INFO: Preparing to start...
ERROR: Something went wrong contacting the API
FATAL: A required add-on configuration option is missing!
FATAL: Please set a value for the 'data_path' option.
FATAL: If unsure, check the add-on manual for more information
I’m using the default data_path of /config/zigbee2mqtt. Here’s my current MQTT configuration:
I do have mosquitto mqtt add-on installed. I can´t figure out how this section of config is related to the data_path. mqtt: {}
And as far as i´ve understood from the oficial guide it can be left empty by default in case of mosquitto mqtt
If you are not using the Mosquitto broker add-on fill in your MQTT details (leave empty when using the Mosquitto broker add-on) under the mqtt section. [ source ]
I have amended ´serial:´ section to serial by ID. It does not seem relevant to my ERROR, however thanks for advise.
Where is the configuration file located in my installation? - I´m writing config through plugin interface, but can´t find where it is stored. I expected to find it in data_path /config/zigbee2mqtt but thre were no such folder created automatically.
What should the correct setting for the data_path option be if it differs from the default? Is my understanding correct that data_path is the same folder where config of addon is located ?
Ok, you’re using the add-on interface rather than config/zigbee2mqtt/configuration.yaml to configure it. That’s ok to get it going. But you will have to use either that file or the web interface to continue configuring it later.
I’m almost certain the data_path is not your issue. It’s the missing mqtt user details. Add it.
INFO: Preparing to start...
ERROR: Something went wrong contacting the API
FATAL: A required add-on configuration option is missing!
FATAL: Please set a value for the 'data_path' option.
FATAL: If unsure, check the add-on manual for more information
The second line indicates that the add-on has problems connecting to the supervisor (which is responsible for connecting your add-on settings from the frontend with the add-on logic running zigbee2mqtt.) Is there anything in the supervisor logs? You are running OS and not supervised, right?
I´ve opened a ticket on GithHub. Looks that the issue was solved with the addon version 1.42.0-2, at least for me.
However, the add-on still refused to start. Logs said that the ezsp firmware is deprecated and suggested to upgrade it to amber. Once was done, i was able to run the plug-in and add devices.
But! After restart newly added devices were gone! seems there appeared new issue with the version 1.42.0-2