Closed PascalHaury closed 2 months ago
Hi, I'm sorry to see you are having this strange issue. The debug log seems ok:
The log without -debug tell us that matter.js throw error. The problem here is that without -debug is difficult to understand exactly where is the issue.
If you are available to make some test I can send you a patch and try to understand where is the problem.
If not, try to totally clean the mqtt broker from all retained messages, restart the machine where you run z2m and the mqtt broker, factory reset matterbridge.
Hi, I can test anything you want or need to try 👍
If you need any more infos/files feel free to ask, and i will try to provide the infos
Ok, quick update. I fired up a new lxc in proxmox with the exactly same settings (Debian 12, 1CPU Core, 512MB RAM, 16Gb storage), and now it works. The only differences are:
The only bug i think i found is that the debug mode is now default enabled for the plugin. Even if the debug checkbox is not checked and Matterbridge is set to info logging, i get the debug logs in the main window. But for now all my devices are showing up in matterbridge.
If you need to test anything else, feel free to ask, but i think the issue can be closed
It's the same for me. matterbridge-zigbee2mqtt has always been on debug regardless of setting.
Hi, thanks for your feedback. Since I released also matterbridge-shelly (https://github.com/Luligu/matterbridge-shelly/blob/main/README.md), I'm unifying the debug system for all plugins. The idea is to be able to debug the single plugin without debugging the whole matterbridge... cause some users have hundreds of devices... in different plugins In the case of zigbee2mqtt plugin debug is only in the config but not operational. Will move from global to single plugin debug in the next release. Is a transitional update that takes a few time.
Fixed debug default to false for zigbee2mqtt plugin and somfy (https://github.com/Luligu/matterbridge-somfy-tahoma/blob/main/README.md). Thanks.
Hi,
I installed Matterbridge today, but the Zigbee2MQTT plugin isn't starting.
I have installed the latest versions:
I used the integrated plugin installer for the installation.
After some research, I found out that the Legacy API in Zigbee2MQTT must be disabled. However, this did not resolve the issue.
When I restarted Matterbridge with the
-frontend
and-debug
options, all my devices were shown and available.After restarting it again without the debug flag, the plugin didn't start again, and 0 devices are available.
Here is a screenshot showing the issue:![image](https://github.com/Luligu/matterbridge-zigbee2mqtt/assets/32424321/bb6e616e-36e8-4cbb-8241-2788a0a7e2fd)
Attached is the log file with debugging enabled, where everything works: cleaned_z2m.log
And here is the log file without debugging enabled, where no devices are available: