I installed a new HA this morning, after many tests in my pervious one.
It is installed as Debian + HA, and soon after the HA installation, I tried to install MQTT and Zigbee2MQTT.
MQTT seens to start with no problems, but Z2M not (but is possible the problem is on MQTT). When I start the Z2M I see this error message:
TypeError: Cannot read properties of undefined (reading ‘mqtt’)
at read (/app/lib/util/settings.ts:326:11)
at getInternalSettings (/app/lib/util/settings.ts:406:21)
at Object.reRead (/app/lib/util/settings.ts:684:5)
at start (/app/index.js:93:14)
I’ve tried to remove and add them again, change some configs but anything has worked.
Does anyone could help me with that?
My Z2M config file is:
Assume you rin the mosquitto directly on HA as a add-on?
Can you send the rest of your log.
The MQTT user you use, is it created in HA with admin rights? Remember it need to have username with big/small letters as created
Since add-on version 1.25.0-1 the add-on logic changed.
Existing installations should be able to safely remove the Zigbee2MQTT
configuration from the add-on configuration as these values should have
already been persisted to the configuration file.
So I guess you did a clean install of HA but kept the zigbee2mqtt config which should be saved in /config/zigbee2mqtt, correct?
If so, take a look at /config/zigbee2mqtt/configuration.yaml and adapt/check the settings there.
If I get the add-on documentation (which isn’t very clear to be honest) right, the only add-on option that really matters (for existing installations) is data_path and all the other options can be ignored.
For example, this is my currently running add-on config:
Overnight i suddenly have an issue with Zigbee2mqtt.
This is the third time that suddenly my config is messed up suddenly.
After the issue i updated to the newest version.
I hope somebody can help me out, i am already working on it to get it resolved for 2 days.
I deinstalled everything and did a complete reinstall with an update to the newest version.
I use a Zigbee sonoff 3.0 stick.
My Current version: 1.26.0-1. It looks like it updated overnight.
Which config do you have in this version because after the update i do get this message in the log, and also do have a 502: Bad Gateway.
My config: In the new version it should look at current settings in the kept config in the config folder.