Solved!
-
Insert CUL in USB Port
-
Be sure to have Openhabian installed - Rasberian gives back a device error concerning mount of USB CUL:
(Invalid device name ‘/dev/ttyUSB0’. Must be ‘DEVICETYPE:ADDRESS) -
Install Intertechno Binding via PaperUI
-
open /etc/openhab2/services/culintertechno.cfg an add:
device=serial:/dev/ttyUSB0
If your Stick runs on USB0 - otherwise find to which port it belongs: ->
dmesg
sudo reboot
or
sudo service openhab2 restart
- With
tail -n 1000 -f /var/log/openhab2/openhab.log
you can look up if your CUL is supported now.
The message
2017-10-20 22:29:03.737 [WARN ] [io.transport.cul.CULLifecycleManager] - CUL config is NULL, doing nothing
ISN´T A FAILURE OF THE CUL!!! Your Cul will be recognized. Also that the CUL is initialized to ttyUSB0 is normal!
Other posts installing to ttyACM0 / Serial0 / AMA0 belong to Raspi 2 or other.
A
Raspberry pi3
has a WiFi Port and a Bluetooth Port - these are blocked on AMA0 and other ports.
-
Now go to: https://wiki.fhem.de/wiki/Intertechno_Code_Berechnung and look up your equipment. In most cases Original Intertechno works for some devices not listed.
-
.items file
Switch Schrank_klein “Schrank Klein” (gSchalterWohnraum) {culintertechno=“type=raw;address=FF00F0000F;commandOn=FF;commandOff=F0”} -
If you no configuration done with this codes work install minicom
sudo apt-get install minicom
and start it with:
minicom -s -c on
Configuration is 38400 / 8 / 1 / N
then exit and save and start again with
minicom
Pressing SHIFT+ V should give you the version and firmware of the CUL
Pressing X21 (yes you have to type it…and you don´t see that you are typing) enables the sniffing of the CUL
Now you will get some code fences.
If you are lucky - Press desired button on your Intertechno Remote and minicom shows a code like:
is64354576545154545454.
This code can be converted to a format openhab needs: try cul_decode_itv3.py is is6435457654515454545.
If python is not installed…google to install it.
You can also do a try and error now because minicom also sends codes you are typing:
just type: is000000000FFF (Enter) for switching on A1 - It was my luck that esp. this code worked directly.
Use it in your .items file WITHOUT “is” and FF for command on and F0 for Off