2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 20:06:18 +00:00

statistics: duration set_on/set_off = on/off

git-svn-id: https://svn.fhem.de/fhem/trunk@12218 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
grompo 2016-09-27 19:25:42 +00:00
parent b54176ed31
commit f2139cc26d

View File

@ -958,6 +958,9 @@ sub statistics_doStatisticDurationSingle ($$$$$$)
my $name=$hash->{NAME};
my $devName = $dev->{NAME};
$state =~ s/ /_/g;
$state = "on" if $state =~ /set_on/;
$state = "off" if $state =~ /set_off/;
my $statReadingName = $hash->{PREFIX};
$statReadingName .= ucfirst($readingName).$period;