Trying to get this running… Openhab 2.5M5.
I have a CUL USB Stick, placed the jar in /usr/share/openhab2/addons (raspianpi).
In discovery, I added a culDeviceLabel and set port /dev/ttyUSB1 (saw it in logs). The things say that it is online. Is there any way I could check if it is really working?
I then tried to add a somfyDeviceLabel with channels.
Now I tried to learn it.
I pressed “prog” on working RTS remote (rollershutters are moving), then “programChannelLabel” in paper UI.
Nothing happens, no log entries.
Update: I followed OpenHAB CULfw for Somfy RTS Rollershutters (added things, added items, added items to sitemap).
Switch klappladenBueroProg "Somfy Büro prog" (somfyFF) {channel="somfycul:somfydevice:buero:program"}
Rollershutter klappladenBuero "Somfy Büro" (somfyFF) {channel="somfycul:somfydevice:buero:position"}
I pressed “prog” on working RTS remote (rollershutters are moving), then the klappladenBueroProg.
I hear a double beep, which I think confirms that programming did work.
But when I try to send the position, nothing happens.
Here what I see in the log:
2019-11-21 19:46:29.647 [INFO ] [ing.somfycul.handler.SomfyCULHandler] - channelUID: somfycul:somfydevice:esslinks:position, command: UP
2019-11-21 19:46:29.655 [DEBUG] [ing.somfycul.handler.SomfyCULHandler] - rolling code before command null
2019-11-21 19:46:29.662 [INFO ] [.binding.somfycul.handler.CulHandler] - Send message YsA120nullnull for thing somfyDeviceLabel
2019-11-21 19:46:29.669 [DEBUG] [.binding.somfycul.handler.CulHandler] - Trying to write ‘YsA120nullnull’ to serial port /dev/ttyUSB1
2019-11-21 19:46:29.682 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.handleCommand()’ on ‘org.openhab.binding.somfycul.handler.SomfyCULHandler@bf20a0’: For input string: “null”
java.lang.NumberFormatException: For input string: “null”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_222]
at java.lang.Long.parseLong(Long.java:589) ~[?:1.8.0_222]
at java.lang.Long.valueOf(Long.java:776) ~[?:1.8.0_222]
at java.lang.Long.decode(Long.java:928) ~[?:1.8.0_222]
at org.openhab.binding.somfycul.handler.SomfyCULHandler.handleCommand(SomfyCULHandler.java:106) ~[?:?]
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]
at com.sun.proxy.$Proxy415.handleCommand(Unknown Source) [?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:74) [bundleFile:?]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?]
at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]