User Tools

Site Tools


cleverwatts_v6_0

Cleverwatts

FeatureSupport
Sending
Receiving
Config

Supported Brands

BrandProtocol
Cleverwattscleverwatts

Sender Arguments

-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

Config

"devices": {
	"Lamp": {
		"protocol": [ "cleverwatts" ],
		"id": [{
			"id": 73404,
			"unit": 0
		}],
		"state": "off"
	}
}
"gui": {
	"Lamp": {
		"name": "TV Backlit",
		"group": [ "Lamps" ],
		"media": [ "all" ]
	}
}

Optional Settings

GUI Settings

SettingDefaultFormatDescription
readonly01 or 0Disable controlling this device from the GUIs

Protocol

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:

  1. 270 810
  2. 810 270
  1. The first group is defined by a low 1st and high 2nd pulse, hence we call it low.
  2. The second group has a high 1st and low 2nd pulse, hence we call it high.

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:

  • 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_v6_0.txt · Last modified: 2015/11/27 22:09 (external edit)