CUL (Intertechno) binding FS20 binding

Hi there!

I´ve now installed openhab2 the 2nd time to my rpi2 and can´t get run my CUL V3…
I´m getting really tired now…PLEASE help me someone…

my config:

(tried almost everything)
################################ CUL Intertechno Binding ###################################

culintertechno:device=serial:/dev/ttyACM0
culintertechno:baudrate=38400
culintertechno:parity=NONE
culintertechno:data=8

################################ FS20 Binding ###################################

fs20:device=serial:/dev/ttyACM0
#fs20:baudrate=38400
#fs20:parity=NONE
#fs20:data=8

For your note: I could get the light on by sending serial comands directly (an FS20 dimmer actor switch run by sending hex strings with cutecom)

bundle config:
06 | Active | 80 | 1.9.0.201609170110 | openHAB CUL Transport Bundle
207 | Active | 80 | 2.0.0.201609182202 | openHAB Serial Transport Bundle
208 | Active | 80 | 1.9.0.201609170110 | openHAB FS20 Binding
209 | Resolved | 80 | 1.8.3 | openHAB FS20 Binding
210 | Resolved | 80 | 1.8.3 | openHAB CULIntertechno Binding
211 | Resolved | 80 | 1.8.3 | openHAB CUL Transport Bundle
212 | Active | 80 | 1.9.0.201609170110 | openHAB Serial Binding

Therefore I´m sure from cul and connection point of view it´s correct.

I guessed that something is maybe about “rights” or permission wrong…

1.) so i added in /usr/share/openhab2/start.sh the

“-DGnu.io.rxtx.SerialPorts=dev/ttyACM0” -->but didn`t help

2.) I added even into /usr/share/openhab2/runtime/karaf/bin/setenv

“-DGnu.io.rxtx.SerialPorts=dev/ttyACM0” -->but didn`t help

3.) I´ve added openhab to dialout

–>but didn`t help

4.) I´ve given 777 rights to /dev/ttyACM0

–>but didn`t help

I can´t get run the fs20/culintertechno in openhab2 no matter how hard I try…

What are thee errors you are getting? Something like “Can’t open CUL…”?
Changing the user that starts openhab to root did help me.

That’s the strange thing I get no error feedback at all.
Both the intertechno.binding and the fs20.binding shows in debug log “started” and run…
but if I use my sitemap switch nothing happens…

I’ve the feeling I’ve maybe to much modified all as it seems…
By the way I noticed in other posts your activity in this topic (fs20+fhem).
Did you get your setup run now…if yes how is your config and example item + sitemap look like?

I’m also not shure about “root” access how did you exactly activate it?
Do you mean by starting openhab from sudo su root?

I’m not using FS 20.
My setup is OPENHAB 2 in a manual installation using the online nigthlybuilds.
I have just the Intertechno binding installed in order to switch some intertechno like switches.
My OpenHAB starts as a service, in the definition of that service you can specify the user ( see the openhab docs).

Hi there,

finally even “I” :stuck_out_tongue_winking_eye: get the FS20 and CUL fully running.
Thankfully to the very nice preparation of a specific image created for the raspi discussed here:

I´m sure this was one of key cause to exclude anykind of install issues.

Further I have realized that my so far done configs I´ve created always into ONE file opehab.cfg.
This is simply wrong for OH2. In OH2 there is in the runtime an “services” folder which contains all specific .cfg files.
This is the right place to adjust your …/ttyACM0 ect. cul device.
The same thing have to be done as well for the FS20 binding.
Each time this is done into an EXTRA cfg file and not anymore to ONE openhab.cfg like in the past.

Afterwords I would say that´s much more convenient and logical, but took me really a while to find out.

However, if in the Paper UI the binding get installed you can notice for the culintertechno taht a .cfg file is done,
for the FS20 you need to do an own :-/ little bit unlogical that once you get a config file and other time you have to create an own one.

So for all folks out there coming from FHEM as me, simply follow this experience and I hope you can get it faster run than me after long nightmares :smiley:

I’m glad you got it running. Can you tell me/us under which user you are runing openhab?
If you are using a service, the user is set in the file:" /lib/systemd/system/openhab2.service"

Hi, so I’ve checked the path you mentioned but sorry the related file you refer on is not listed.

I’ve put dev/ttyACM0 rights to openhab user so from my understanding this should be the user account where all should run from…

Hi Bruno,
Could you provide the cfg and items files you are using? I try to set up a Busware CUL (USB) / Pi3 to control Intertechno dimmers.
BR Simon

Here are examples of my items (different brands)

Switch Elro_Weiss "Elro-Weiss" (EG_Wohnzimmer) {culintertechno="type=raw;address=00000FFF0F;commandOn=FF;commandOff=F0"} /* Intertechno Code A15, Elro weiß */
Switch REV_A "REV_A"  (EG_Flur) {culintertechno="type=raw;address=000FFF0FFF;commandOn=FF;commandOff=F0"} /*REV Dose A* , old devices, will toggle on both comands!!!/

My culintertechno.cfg

device=serial:/dev/ttyACM0
repetitions=6
wavelength=420

I changed the user starting Openhab2 to root in order to make it work (otherwise I get the Error “Can’t open CUL”). Change file “usr/lib/systemd/system/openhab2.service” to read:

....
User=root
Group=root
....

If anybody else got it working with the user openhab, I’d be happy to learn how!

Hi Simon,

My config is almost identical to detailed description from the post before.

The real improvement/ countermeasure to get the cul and fs20 run, until today I believe the installation method helped me out.
The mentioned project with given and predifined image as install package for complete openhab2 ensured the necassery “good” start.
I recomend to you to use maybe a 2nd sd memory to simply try a parallel installation based on the img from above activity, with that it should work by adding the above .cfg immediately!

Hi Jürgen and Bruno

I’ve achieved so far the following: In OpenHab2 I can turn on or off an ITDM-250 (Intertechno) with the following configuration:
“Switch LichtA “licht” {culintertechno=“type=raw;address=01010010101011101000000110;commandOn=010011;commandOff=000011”}”

After flashing the CUL with the alternative Firmware (a-CULfw) (https://forum.fhem.de/index.php?topic=35064.0) I can now even dim the ITDM-250. Do you have any idea how to configure this in an OpenHab binding?

With the “sudo sh sendtoCUL.sh is01010010101011101000000110000011” commands I can do from the command line the following:

turn ON "is01010010101011101000000110010011"
turn OFF "is01010010101011101000000110000011"
Dim min ""is010100101010111010000001100D00110000"
Dim max "“is010100101010111010000001100D00111111”

BR Simon