From 38d454539717ba4bb39d011c74a72b87875b37ca Mon Sep 17 00:00:00 2001 From: borisneubert Date: Tue, 25 Mar 2008 17:54:14 +0000 Subject: [PATCH] 93_DbLog.pm: actuator: lime-protection is rewritten to new reading actuator-lime-protection git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@158 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/dblog/93_DbLog.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/dblog/93_DbLog.pm b/contrib/dblog/93_DbLog.pm index 39d8c0930..1af522b43 100755 --- a/contrib/dblog/93_DbLog.pm +++ b/contrib/dblog/93_DbLog.pm @@ -126,9 +126,13 @@ DbLog_ParseEvent($$) if($reading =~ m(-temp)) { $value=~ s/ \(Celsius\)//; $unit= "°C"; } if($reading =~ m(temp-offset)) { $value=~ s/ \(Celsius\)//; $unit= "°C"; } if($reading eq "actuator") { - # TODO: 2008-03-24 currently something wrong: - # "actuator: lime-protection" - $value=~ s/%//; $value= $value*1.; $unit= "%"; + if($value eq "lime-protection") { + $reading= "actuator-lime-protection"; + undef $value; + } + else { + $value=~ s/%//; $value= $value*1.; $unit= "%"; + } } } # KS300