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:
parent
b54176ed31
commit
f2139cc26d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user