This shows you the differences between two versions of the page.
— |
clarus_v5_0 [2015/11/27 22:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **Clarus** | ||
+ | ^Feature^Support^ | ||
+ | |Sending|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |Receiving|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |Config|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |||
+ | ==== Supported Brands ==== | ||
+ | ^Brand^Protocol^ | ||
+ | |Clarus|clarus_switch| | ||
+ | |||
+ | ==== Sender Arguments ==== | ||
+ | <code> | ||
+ | -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 | ||
+ | </code> | ||
+ | |||
+ | ==== Config ==== | ||
+ | <code> | ||
+ | "living": { | ||
+ | "name": "Living", | ||
+ | "switch": { | ||
+ | "name": "Switch", | ||
+ | "protocol": [ "clarus_switch" ], | ||
+ | "id": [{ | ||
+ | "id": "A2", | ||
+ | "unit": 10 | ||
+ | }], | ||
+ | "state": "off" | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ==== Optional Settings ==== | ||
+ | |||
+ | ^Setting^Default^Format^Description^ | ||
+ | |gui-readonly|0|1 or 0|Disable controlling this device from the GUIs| | ||
+ | |||
+ | ==== Protocol ==== | ||
+ | |||
+ | This protocol sends 50 pulses like this | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | |||
+ | 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). | ||
+ | |||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | |||
+ | 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 '' | ||
+ | |||
+ | - The first group is defined by a low 1st and low 4rd pulse pulse, hence we call it low. | ||
+ | - The second group has a high 1st and 3rd pulse, hence we call it med. | ||
+ | - The final group has a low 1st and low 3rd pulse, hence we call it high. | ||
+ | |||
+ | We then get the following output: | ||
+ | |||
+ | <code> | ||
+ | LLHLH LLLHM HM | ||
+ | </code> | ||
+ | |||
+ | 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: | ||
+ | * Unit: 0 till 5 | ||
+ | * ID: 6 till 10 | ||
+ | * State: 12 (state) | ||
+ | |||
+ | <code> | ||
+ | 00101 00012 12 | ||
+ | </code> | ||
+ | |||
+ | * The ''Unit'' is defined as a binary number | ||
+ | * The ''ID'' is defined as a binary number combined with a letter | ||
+ | * The ''State'' defines whether a devices needs to be turned On or Off | ||
+ | |||
+ | So this code represents: | ||
+ | |||
+ | * Unit: 10 | ||
+ | * ID: A2 | ||
+ | * State: On | ||
+ | |||
+ | Another example: | ||
+ | |||
+ | * Unit: 0 | ||
+ | * ID: B1 | ||
+ | * State: Off | ||
+ | |||
+ | <code> | ||
+ | 00101 00021 21 | ||
+ | </code> |