New binding suggestion: Wavin AHC 9000 / Jablotron AC-116

Thanks a lot! I seriously lack Google skills it seems ;). But this is exactly what I had in mind.

If it’s help to anyone I use this USB to modbus controller : [DSD TECH USB zu RS485 RS422 Konverter mit FTDI FT232 Chip Kompatibel mit Windows 10, 8, 7, XP und Mac OS X https://www.amazon.de/dp/B07B416CPK/ref=cm_sw_r_cp_apa_i_wzosCbVBJAXZX](DSD TECH USB zu RS485 RS422 Konverter mit FTDI FT232 Chip Kompatibel mit Windows 10, 8, 7, XP und Mac OS X https://www.amazon.de/dp/B07B416CPK/ref=cm_sw_r_cp_apa_i_wzosCbVBJAXZX)

I dont think it matters which one it is as long as it has the ftdi chip since this makes it easy under Linux.

Cheers

The FTDI chip has an automatic RS485-transmit-enable output, which means there is nothing special that needs to be done on the PC side (such as fiddling with the modem control signals). Other chips may have it, but I don’t know them. Some boards implement the TX-enable with a little logic, but that will most likely only work for a certain range of baud rates. Sticking with FTDI seems the easiest.
The adapter I linked to is opto-isolated, so there is less risk of damaging either PC or Wavin controller due to ground potential differences.

Regarding the desired temp, I believe it simply reflects the selected temp (based on mode). That would normally be the “Manual temp” (until you start changing modes to standby, party, etc.)

Unfortunately, I don’t think the mode selection works correctly in the binding (at least I have not been able to make it work, after spending quite some time). I would love to be proven wrong.

If I don’t mess with the mode, but only use the Manual temp, it seems I can both set (from OpenHab) and read the thermostat setting. And reading AirTemp works fine as well (I have the wired thermostats without floor sensors, so there is not much else of interest).

Thanks for the clarifications @spiff42! I agree the converter you recommend is better.

I can also confirm i can do the same behavior with 5 wireless thermostats (no floor sensors as well). I got tripped in the beginning since the system seems to be very aggressive with power savings and the thermostat updates are not at all regular so it was looking like nothing is happening.

So now i have something decent working and I am temped to just drop it but… may be just ask few final questions for @zmartify:

  • do you plan to publish this binding officially with the next (2.5) openhab release, whenever that might be?
  • how can we help to get the whole thing working - modes and all? Or perhaps we can help write better documentation?

Hi Guys

Pretty new to the whole openhab world but i think i’ve managed to hook up the binding - however
When i search for new “Things” using the binding i find only “slaveX” where X is the unit address i set in the config for the serial controller - doesn’t matter if i use AC-116 = 1-7 or Nilan

Does anyone have any clues or am i just missing something super basic?

Regards
zeb

Isn’t slave X the bridge (=the wavin mother unit)? You need to install that one and you should start seeing all thermostats and valves.

I finally got around to persisting Wavin readings in InfluxDB and creating a Grafana dashboard. Unfortunately, the margins used on the regular graphs and the ones created with the “discrete” plugin are not the same, so I could not line up the time perfectly. Would have been even better to have them in the same graph, but still this is quite nice, I think.

I still have a lot of Recv timeouts in the log:

2019-03-06 07:51:07.190 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:52:10.107 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 402 minimumLength=5 respIndex=0
2019-03-06 07:52:10.712 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:52:27.081 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:55:02.493 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:55:05.182 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-03-06 07:55:06.266 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:55:06.876 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-03-06 07:55:14.638 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-03-06 07:55:21.275 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-03-06 07:55:26.938 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-03-06 07:55:39.828 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:56:06.557 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:56:54.648 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:57:02.405 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:57:11.970 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:58:15.368 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:58:27.431 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:58:40.339 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:58:43.975 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-03-06 07:59:35.130 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-03-06 07:59:41.723 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0

Can anyone here comment on whether they see the same? This is with less than 2m of CAT5 cable, and terminated at the PC end.

Hi @spiff42,

Nicely done :wink: looks very pretty.

I see the same warnings and without the source code I am not sure we can figure out what it is. I checked @zmartify’s GitHub repos but none of the public ones seem to include this binding…

Short of making our own I think we might have to just live with these.

Cheers.

Hi,

Has anyone tried enabling holiday mode for wavin? If possible I’d like to invoke when back door sensor detects the door is open…

I did at one point try to get the modes working, but without success. As far as I remember, trying to change the mode resulted in the binding communication not working correctly anymore, until the binding was restarted.

For your application, I guess you could just make a rule that saves the old setpoint, and lowers the setpoint as long as the door is open.

Since there has not been much word from @zmartify, I guess the chances of getting the various bugs in the binding squashed are slim. “Unfortunately” the current binding works well enough that writing a new (open source) binding is not high priority. But if someone wants to take on that challenge (or at least participate), I will certainly support it as much as I can.

Cheers

Hi Mikkel,

I’m very new to OpenHAB and would very much like to give a try. I have Wavin AHC 9000 system with wired thermostat in the house, and as a first step I’d like to read room temperature and set target temperature from OH. I’m a Java developer only work on high level things so no experience with embedded system. I know it’s probably a big ask, but would you mind to write a little tutorial on the hardware setup incl. which board, wiring, and maybe configuration step by step? It’s probably also good to summarise what works and what doesn’t so others might be able to continue the project.
PS: I found another project on Github which provides MQTT impl. for controlling the device using something called esp8266 (https://github.com/dkjonas/Wavin-AHC-9000-mqtt) It is made for HA but can potentially used for OH, has anybody tried that?

@somy,
Sorry, I don’t really have time to write a tutorial. Your best bet is probably to read through this thread, as most of the information is scattered around here.

If you are not comfortable with the hardware side, my suggestion would be to buy the isolated USB-to-RS485 I link to in post number 6: New binding suggestion: Wavin AHC 9000 / Jablotron AC-116 - #6 by spiff42

Please note that there is probably quite long shipping time on this particular converter. If others have experience with a different converter, which is easy to get working, please pitch in. The cheap, unisolated ones with FTDI did not work reliably for me (at least not before modifying it with some biasing resistors and changing the RS485 driver), so I cannot recommend those.

Apart from that you need a cat-5 patch cable with RJ45 connectors (a few meters will do, depending on how far there is between your AHC9000 and the computer running OpenHAB). And of course a few tools to cut the cat-5 cable and connect it to the screw terminals.

Once you have the hardware, come back again for advice if you need it.

Since @zmartify has not released the source code for the binding, it is difficult to continue the project. This also means that it could stop working with a future OpenHAB version

The only things I have working is reading the temperature sensors, setting/reading the manualTemp (setpoint), and reading whether each channel/heating circuit is active (persisted in InfluxDB and graphed with Grafana to get the graphs shown in post number 94 above: New binding suggestion: Wavin AHC 9000 / Jablotron AC-116 - #94 by spiff42)

This solution should be more flexible in regards to getting e.g. modes working (at least the source is available). I also like the fact that it is powered from the AHC9000 controller. But I think it requires some familiarity with hardware/electronics, since you have to solder the parts together yourself.

Thank you! Hardware ordered now, I will write back when I receive it (about a month from now). I could help with the Java project but need to get myself familiar with OH first :slightly_smiling_face:
Now I will have one month to crack Nilan CTS700, enjoy the summer!

Hi Katerica,
While I’m waiting for the hardware I started some experiement with running OpenHAB as docker container on my QNAP NAS. I have an RS232 adaptor but couldn’t seem to get it pass the data to the docker conatiner. Anything special you did to make it work? Thank you!

Hi @somy,

First of all i think you need RS485 and not RS232 - at least all of us here use RS485 i think. I don’t know if it will work over RS232. See the USB-RS485 controller spiff42 posted at the beginning of the thread. This is the device you need. I also posted another one from Amazon but the one spiff42 gave is better because of the optical isolation. Mine also works fine but carries some extra risk of runaway ground loops - mostly a concern in older buildings.

That being said, how are you with connections? Did you figure out how to wire things? If not let me know i will post a brief description.

Now to your actual question - docker.

You need to pass the entire device to docker - not only the data. On older Linux distros the FDTI driver might not be loaded - this is my case on an old Synology (>10 years). Funny enough the driver is part of the distro but not loaded. If you QNAP is new this should not be an issue.

You can tell if you need extra drivers loaded by checking your dmesg when you plug it in. If you get a new ttyUSBxx then all drivers are in place. Otherwise you need to load them.

If you need to load them insert this in your /etc/rc.local

insmod /lib/modules/usbserial.ko
insmod /lib/modules/ftdi_sio.ko

chmod 777 /lib/modules/usbserial.ko
chmod 777 /lib/modules/ftdi_sio.ko

chmod 777 /dev/ttyUSB0

The order of loading the drivers is important. The permissions are probably too high and some security guru will complain but i can never figure out these things and my NAS is not open to the world so i don’t mind. ttyUSB0 should of course be replaced by whatever dmesg says.

So after installing the device you can start the container and pass the device to openhab, I use this run command:

docker run
–name openhab
–net=host
–tty
-e “EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyUSB0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA
-v /path/to_local/openhab/conf:/openhab/conf
-v /path/to_local/openhab/userdata:/openhab/userdata
-v /path/to_local/openhab/addons:/openhab/addons
-d
–device=/dev/ttyACM0
–device=/dev/ttyUSB0
–restart=always
openhab/openhab:2.4.0-amd64-debian

The ttyACM0 here is my Zwave stick - nothing to do with the Wavin. The Extra java options i copied from some forum somewhere and i am not sure are really needed. Once it worked (and i don’t think those made it work) i never bothered to investigate further.

Note that the above raising of permissions is needed even if your drivers load by default. The openhab docker container has options to load with certain user name but i never managed to make it work. So now my docker runs with default user (i think that is openhab) but on my NAS this user shows up with id/group 9001:9001. So unless i allow everyone to use the ttyUSB0 openhab will not see it even if you use the run command from above.

There is clearly room for improvement in my set up from permissions point of view. I dont even know how vulnerable things become of you do as I do - just fair warning.

I hope this helps and good luck!

P.S. I did some tinkering with a Synology Surveilance station binding and managed to make it work. I was however doing only minor modifications based on other people’s framework. If you manage to get an open source binding started and can take care of the Java skeleton i can assist with the various feature development. I think forking the MODBUS binding already in Openhab should be a solid base but i doubt i can manage it. A far as i can tell Wavin is a special case of MODBUS.

Thank you! I know I need RS485, just can’t wait to try out something :slight_smile:
I will write again when I receive the device from China.

Hi all,
I am currently rewriting my binding which support Wavin AHC 9000 / Jablotron AC-116. Then plan is afterwards to make it available to the OpenHAB community. I know some of you have been using the current version for some time. Any known errors, suggestions for improvements etc.

Best regards,

Peter @zmartify

Hi @spiff42 and @katerica

I have now received the RS485 to USB dongle, and now I need some advice to wire the pins.
Please see the following diagrams with network cat pins marked from 1 to 8, and pins on USB dongle from A to E.

As I read from the posts, I should connect pin 3 to E and pin 6 to D, and I also need a short wire to connect pin A and B to enable 120ohms termination resistor, please correct me if I’m not doing the right thing.
Now the question about GND, both pin 1 and 2 from the RJ45 are marked GND, which one should I use?
Thank you in advance!

Hi @somy,

Your understanding is correct:

RJ45 pin 3 goes to RS485 pin 5
RJ45 pin 6 goes to RS485 pin 4
RJ45 pins 1/2 can be shorted together into RS485 pin 3

The terminating resistors are not always needed - I skipped them altogether.

Cheers

Hi @katerica and @spiff42 ,

Thanks a lot! Now I have made some progress: I seem to get connection to the device in Docker now. After I installed the binding I noticed the following:

  1. By default it sets Nilan On and Wavin off (see screenshot below).
  2. I then change Nilan off and Wavin On (Unit address 1), and it can find a thing called “slave1” but never managed to connect to that. The controller is in a strange state “Online_bridge_offline”
  3. Did some more experiment by trying different values, I found if I set Wavin On (Unit address 2) it seems to be able to connect to the device, a thing called “slave2” is created
  4. I didn’t manage to get states of connected thermostats - as I understand from previous posts they should appear as things automatically?

That’s what I’ve got so far. I tried to look into log and can see the it keeps disconnected from the device:

2019-06-19 20:12:43.307 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:43.915 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:12:44.523 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:12:45.131 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:45.739 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-06-19 20:12:46.347 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:12:46.956 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-06-19 20:12:47.321 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:12:47.563 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:48.170 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:12:48.776 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:49.322 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:12:49.323 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:12:49.382 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:49.988 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:51.324 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:12:51.325 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:12:53.326 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:12:53.326 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:12:55.328 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:12:55.592 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-06-19 20:12:56.201 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:12:56.807 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:12:57.415 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:13:00.331 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:02.333 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:02.353 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:03.022 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:03.627 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 402 minimumLength=5 respIndex=0
2019-06-19 20:13:04.233 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:04.355 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:04.356 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:04.840 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:06.357 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:06.358 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:08.358 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:10.448 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:13:11.055 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:11.661 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:12.269 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:13.360 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:15.361 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:15.362 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:17.363 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:17.364 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:17.875 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:18.536 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-06-19 20:13:19.142 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 402 minimumLength=5 respIndex=0
2019-06-19 20:13:19.365 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:19.366 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:19.748 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:21.367 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:25.357 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 406 minimumLength=5 respIndex=0
2019-06-19 20:13:25.964 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:26.369 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:26.569 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 402 minimumLength=5 respIndex=0
2019-06-19 20:13:27.175 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:28.370 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:28.371 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:30.372 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:30.373 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:32.375 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:32.377 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:32.779 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-06-19 20:13:33.386 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:34.003 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 405 minimumLength=5 respIndex=0
2019-06-19 20:13:34.379 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:34.379 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:34.610 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:36.382 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:36.383 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:38.384 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:38.385 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:40.214 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 401 minimumLength=5 respIndex=0
2019-06-19 20:13:40.386 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0
2019-06-19 20:13:40.388 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Trying to connect to serial port /dev/ttyUSB0
2019-06-19 20:13:40.822 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 404 minimumLength=5 respIndex=0
2019-06-19 20:13:41.427 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 402 minimumLength=5 respIndex=0
2019-06-19 20:13:42.033 [WARN ] [rtmodbus.handler.ModbusSerialHandler] - Recv timeout : 403 minimumLength=5 respIndex=0
2019-06-19 20:13:42.390 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Connected to serial port /dev/ttyUSB0

Could it be because I only wire the pin 0 (instead of pin 0+1) to GND? And I don’t quite understand why I can connect to slave2 but not slave1, and why it doesn’t detect the thermostats in the rooms :frowning:
Any suggestion?

Hi @somy,

The binding defaults to Nilan for all - @spiff42 I think discussed this a bit earlier in the thread but basically just switch over to wavin as you have done and it should work. The slave 1 or 2 is I think a bit dependent on the config of the wavin but most cases it would be 1. From the log I don’t think you are connected in a stable mode - I see a lot of re-connects.

Please check your wiring one more time!
I have about 20 m CAT5E cable from my wavin to the USB stick and don’t use termination resistor. Yet if everything else fails you can try that - connect pins 4 and 5 of the RS485 with 120 ohm resistor. But this is should be the last thing you try.

Before that :

  • make.sure you have downloaded the latest binding by @zmartify. He posted several links!
    • try switching over to the other RJ45 port on the wavin
  • short the GND pins at the RS485

I cannot check this now but I have this wierd feeling that the binding always sees slave 1/2 even if you unplug everything. So ultimately this can be a wrong ttyUSB config to the docker.

Good luck!