Clarus
Brand | Protocol |
---|---|
Clarus | clarus_switch |
-i --id=id control a device with this systemcode -u --unit=unit control a device with this programcode -t --on send an on signal -f --off send an off signal
"devices": { "Lamp": { "protocol": [ "clarus_switch" ], "id": [{ "id": "A2", "unit": 10 }], "state": "off" } } "gui": { "Lamp": { "name": "TV Backlit", "group": [ "Lamps" ], "media": [ "all" ] } }
GUI Settings
Setting | Default | Format | Description |
---|---|---|---|
readonly | 0 | 1 or 0 | Disable controlling this device from the GUIs |
This protocol sends 50 pulses like this
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 567 189 189 567 567 189 189 567 189 567 567 189 567 189 189 567 189 567 567 189 567 189 189 6426
It has no header
and the last pulse is the footer
. These are meant to identify the pulses as genuine. The next step is to transform this output into 12 groups of 4 pulses (and thereby dropping the footer
pulses).
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 567 189 189 567 567 189 189 567 189 567 567 189 567 189 189 567 189 567 567 189 567 189 189 6426
If we now look at carefully at these groups you can distinguish three types of groups:
189 567 567 189
567 189 567 189
189 567 189 567
We then get the following output:
LLHLH LLLHM HM
All L's can be translated to 0, the H's to 1's, and M's to 2.
Each (group) of numbers has a specific meaning:
00101 00012 12
Unit
is defined as a binary numberID
is defined as a binary number combined with a letterState
defines whether a devices needs to be turned On or OffSo this code represents:
Another example:
00101 00021 21