Cleverwatts
Brand | Protocol |
---|---|
Cleverwatts | cleverwatts |
-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
"devices": { "Lamp": { "protocol": [ "cleverwatts" ], "id": [{ "id": 73404, "unit": 0 }], "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 |
This protocol sends 50 pulses like this
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
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).
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
If we now look at carefully at these groups you can distinguish two types of groups:
270 810
810 270
We then get the following output:
0 1 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0
We then remove the first column of numbers and then put the remaining numbers in a row:
100100010101011011110001
Each (group) of numbers has a specific meaning and are defined in binary format:
So this code represents: