Hi @De_nn_is,
I’ve given up to use the CUL via Intertechno binding because I didn’t get it running at all.
I found the following workaround which works perfectly for me:
You need the following script. I called it sendtoCUL.sh:
#!/bin/sh
echo $1 > /dev/ttyUSB0
Place the script under /etc/openhab2/scripts (or where ever you like; but placing it there will backup the script as well when you backup the config directory) and make sure it is executable (chmod +x) and change the group and owner to the user openhab (chgrp, chown) - unless your instance is running as root.
Then you only need to define the item, in my case:
Switch CUL_WZ_Licht_TV "Licht TV" { exec=">[ON:sudo sh /etc/openhab2/scripts/sendtoCUL.sh is000000000fff] >[OFF:sudo sh /etc/openhab2/scripts/sendtoCUL.sh is000000000ff0]"}
Finally, define the switch in the sitemap:
Switch item=CUL_WZ_Licht_TV mappings=[ON="ON",OFF="OFF"]
That’s it!
Maybe there are more elegant solutions available, but this one works flawless for weeks now.
And you don’t have to worry about CUL config, baudrate settings and stuff like that (which made me crazy for almost three weeks)
Best wishes from Austria,
Robert