diff --git a/fhem/FHEM/24_TPLinkHS110.pm b/fhem/FHEM/24_TPLinkHS110.pm index cda0997d5..1c55f054f 100644 --- a/fhem/FHEM/24_TPLinkHS110.pm +++ b/fhem/FHEM/24_TPLinkHS110.pm @@ -170,6 +170,9 @@ sub TPLinkHS110_Get($$) foreach my $key (sort keys @{$json->{'emeter'}->{'get_daystat'}->{'day_list'}}) { foreach my $key2 ($json->{'emeter'}->{'get_daystat'}->{'day_list'}[$key]) { $total = $total+ $key2->{'energy'}; + if ($key2->{'day'} == $mday) { + readingsBulkUpdate($hash, "daily_total", sprintf("%.3f", $key2->{'energy'})); + } } } my $count=1;