mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 06:48:43 +00:00
statistics: fixed duration empty string
git-svn-id: https://svn.fhem.de/fhem/trunk@11054 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b4673306e4
commit
8d1cf8bfcc
@ -883,7 +883,9 @@ sub statistics_doStatisticDuration ($$$$)
|
|||||||
|
|
||||||
# Get reading
|
# Get reading
|
||||||
my $state = $dev->{READINGS}{$readingName}{VAL};
|
my $state = $dev->{READINGS}{$readingName}{VAL};
|
||||||
|
|
||||||
|
$state = "(null)" if $state eq "";
|
||||||
|
|
||||||
statistics_Log $hash, 4, "Calculating duration statistics for '".$dev->{NAME}.":$readingName = $state'";
|
statistics_Log $hash, 4, "Calculating duration statistics for '".$dev->{NAME}.":$readingName = $state'";
|
||||||
# Daily Statistic
|
# Daily Statistic
|
||||||
statistics_doStatisticDurationSingle $hash, $dev, $readingName, "Day", $state, ($periodSwitch >= 2 || $periodSwitch <= -2);
|
statistics_doStatisticDurationSingle $hash, $dev, $readingName, "Day", $state, ($periodSwitch >= 2 || $periodSwitch <= -2);
|
||||||
@ -1104,7 +1106,7 @@ sub statistics_UpdateDevReading($$$$)
|
|||||||
<a name="statistics"></a>
|
<a name="statistics"></a>
|
||||||
<h3>statistics</h3>
|
<h3>statistics</h3>
|
||||||
(en | <a href="http://fhem.de/commandref_DE.html#statistics">de</a>)
|
(en | <a href="http://fhem.de/commandref_DE.html#statistics">de</a>)
|
||||||
<div style="width:800px">
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
This modul calculates for certain readings of given devices statistical values and adds them to the devices.
|
This modul calculates for certain readings of given devices statistical values and adds them to the devices.
|
||||||
<br>
|
<br>
|
||||||
@ -1250,7 +1252,7 @@ sub statistics_UpdateDevReading($$$$)
|
|||||||
<a name="statistics"></a>
|
<a name="statistics"></a>
|
||||||
<h3>statistics</h3>
|
<h3>statistics</h3>
|
||||||
(<a href="http://fhem.de/commandref.html#statistics">en</a> | de)
|
(<a href="http://fhem.de/commandref.html#statistics">en</a> | de)
|
||||||
<div style="width:800px">
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
Dieses Modul wertet von den angegebenen Geräten (als regulärer Ausdruck) bestimmte Werte statistisch aus und fügt das Ergebnis den jeweiligen Geräten als neue Werte hinzu.
|
Dieses Modul wertet von den angegebenen Geräten (als regulärer Ausdruck) bestimmte Werte statistisch aus und fügt das Ergebnis den jeweiligen Geräten als neue Werte hinzu.
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user