mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
73_ElectricityCalculator: Bugfix - Handling of Readnings with .
git-svn-id: https://svn.fhem.de/fhem/trunk@23696 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d803aed5da
commit
24d6b619d3
@ -422,8 +422,8 @@ sub ElectricityCalculator_MidnightTimer($)
|
||||
my $RegEx = $ElectricityCalcDev->{REGEXP};
|
||||
my ($ElectricityCountName, $ElectricityCountReadingRegEx) = split(":", $RegEx, 2);
|
||||
my $ElectricityCountDev = $defs{$ElectricityCountName};
|
||||
$ElectricityCountReadingRegEx =~ s/[\.\*]//g;
|
||||
|
||||
$ElectricityCountReadingRegEx =~ s/[\.\*]+$//;
|
||||
|
||||
my @ElectricityCountReadingNameListComplete = keys(%{$ElectricityCountDev->{READINGS}});
|
||||
my @ElectricityCountReadingNameListFiltered;
|
||||
|
||||
@ -437,7 +437,9 @@ sub ElectricityCalculator_MidnightTimer($)
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer__________________________________________________________";
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer : MidnightTimer initiated";
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer - RegEx : " . $RegEx;
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer - ReadingRegEx : " . $ElectricityCountReadingRegEx;
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer - ElectricityCountName : " . $ElectricityCountName;
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer - ElectricityCountReadComp : " . Dumper(@ElectricityCountReadingNameListComplete);
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator_MidnightTimer - ElectricityCountReadList : " . Dumper(@ElectricityCountReadingNameListFiltered);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user