zigbee2mqtt-chart
zigbee2mqtt-chart copied to clipboard
Adding converters produces an invalid configuration.yaml
If I add an external converter, the resulting configuration.yaml looks like this:
external_converters:[file.js]
Note the missing whitespace between key and value. That's invalid and zigbee2mqtt won't start like that.
zigbee2mqtt-0 zigbee2mqtt Using '/app/data' as data directory
zigbee2mqtt-0 zigbee2mqtt Starting Zigbee2MQTT without watchdog.
zigbee2mqtt-0 zigbee2mqtt
zigbee2mqtt-0 zigbee2mqtt /app/node_modules/js-yaml/lib/loader.js:183
zigbee2mqtt-0 zigbee2mqtt return new YAMLException(message, mark);
zigbee2mqtt-0 zigbee2mqtt ^
zigbee2mqtt-0 zigbee2mqtt YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key (22:5)
zigbee2mqtt-0 zigbee2mqtt
zigbee2mqtt-0 zigbee2mqtt 19 | passive:
zigbee2mqtt-0 zigbee2mqtt 20 | timeout: 1500
zigbee2mqtt-0 zigbee2mqtt 21 | external_converters:[file.js]
zigbee2mqtt-0 zigbee2mqtt 22 | mqtt:
zigbee2mqtt-0 zigbee2mqtt ----------^
You have to put them in a directory, not in the configuration.yaml (this changed in z2m 2.0), docs: https://www.zigbee2mqtt.io/advanced/more/external_converters.html#external-converters