Hello All,
This new update of Z2MQTT gives hell of a time… It looks like its much more difficult to load external converters now.
It doesnt look like adding the
external_converters:
-
- yourfile.js*
does anything.
Reading the new support page it looks like the file should be loaded via MQTT message, but I cant figure it out how it works. This is what I supposed to do:
To save a converter at runtime, send a message to zigbee2mqtt/bridge/request/converter/save
with payload {"name": "my-first-converter.js", "code": <HERE COMES YOUR CONVERTER CODE>}
. The code will be saved in data/external_converters/
in the file with the given name.
Whatever I try I only see this in the logs:
2025-01-04 22:35:09z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/converter/save', payload '{"data":{},"error":"Invalid payload","status":"error"}'
I cant even save a test message in this file, let alone my full converter…
I tried to manually find the save location to just put my already existing file there, but couldnt. Any help would be appreciated especially some of the unsupported devices are thermostats and currently they dont function.
4 posts - 2 participants