Impuls
Brand | Protocol |
---|---|
Impuls | impuls |
-s --systemcode=systemcode control a device with this systemcode -u --programcode=programcode control a device with this programcode -t --on send an on signal -f --off send an off signal
"devices": { "Lamp": { "protocol": [ "impuls" ], "id": [{ "systemcode": 8, "programcode": 12 }], "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 |
confirm | 0 | 1 or 0 | Ask for confirmation when switching device |
The default settings for a set of Impuls switches are SystemCode: 11111 and ProgramCode: 10000 (A), ProgramCode: 01000 (B) and ProgramCode: 00100 (C). This translates into the following pilight systemcode
and unitcode
:
A) systemcode: 31, programcode: 1
B) systemcode: 31, programcode: 2
C) systemcode: 31, programcode: 4
This protocol sends 50 pulses like this
885 295 885 295 885 295 885 295 885 295 885 295 295 885 885 295 295 885 885 295 295 885 295 885 295 885 885 295 295 885 295 885 295 885 885 295 295 885 885 295 295 885 885 295 295 885 295 885 295 9735
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).
885 295 885 295 885 295 885 295 885 295 885 295 295 885 885 295 295 885 885 295 295 885 295 885 295 885 885 295 295 885 295 885 295 885 885 295 295 885 885 295 295 885 885 295 295 885 295 885 295 9735
If we now look at carefully at these groups you can distinguish three types of groups:
295 885 295 885
885 295 885 295
295 885 885 295
We then get the following output:
MMMHH LHLHH H L
All M's and H's can be translated to 1. All L's can be translated to 0.
Each (group) of numbers has a specific meaning:
11100 10100 1 0
SystemCode
is defined as a binary numberProgramCode
is defined as a binary numberCheck
is always inverse stateState
defines whether a devices needs to be turned On or OffSo this code represents:
Another example:
00000 00100 0 1