User Tools

Site Tools


cleverwatts_v5_0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cleverwatts_v5_0 [2015/11/27 22:09] (current)
Line 1: Line 1:
 +**Cleverwatts**
  
 +^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^
 +|Cleverwatts|cleverwatts|
 +
 +==== Sender Arguments ====
 +<​code>​
 +-i --id=id ​            ​control a device with this id
 +-u --unit=unit ​        ​control a device with this unit
 +-t --on                send an on signal
 +-f --off               send an off signal
 +-a --all               send an all signal
 +</​code> ​
 +
 +==== Config ====
 +<​code>​
 +        "​living":​ {
 +                "​name":​ "​Living",​
 +                "​switch":​ {
 +                        "​name":​ "​Switch",​
 +                        "​protocol":​ [ "​cleverwatts"​ ],
 + "​id":​ [{
 + "​id":​ 1,
 + "​unit":​ 1
 + }],
 +                        "​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>​
 +270 810 810 270 810 270 270 810 810 270 810 270 810 270 270 810 810 270 270 810 810 270 270 810 810 270 270 810 270 810 810 270 270 810 270 810 270 810 270 810 810 270 810 270 810 270 270 810 270 9180
 +</​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 24 groups of 2 pulses (and thereby dropping the ''​footer''​ pulses).
 +
 +<​code>​
 +270 810
 +810 270
 +810 270
 +270 810
 +810 270
 +810 270
 +810 270
 +270 810
 +810 270
 +270 810
 +810 270
 +270 810
 +810 270
 +270 810
 +270 810
 +810 270
 +270 810
 +270 810
 +270 810
 +270 810
 +810 270
 +810 270
 +810 270
 +270 810
 +</​code>​
 +
 +If we now look at carefully at these groups you can distinguish two types of groups:
 +  - ''​270 810''​
 +  - ''​810 270 ''​
 +
 +  - The first group is defined by a low 1st and high 2nd pulse, hence we call it low.
 +  - The second group has a high 1st and low 2nd pulse, hence we call it high. 
 +
 +We then get the following output:
 +
 +<​code>​
 +0 1
 +1 0
 +1 0
 +0 1
 +1 0
 +1 0
 +1 0
 +0 1
 +1 0
 +0 1
 +1 0
 +</​code>​
 +
 +We then remove the first column of numbers and then put the remaining numbers in a row:
 +<​code>​
 +100100010101011011110001
 +</​code>​
 +
 +Each (group) of numbers has a specific meaning and are defined in binary format:
 +  * ID: 0 till 19
 +  * State: 20
 +  * Unit: 21 and 22
 +  * All: 23
 +
 +So this code represents:
 +
 +  * Unit: 595311
 +  * ID: 0
 +  * State: On
 +  * All: Single
cleverwatts_v5_0.txt ยท Last modified: 2015/11/27 22:09 (external edit)