diff --git a/fhem/FHEM/10_IT.pm b/fhem/FHEM/10_IT.pm
index 816ff9e83..01552ba35 100644
--- a/fhem/FHEM/10_IT.pm
+++ b/fhem/FHEM/10_IT.pm
@@ -356,9 +356,13 @@ IT_Parse($$)
my $def;
my $newstate;
my @list;
+ if ((substr($msg, 0, 1)) ne 'i') {
+ Log3 undef,4,"message not supported by IT \"$msg\"!";
+ return undef;
+ }
if (length($msg) != 7 && length($msg) != 17) {
- Log3 undef,3,"message \"$msg\" to short!";
- return "message \"$msg\" to short!";
+ Log3 undef,3,"message \"$msg\" too short!";
+ return undef;
}
my $bin = undef;
if ( length($msg) == 17 ) {
@@ -464,13 +468,13 @@ IT_Parse($$)
IT - InterTechno
The InterTechno 433MHZ protocol is used by a wide range of devices, which are either of
- the sender/sensor category or the receiver/actuator category. As we right now
- able to SEND and RECEIVE InterTechno commands
- supports just devices like switches, dimmers, etc. through an CUL device, so this must be defined first.
+ the sender/sensor or the receiver/actuator category.
+ Right now, we are able to SEND and RECEIVE InterTechno commands.
+ Supported are devices like switches, dimmers, etc. through an CUL device, this must be defined first.
This module supports Intertechno protocol version 1 and version 3.
- New received device packages are add in fhem category IT with autocreate.
- Hint: IT protocol 1 devices are only created at pressed on button.
+ Newly found devices are added into the category "IT" by autocreate.
+ Hint: IT protocol 1 devices are created on pressing the on-button.
@@ -486,19 +490,19 @@ IT_Parse($$)
The value of housecode is a 10-digit InterTechno Code, consisting of 0/1/F as it is
- defined as a tri-state protocol. These digits depend on your device you are using.
+ defined as a tri-state protocol. These digits depend on the device you are using.
- Bit 11/12 are used for switching/dimming. As different manufacturers are using
+ Bit 11 and 12 are used for switching/dimming. As different manufacturers are using
different bit-codes you can specifiy here the 2-digit code for off/on/dimup/dimdown
in the same form: 0/1/F.
- The value of ITRotarySwitches consist of the value of the alpha switch A-P and
+ The value of ITRotarySwitches consists of the value of the alpha switch A-P and
the numeric switch 1-16 as set on the intertechno device. E.g. A1 or G12.
The value of FLS100RotarySwitches consist of the value of the I,II,II,IV switch
and the numeric 1,2,3,4 swicht. E.g. I2 or IV4.
- The value of ITRotarySwitches and FLS100RotarySwitches is internaly translated
+ The value of ITRotarySwitches and FLS100RotarySwitches are internaly translated
into a houscode value.
@@ -526,7 +530,8 @@ Examples:
define lamp IT II2
- For Intertechno protocol 3 is the <housecode> a 26-digits number. Additionaly there are a 4-digits unit code and a 1-digit group code used.
+ For Intertechno protocol 3 the <housecode> is a 26-digits number.
+ Additionaly there are a 4-digits unit code and a 1-digit group code used.
<address> is a 26 digit number (0/1)
<group> is a 1 digit number (0/1)
@@ -566,9 +571,8 @@ Examples:
Notes:
- on-till requires an absolute time in the "at" format (HH:MM:SS, HH:MM
- or { <perl code> }, where the perl-code returns a time
- specification).
- If the current time is greater than the specified time, then the
+ or { <perl code> }, where the perl-code returns a time specification).
+ If the current time is greater than the specified time, the
command is ignored, else an "on" command is generated, and for the
given "till-time" an off command is scheduleld via the at command.
@@ -583,18 +587,19 @@ Examples:
- IODev
- Set the IO or physical device which should be used for sending signals
- for this "logical" device. An example for the physical device is a CUL.
- Note: Upon startup fhem DOES NOT assigns an InterTechno device an
- IODevice! The attribute IODev needs to be used AT ANY TIME!
+ Set the IO device which will be used to send signals
+ for this device. An example for the physical device is a CUL.
+ Note: On startup, fhem DOES NOT assign an InterTechno device to an
+ IODevice! The attribute IODev needs to be used ALWAYS!
- eventMap
Replace event names and set arguments. The value of this attribute
- consists of a list of space separated values, each value is a colon
+ consists of a list of space separated values. Each value is a colon
separated pair. The first part specifies the "old" value, the second
- the new/desired value. If the first character is slash(/) or komma(,)
- then split not by space but by this character, enabling to embed spaces.
+ the new/desired value. If the first character is slash(/) or comma(,)
+ the values are not separated by space but by this character to
+ enable spaces in values.
Examples:
attr store eventMap on:open off:closed
attr store eventMap /on-for-timer 10:open/off:closed/
@@ -617,16 +622,16 @@ Examples:
- model
- The model attribute denotes the model type of the device.
- The attributes will (currently) not be used by the fhem.pl directly.
+ The model attribute denotes the type of the device.
+ This attribute will (currently) not be used by fhem.pl directly.
It can be used by e.g. external programs or web interfaces to
distinguish classes of devices and send the appropriate commands
(e.g. "on" or "off" to a switch, "dim..%" to dimmers etc.).
- The spelling of the model names are as quoted on the printed
- documentation which comes which each device. This name is used
- without blanks in all lower-case letters. Valid characters should be
+ The spelling of the model should match the modelname used in the
+ documentation that comes which the device. The name should consist of
+ lower-case characters without spaces. Valid characters are
a-z 0-9 and - (dash),
- other characters should be ommited. Here is a list of "official"
+ other characters should not be used. Here is a list of "official"
devices:
Sender/Sensor: itremote
@@ -639,11 +644,11 @@ Examples:
- ignore
Ignore this device, e.g. if it belongs to your neighbour. The device
- won't trigger any FileLogs/notifys, issued commands will silently
+ won't trigger any FileLogs/notifys, issued commands will be silently
ignored (no RF signal will be sent out, just like for the dummy attribute). The device won't appear in the
list command (only if it is explicitely asked for it), nor will it
- appear in commands which use some wildcard/attribute as name specifiers
+ be affected by commands which use wildcards or attributes as name specifiers
(see devspec). You still get them with the
"ignored=1" special devspec.
@@ -654,7 +659,7 @@ Examples:
Generated events:
- From an IT device you can receive one of the following events.
+ From an IT device you can receive the following events.
- on
- off
- dimdown