i try to switch my Intertechno Power Plugs (IT 1500) with OpenHAB. (openhabian)
Please help me to get it to work - i am using this CC1101 with 464 MHz.
installed my selfmade CUL Stick with this tutorial:
did no changes in board.h ( #define HAS_CC1100_433 )
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
in TERMINAL “ls -l /dev/serial/by-id” says:
total 0
lrwxrwxrwx 1 root root 13 Nov 19 15:54 usb-FTDI_FT232R_USB_UART_A9E5XZFJ-if00-port0 -> ../../ttyUSB0
my culintertechno.cfg
############################# Intertechno Binding ###################################
# Devicename to use (mandatory)
# Example /dev/ttyACM0
device=serial:/dev/ttyUSB0
baudrate=38400
# How often should the command be repeated? (optional)
# See http://culfw.de/commandref.html for details
repetitions=6
# How long should one pulse be? (optional)
# See http://culfw.de/commandref.html for details
wavelength=420
my item ( i found that code in the web, dont know if its correct )
as i understand the page, i should send an ON-value to the plug in the first 5 sec. when i gets plugged in, to get paired with my “item-adress”
but i dont know how to do so…
thanks
EDIT:
i installed “minicom” and edited to “ttyUSB0 - 38400 8N1”
i rebooted openhab
now i get this in my minicom after typing
SHIFT+V
/enter ( CUL Version )
X21
/enter (spoofing)
and pressing the buttons on the remote-control
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on May 7 2017, 05:18:49.
Port /dev/ttyUSB0, 17:59:27
Press CTRL-A Z for help on special keys
00 1818
420
00 1818
6
00 1818
V 1.67 nanoCUL433
i66A5A5566A55965516
i66A5A5566A55955519
i66A5A5566A5596561A
i66A5A5566A55955621
i66A5A5566A55965924
i66A5A5566A55955925
Since I do not have one of those “moden” switches (mine are >25 years old!), I can’t tell for sure!
I would try it this way:
Create an Item that sends only “ON” code (in order to send a real long ON code by sending more often) using a selfmade code like:
Switch SetUP_OnlyON “SetUP” {culintertechno=“type=raw;address=10101010101010101010101010;commandOn=000011;commandOff=000011”} /* TestSignal to pair the powerplugg last 4bits as if Button4 was pressed*/
After that power-plug is paired that way the following switch should switch the plug ON/OFF
Switch Plug_One “Plug_One” {culintertechno=“type=raw;address=10101010101010101010101010;commandOn=010011;commandOff=000011”} /* Switch that is paired to Plug_One last 4bits as if Button4 was pressed*/
I used the channelID four Button 4, if you pair other plugs with the same starting code and other button codes, you should be able to use the ALL-codes!
PS: It took a while to find an old thread about that and then some real world dropped in.
python cul_decode_itv3.py i66A5A5566A55955519
The string to enter in your serial terminal is:
is01011100110000010111000010000000
The id of your remote control is:
01011100110000010111000010
The group flag is:
0
Your device was set to:
0
The
inside the minicom i can now turn my Plugs ON / OFF with that
ON = "is01011100110000010111000010010000"
OFF = "is01011100110000010111000010000000"
??
The CUL-Stick is working (otherwise you couldn.t have actuate the switch with minicom)
The CUL-Stick is recognised by OH (as of reading the log posted above)
What does the log show when actuating the Cultest4?
[Edit:] Did you close minicom, or even better restart the system after closing minicom. I do remember some problems when doing my testing using “screen”.