User Tools

Site Tools


techlico_switch_v6_0

TechLiCo Switches

FeatureSupport
Sending
Receiving
Config

Supported Brands

BrandProtocol
TechLiCo techlico_switch

Sender Arguments

-t --on                    send a toggle state signal to the device
-f --off                   send a toggle state signal to the device
-i --id=id                 control the device with this system id (1 ... 65535)
-u --unit=unit             control the device with this unit code (1 ... 4)

Config

"devices": {
	"Lamp": {
		"protocol": [ "techlico_switch" ],
		"id": [{
			"id": 4935,
			"unit": 1
		}],
		"state": "off"
	}
}
"gui": {
	"Lamp": {
		"name": "TV Backlit",
		"group": [ "Lamps" ],
		"media": [ "all" ]
	}
}

Optional Settings

GUI Settings

SettingDefaultFormatDescription
readonly00 or 1Enable, Disable controlling this device from the GUIs

Protocol

The techlico_switch protocol sends 50 pulses like this

208 624 208 832 208 624 624 208 208 624 208 624 624 208 624 208 208 832 624 208 208 832 208 624 208 832 624 208 624 208 624 208 208 832 208 624 208 832 208 832 208 624 208 624 624 208 624 208 208 7072 

The last two pulses are the footer. These are meant to identify the pulses as genuine. We don't use them for further processing. The next step is to transform this output into 24 groups of 2 pulses (and thereby dropping the footer pulse).

208 624 
208 832 
208 624 
624 208 
208 624 
208 624 
624 208 
624 208 
208 832 
624 208 
208 832 
208 624 
208 832 
624 208 
624 208 
624 208 
208 832 
208 624 
208 832 
208 832 
208 624 
208 624 
624 208 
624 208 
208 7072 

If we now analyse these groups we can distinguish two types of groups:

  1. 208 624
  2. 624 208

The 1st group is defined by a short-long sequence (logical 0) The 2nd group is defined by a long-short sequence (logical 1)

Binary representation:
000100110100011100000011

We can group the sequence of bits into the following groups A and B:

AAAAAAAAAAAAAAAA BBBB BBBB
0001001101000111 0000 0011

Each of the groups of bits (A and B) has a specific meaning:

GroupBit #config nameRangeDescription
A1 to 16“id”:1 to 65535SystemCode id
B17 to 24“unit”:1 to 4Button Code unit

The protocol driver creates the binary presentation as required by the device

0000 0011-u 1 Button A Toogle device status
1100 0000-u 2 Button B Toogle device status
0000 1111-u 3 Button C Toogle device status
0000 1100-u 4 Button D Toogle device status

So this code represents:

{
        "code": {
                "id": 4935,
                "unit": 1
        },
        "origin": "receiver",
        "protocol": "techlico_switch",
        "uuid": "0000-00-00-00-000000",
        "repeats": 2
}

Examples

CLI command:

pilight-send -p techlico_switch -i 4935 -u 1

Known Limitations

As the device will not report its state, and the same Button on the original remote control toggles the state of the device, the GUI may show the wrong status of the device.

techlico_switch_v6_0.txt · Last modified: 2015/11/27 22:09 (external edit)