Closed TheSamabo closed 2 years ago
Later i found modbus_converter.py takes the class name of the converter from the .json config. Like so:
"converter": "CustomConverterClassName",
and not not like this: "converter": {"type": "custom", "extension": "CustomConverterClassName"}
. I still think this is kinda a bug. These things should be somehow unified into a more consistent format, i know it might not be possible for all connectors.
Hi @TheSamabo ,
This issue relates to the previous version of the gateway, it should be fixed in the latest version, please try to use it or the master branch version. If the issue appears again - please open a new issue and link this issue to it.
Describe the bug I wrote a custom converter and i only extend the ModbusConverter class and try to get a log appear in logs. Custom Converter: https://pastebin.com/UXJYbjXK my modbus.json config: https://pastebin.com/VynpNCt4
I think the problem is in how modbus_connector.py handles convertor import from config. As someone new to this project the first example of custom converter is for MQTT converter that is listed on thingsboard.io documentation. That in any .json file you should specify an object with key value pairs for "type" ,"extension" maybe "extension-config"
Connector name : Modbus Connector
Error traceback:
Versions (please complete the following information):