Hello,
I’m trying to create a HomeyScript to connect to our KOSTAL inverter via Modbus TCP to read data about the energy consummed from the battery for example.
However, it seems that the HomeyScript does not allow the Javascript require()
function and I’m getting the following error back:
Script Error
ReferenceError: require is not defined
- at connect-to-modbus.js:1:13*
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)*
Please advise.
Best regards,
Yoppy