Skip to content

Getting the Openhab2 modbus SNAPSHOT binding

aviborg edited this page Dec 27, 2017 · 8 revisions

Uninstall old modbus binding.

Open openhab console: openhab-cli console (default username: openhab, password: habopen)

Install serial transport: feature:install openhab-transport-serial

Close openhab console logout

Edit in /etc/openhab2/services/addons.cfg:

remote=true (make sure not commented)

Copy *.jar files (copy for 2.2.0 here: https://github.com/aviborg/ecl110/tree/master/OH2) to /usr/share/openhab2/addons

Make sure *.jar files are executable: chmod +x *.jar

Check the log: http://hab:9001 for this: (Restart openhab if necessary: sudo systemctl restart openhab2.service)

2017-12-23 10:51:26.210 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Modbus manager activated

2017-12-23 10:51:26.289 [INFO ] [modbus.internal.ModbusHandlerFactory] - Setting manager: org.openhab.io.transport.modbus.internal.ModbusManagerImpl@b33386

Example files (items, things etc.) here: https://github.com/aviborg/ecl110/tree/master/OH2

Clone this wiki locally