LUXTRONIK: debugging possibilities

git-svn-id: https://svn.fhem.de/fhem/trunk@6867 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch
2014-11-02 12:21:35 +00:00
parent 088fe96452
commit 19367a37f7
2 changed files with 104 additions and 87 deletions

View File

@@ -3,12 +3,12 @@
#
# 98_statistic.pm
#
# Copyright notice
#
# (c) 2014 Torsten Poitzsch < torsten . poitzsch at gmx . de >
#
# This module computes statistic data of and for readings of other modules
#
# Copyright notice
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -66,6 +66,7 @@ sub statistics_UpdateDevReading($$$$);
,["energy", 2]
,["energy_current", 1, 1]
,["energy_total", 2]
,["Total.Energy", 2]
,["humidity", 1, 0]
,["lightsensor", 3]
,["lock", 3]
@@ -97,7 +98,7 @@ statistics_Log($$$)
$sub =~ s/statistics_//;
my $instName = ( ref($hash) eq "HASH" ) ? $hash->{NAME} : $hash;
Log3 $hash, $loglevel, "$MODUL $instName: $sub.$xline " . $text;
Log3 $instName, $loglevel, "$MODUL $instName: $sub.$xline " . $text;
}
sub ##########################################
@@ -146,6 +147,7 @@ statistics_Define($$)
$hash->{DEV_REGEXP} = $devName;
$hash->{STATE} = "Waiting for notifications";
$hash->{fhem}{modulVersion} = $modulVersion;
RemoveInternalTimer($hash);