New in version 8.0.
Feature | Support |
Sending | |
Receiving | |
Config |
Supported Brands
Brand | Protocol |
TCM 218943 | tcm |
Sender Arguments
None
Config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | {
"devices": {
"weather": {
"protocol": [ "tcm" ],
"id": [{
"id": 104,
}],
"temperature": 22.70,
"humidity": 50.00,
"battery": 1
}
},
"gui": {
"weather": {
"name": "Weather Station",
"group": [ "Outside" ],
"media": [ "all" ]
}
}
}
|
Option | Value |
id | 0 - 255 |
temperature | -39.9 - 59.9 |
humidity | 0 - 99 |
battery | 0 - 1 |
Optional Settings
Device Settings
Setting | Default | Format | Description |
temperature-offset | 0 | number | Correct temperature value |
humidity-offset | 0 | number | Correct humidity value |
GUI Settings
Setting | Default | Format | Description |
temperature-decimals | 2 | number | How many decimals the GUIs should display for temperature |
humidity-decimals | 2 | number | How many decimals the GUIs should display for humidity |
show-temperature | 1 | 1 or 0 | Don’t display the temperature value |
show-humidity | 1 | 1 or 0 | Don’t display the humidity value |
show-battery | 1 | 1 or 0 | Don’t display the battery value |
Protocol
The tcm protocol sends 74 pulses like
194 1035 194 1994 194 1994 194 1035 194 1994 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1035 194 1994 194 1994 194 1035 194 1035 194 1994 194 1035 194 1035 194 1035 194 1035 194 1035 194 1994 194 1994 194 1994 194 1035 194 1035 194 1035 194 1994 194 1994 194 8037
The next step is to transform this output into groups of 2 pulses.
194 1035
194 1994
194 1994
194 1035
194 1994
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1035
194 1994
194 1994
194 1035
194 1035
194 1994
194 1035
194 1035
194 1035
194 1035
194 1035
194 1994
194 1994
194 1994
194 1035
194 1035
194 1035
194 1994
194 1994
194 8037
If we now look at carefully at these groups you can distinguish two types of groups:
194 1035
194 1994
So the first group is defined by a low 2nd, the second group has a high 2nd pulse. So we take either of these two pulses to define a 0 or a 1. In this case we say a high 2nd pulse means a 1 and a low 2nd pulse means a 0. We then get the following output:
011010000000000000110010000011100011
Each (group) of numbers has a specific meaning:
ID : 01101000 | Bat : 0 | But : 0 | Hum : 00110010 | Temp : 000011100011
ID : 104 | Bat : OK | But : not pressed | Hum : 50% | Temp : 22.7°C
This protocol was created for pilight with the help of this thread: http://forum.arduino.cc/index.php?topic=136836.0 (german)
Comments
Please be aware that the ID of a sensor changes after you replace the batteries.