Klikaan Klikuit, RFXcom and Raspberry Pi made simple

I spend many hours to figure out how to use RFXcom together with my klikaan klikuit (KAKU) 433 MHz devices. In the end it appeared to be very, very simple.

Send a message to your KAKU device in python 3:

import serial
message = '0B11000200AAD51E09010F70'
serial_device = '/dev/ttyUSB0'
serial_rate = 38400
serial_timeout = 9
port = serial.Serial(serial_device, serial_rate, timeout=serial_timeout)
port.write(bytes.fromhex(message))

On a windows PC serial_device should be something like ‘COM4’.

The ‘message’ in the example above is build up as follows:

NameLengthHex ExampleRemark
Start40B11Same for all KAKU devices
Sequence number40001Can be ignored
ID70AAD51EUnique for your remote
Button201Button on your remote
Command20000 for ‘off’
01 for ‘on’
02 for ‘set level’
Level201Only used if command is ‘set level’. It’s a value between 00 and 0f
?200Can be ignored

I’m using a 16 channel KAKU remote (AYCT-102)

The buttons of this remote are numbered as:

GroupButtonHex Code
I101
I202
I303
I404
II105
II206
II307
II408
III109
III20A
III30B
III40C
IV10D
IV20E
IV30F
IV410

‘set_level’ can be used if you’re sending messages to a dimmer for led lights or fans.

For completeness a photo of the RFXcom device: