correct Log3

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3918 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-09-16 20:14:27 +00:00
parent ad7f649dcb
commit b3f8dece96
2 changed files with 5 additions and 6 deletions

View File

@ -770,7 +770,7 @@ sub TRX_LIGHT_parse_PT2262 ($$)
Log3 $name, 5,"PT2262: found=$1"; Log3 $name, 5,"PT2262: found=$1";
$command = $1; $command = $1;
} }
Log3 $name, 1,"TRX_LIGHT_parse_PT2262() readingsBulkUpdate($def, $sensor, $command)"; Log3 $name, 5,"TRX_LIGHT_parse_PT2262() readingsBulkUpdate($def, $sensor, $command)";
$val = $command; $val = $command;
if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $val); } if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $val); }
} }
@ -817,12 +817,11 @@ TRX_LIGHT_Parse($$)
#Log3 $iohash, 5, "TRX_LIGHT: num_bytes=$num_bytes hex=$hexline type=$type"; #Log3 $iohash, 5, "TRX_LIGHT: num_bytes=$num_bytes hex=$hexline type=$type";
my $res = ""; my $res = "";
if ($type == 0x10 || $type == 0x11 || $type == 0x12 || $type == 0x14) { if ($type == 0x10 || $type == 0x11 || $type == 0x12 || $type == 0x14) {
Log3 $iohash, 1, "TRX_LIGHT_Parse() X10 num_bytes=$num_bytes hex=$hexline"; Log3 $iohash, 5, "TRX_LIGHT_Parse() X10 num_bytes=$num_bytes hex=$hexline";
$res = TRX_LIGHT_parse_X10($iohash, \@rfxcom_data_array); $res = TRX_LIGHT_parse_X10($iohash, \@rfxcom_data_array);
Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq ""); Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq "");
return $res; return $res;
} elsif ($type == 0x13) { } elsif ($type == 0x13) {
#Log3 $iohash, 1, "TRX_LIGHT_Parse() Lighting4/PT2262 num_bytes=$num_bytes hex=$hexline";
Log3 $iohash, 5, "TRX_LIGHT_Parse()Lighting4/PT2262 num_bytes=$num_bytes hex=$hexline"; Log3 $iohash, 5, "TRX_LIGHT_Parse()Lighting4/PT2262 num_bytes=$num_bytes hex=$hexline";
$res = TRX_LIGHT_parse_PT2262($iohash, \@rfxcom_data_array); $res = TRX_LIGHT_parse_PT2262($iohash, \@rfxcom_data_array);
Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq ""); Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq "");

View File

@ -166,7 +166,7 @@ TRX_SECURITY_Set($@)
# lightning1 # lightning1
$hex_prefix = sprintf "0820"; $hex_prefix = sprintf "0820";
$hex_command = sprintf "%02x%02x%02s%02s%02s%02x00", $device_type_num & 0xff, $seqnr, $id1, $id2, $id3, $cmnd; $hex_command = sprintf "%02x%02x%02s%02s%02s%02x00", $device_type_num & 0xff, $seqnr, $id1, $id2, $id3, $cmnd;
Log3 $name, 1,"TRX_SECURITY_Set() name=$name device_type=$device_type, deviceid=$deviceid id1=$id1, id2=$id2, id3=$id3, command=$command"; Log3 $name, 5,"TRX_SECURITY_Set() name=$name device_type=$device_type, deviceid=$deviceid id1=$id1, id2=$id2, id3=$id3, command=$command";
Log3 $name, 5,"TRX_SECURITY_Set() hexline=$hex_prefix$hex_command"; Log3 $name, 5,"TRX_SECURITY_Set() hexline=$hex_prefix$hex_command";
if ($device_type ne "KD101") { if ($device_type ne "KD101") {
@ -415,7 +415,7 @@ sub TRX_SECURITY_parse_X10Sec($$) {
if ($battery_level == 0x9) { $battery = 'batt_ok'} if ($battery_level == 0x9) { $battery = 'batt_ok'}
elsif ($battery_level == 0x0) { $battery = 'batt_low'} elsif ($battery_level == 0x0) { $battery = 'batt_low'}
else { else {
Log3 $name, 1,"TRX_SECURITY_parse_X10Sec() unkown battery_level=$battery_level"; Log3 $name, 1,"TRX_SECURITY_parse_X10Sec() unknown battery_level=$battery_level";
} }
} }
@ -566,7 +566,7 @@ TRX_SECURITY_Parse($$)
Log3 $iohash, 1, "TRX_SECURITY_Parse() unsupported hex=$hexline" if ($res eq ""); Log3 $iohash, 1, "TRX_SECURITY_Parse() unsupported hex=$hexline" if ($res eq "");
return $res; return $res;
} else { } else {
Log3 $iohash, 0, "TRX_SECURITY_Parse() not implemented num_bytes=$num_bytes hex=$hexline"; Log3 $iohash, 1, "TRX_SECURITY_Parse() not implemented num_bytes=$num_bytes hex=$hexline";
} }
return ""; return "";