mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
statistics: duration set_on/set_off = on/off
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12218 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f46f72504f
commit
7cf7ff5539
@ -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