WR3223 Ventilation controller (Schwörer Haus)

Hi
Based on the stack trace, I suspect that OpenHAB cannot access the USB adapter. The error happens, by opening the serial port. Have you checked, if the serial-to-usb adapter is really available at “/dev/ttyUSB0”? The user, which is used to run OpenHAB, has the permission to access the USB adapter?

# What is the result of this commands?
ls -l /dev/ttyUSB*
ls -l /sys/class/tty/ttyU*

# Which groups the OpenHAB user have?
groups <openhab user>

Hello,
Does the OH3 binding work?
I‘haven‘t migrated yet my system.
Regards
Uwe

Hello Uwe
Yes, it works, but I doesn’t migrate it to the office repository. You can get it from here: https://github.com/frami/org.openhab.binding.wr3223/releases/tag/v3.0.1-alpha.2
Best regards,
Michael

Thank you Michael, it works very well indeed.
Kind regards
Uwe

Hi again,
I’m still using the DeLock adapter cable the guys suggested on OH 3.

Now I seem to have everything connected like expected but getting the following according to the logs:

2022-02-15 23:18:31.925 [INFO ] [internal.controller.WR3223Controller] - Connected to WR3223 over serial port /dev/ttyUSB0.
2022-02-15 23:18:33.953 [ERROR] [internal.controller.WR3223Controller] - Communication error to WR3223.
java.io.EOFException: null
at java.io.DataInputStream.readByte(DataInputStream.java:272) ~[?:?]
at org.openhab.binding.wr3223.internal.client.AbstractWR3223Connector.readAnswer(AbstractWR3223Connector.java:230) ~[bundleFile:?]
at org.openhab.binding.wr3223.internal.client.AbstractWR3223Connector.read(AbstractWR3223Connector.java:119) ~[bundleFile:?]
at org.openhab.binding.wr3223.internal.controller.WR3223Controller.checkIfCommandIsAvailable(WR3223Controller.java:336) ~[bundleFile:?]
at org.openhab.binding.wr3223.internal.controller.WR3223Controller.run(WR3223Controller.java:142) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]

W3223.cfg
serialPort=/dev/ttyUSB0
controllerAddr=1
refresh=15000

in a channel it is stating NULL

Any help appreciated. X1 is unplugged.
Are there any missing dependencies for the serial port to use?
Running on a RPi 4, 32 Bit

Nevermind!

Because I’ve got some experiencing with flashing esp chips, I tried switching RX and TX. Now it is working and values come through perfectly. Great!

Hello Michael,
will there be a OH4 version of this binding?

Hello Ralph
Is there an update of the binding for OH4 necessary? I hadn’t found time to delve into OH4 until now. But if there is an update of the Binding required, I will do it.

The binding ist not working in OH4

2023-08-13 20:00:12.430 [ERROR] [Events.Framework                    ] - FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.wr3223 [312]
  Unresolved requirement: Import-Package: org.openhab.core.io.transport.serial

        at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1847) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1840) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1783) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1745) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1667) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) ~[org.eclipse.osgi-3.18.0.jar:?]

2023-08-13 20:00:18.109 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.wr3223-3.0.1.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.wr3223 [312]
  Unresolved requirement: Import-Package: org.openhab.core.io.transport.serial

        at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) ~[?:?]

Hi Ralph
It looks like that is a system OH Core Bundle “Serial Transport” missing. Can you try to install the “Serial Binding”? This is officially binding, and it also uses the “Serial Transport” Core Binding.

If this not work, try to connect to the OH console (The Console | openHAB) and check with the command “bundle:list” if the “Serial Transport” binding is installed. If not, you can try with the “bundle:install” command to install it.

Hi Michael,
its now working with the serial binding loaded. thanks