Modbus TCP Server

Hello Folks,

I am wondering if it is possible for openHAB to not only act as Modbus Master (aka Client), but also as Modbus Slave (aka Server).
According to the Modbus Binding Page: this binding is only for Modbus Client.

I found this tutorial which uses node.js and OH REST API from 2017. i guess this is still the way to go, right?


The docs tell the truth here.


Did you ever go through with this? I would also be interested in using OpenHAB as modbus server.

Hi Jostein,

yes actually i did write a modbus-server using the “modbus-stream” npm library and connected openHAB to this server.
here is the code: GitHub - nett-media/modbus-server
hope it is useful for you

1 Like