Feature | Support |
Sending | |
Receiving | |
Config |
Supported Brands
Brand | Protocol |
KlikAanKlikUit | kaku_screen_old |
Sender Arguments
-t --up send an up signal
-f --down send an down signal
-u --unit=unit control a device with this unit code
-i --id=id control a device with this id
Config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
"devices": {
"screen": {
"protocol": [ "kaku_screen_old" ],
"id": [{
"id": 16,
"unit": 0
}],
"state": "down"
}
},
"gui": {
"screen": {
"name": "Screen",
"group": [ "Living" ],
"media": [ "all" ]
}
}
}
|
Option | Value |
id | 0 - 31 |
unit | 0 - 15 |
state | on / off |
Optional Settings
GUI Settings
Setting | Default | Format | Description |
readonly | 0 | 1 or 0 | Disable controlling this device from the GUIs |
confirm | 0 | 1 or 0 | Ask for confirmation when switching device |
Notes
The old KlikAanKlikUit devices work setting two wheels: group (0-H) and device number (0-16). To control a device from pilight you need to send the correct group and unit id, these do not correspond 1:1.
A-1 on the unit corresponds with unit 0 id 0 in pilight A-2 on the unit corresponds with unit 0 id 1 in pilight etc.
Protocol
This protocol sends 50 pulses like this
295 1180 295 1180 295 1180 1180 295 295 1180 295 1180 295 1180 1180 295 295 1180 1180 295 295 1180 1180 295 295 1180 1180 295 295 1180 1180 295 295 1180 295 1180 295 1180 1180 295 295 1180 1180 295 295 1180 1180 295 295 11210
It has no header
and the last 2 pulses are the footer
. These are meant to identify the pulses as genuine, and the protocol also has some bit checks to filter false positives. We don’t use them for further processing. The next step is to transform this output into 12 groups of 4 pulses (and thereby dropping the footer
pulses).
295 1180 295 1180
295 1180 1180 295
295 1180 295 1180
295 1180 1180 295
295 1180 1180 295
295 1180 1180 295
295 1180 1180 295
295 1180 1180 295
295 1180 295 1180
295 1180 1180 295
295 1180 1180 295
295 1180 1180 295
295 11210
If we now look at carefully at these groups you can distinguish two types of groups:
So the first group is defined by a high 3th pulse and the second group has a low 3rd pulse. In this case we say a high 3rd pulse means a 0 and a high 3rd pulse means a 1. We then get the following output:
10100 00010 0 0
Each (group) of numbers has a specific meaning:
10100 00010 0 0
Unit
is defined as a binary numberID
is defined as a binary numberFixed
is always 0State
defines whether a devices needs to be go Up or DownSo this code represents:
Another example:
00000 00100 0 1
Furthermore the protocol filters out false positives by checking if:
This makes the protocol more accurate because it will respond rarely now when sartano commands are sent.