Nilan 602/Raspberry/openhab2



openhab2 2.4.0 Release Build on Raspberry 3 (Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux)

I’m using serial connection over USB-dongle that seems to work, below output of test script.

pi@raspberrypi:/etc/openhab2/scripts $ python
TESTING Nilan Connection
main.Nilan<id=0x76ad0918, address=30, mode=rtu, close_port_after_each_call=False, precalculate_read_size=True, debug=True, serial=Serial<id=0x76a79030, open=True>(port=’/dev/ttyUSB0’, baudrate=19200, bytesize=8, parity=‘E’, stopbits=1, timeout=1.0, xonxoff=False, rtscts=False, dsrdtr=False)>

MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): ‘\x1e\x03\x03\xeb\x00\x01\xf6\x15’ (1E 03 03 EB 00 01 F6 15)
MinimalModbus debug mode. No sleep required before write. Time since previous read: 1549725810907.2 ms, minimum silent period: 2.01 ms.
MinimalModbus debug mode. Response from instrument: ‘\x1e\x03\x02\x00\x02\xacG’ (1E 03 02 00 02 AC 47) (7 bytes), roundtrip time: 14.0 ms. Timeout setting: 1000.0 ms.

old userVentSet: 2
new userVentSet: 1
Connection to the Nilan instrument looks good!

I have copied content under /etc/openhab2 and installed mentioned modules via PaperUI.

Hovever, nothing more is not got out from Nilan. BasicUI stays quiet. Attached log from last reboot. For me “Could not transform 'NULL” type of lines sounds that data is somehow corrupted / wrong format etc.? So far not tried older releases of OpenHab2.


openhab_nilan_startup.txt (40.8 KB)

For everyone hitting that page, please find a problem solution at OpenHAB1/2 Nilan heatpump