User Tools

Site Tools


elro_hc_v5_0

Differences

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

Link to this comparison view

elro_hc_v5_0 [2015/11/27 22:09] (current)
Line 1: Line 1:
 +**Elro Home Control Switches**
  
 +^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^
 +|Brennenstuhl Comfort|brennenstuhl|
 +|Elro Home Control|elro_hc|
 +
 +==== Sender Arguments ====
 +<​code>​
 +-s --systemcode=systemcode ​    ​control a device with this systemcode
 +-u --unitcode=unitcode ​        ​control a device with this unitcode
 +-t --on                        send an on signal
 +-f --off                       send an off signal
 +</​code> ​
 +
 +==== Config ====
 +<​code>​
 +        "​living":​ {
 +                "​name":​ "​Living",​
 +                "​switch":​ {
 +                        "​name":​ "​Switch",​
 +                        "​protocol":​ [ "​elro_hc"​ ],
 + "​id":​ [{
 + "​systemcode":​ 31,
 + "​unitcode":​ 1
 + }],
 +                        "​state":​ "​on"​
 +                }
 +
 +        }
 +</​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>​
 +320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 320 960 960 320 320 960 960 320 320 960 960 320 320 960 960 320 320 960 320 960 320 960 960 320 320 9920
 +</​code>​
 +
 +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).
 +
 +<​code>​
 +320 960 320 960
 +320 960 320 960
 +320 960 320 960
 +320 960 320 960
 +320 960 320 960
 +320 960 320 960
 +320 960 960 320
 +320 960 960 320
 +320 960 960 320
 +320 960 960 320
 +320 960 320 960
 +320 960 960 320
 +320 9920
 +</​code>​
 +
 +If we now look at carefully at these groups you can distinguish two types of groups:
 +  - ''​320 960 320 960''​
 +  - ''​320 960 960 320''​
 +
 +So the first group is defined by a high 4th pulse and the second group has a low 4th pulse. In this case we say a high 4th pulse means a 0 and a low 4th pulse means a 1. We then get the following output:
 +
 +<​code>​
 +00000 01111 0 1
 +</​code>​
 +
 +Each (group) of numbers has a specific meaning:
 +  * SystemCode: 0 till 5
 +  * UnitCode: 6 till 10
 +  * State: 11 (inverse state)
 +  * Check: 12 
 +
 +<​code>​
 +00000 01111 0 1
 +</​code>​
 +
 +  * The ''​SystemCode''​ is defined as a binary number
 +  * The ''​UnitCode''​ is defined as a binary number
 +  * The ''​State''​ defines whether a devices needs to be turned On or Off
 +  * The ''​Check''​ defines whether a devices needs to be turned On or Off (but is inverse)
 +
 +So this code represents:
 +
 +  * SystemCode: 31 (inversed)
 +  * UnitCode: 1 (inversed)
 +  * State: On (inverse state)
 +  * Check: On 
 +
 +Another example:
 +
 +  * SystemCode: 0 (inversed)
 +  * UnitCode: 4 (inversed)
 +  * State: Off (inverse state)
 +  * Check: Off
 +
 +<​code>​
 +11111 11011 1 0
 +</​code>​
elro_hc_v5_0.txt ยท Last modified: 2015/11/27 22:09 (external edit)