### Sidebar

gs-iwds07

This is an old revision of the document!

GS-IWDS07 Contact

FeatureSupport
Sending
Receiving
Config

### Supported Brands

BrandProtocol
The Light in the Box GS-DWIS07GS-dwis07

Not supported

### Config

```"devices": {
"Window_Contact": {
"protocol": [ "GS-iwds07" ],
"id": [{
"unit": 52781
}],
"battery": 0,
"state": "closed"
}
},```

None

### Protocol

This protocol sends 50 pulses like this

`1233 411 411 1233 1644 411 1233 411 411 1233 1233 411 822 1233 411 1233 411 1233 1233 411 1233 411 1233 411 411 1233 411 1233 1233 411 1233 411 411 1233 411 1233 411 1233 411 1233 1233 411 411 1233 1233 411 822 1233 411 13974`

It has no `header` and the last 2 pulses are 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).

```1233 411
411 1233
1644 411
1233 411
411 1233
1233 411
822 1233
411 1233
411 1233
1233 411
1233 411
1233 411
411 1233
411 1233
1233 411
1233 411
411 1233
411 1233
411 1233
411 1233
1233 411
411 1233
1233 411
822 1233```

If we now look at these groups you can distinguish four types:

1. `1233 411`
2. `411 1233`
3. `822 1233`
4. `1644 411`

If the first pulse is less than 830 we decode this pulse group as binary 0, otherwise as binary 1. We then get the following output:

`1011010001110011000 0 1 010`

Each (group) of numbers has a specific meaning:

• UnitCode: 0 till 19
• Battary: 20
• State: 21

The meaning of Bits 22-24 is unknown.

• The `Unit` is defined as a binary number
• The `State` defines whether a sensor state is opened or closed

So this code represents:

• UnitCode: 52781
• State: closed