2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

93_DbLog.pm:

actuator: lime-protection is rewritten to new reading actuator-lime-protection


git-svn-id: https://svn.fhem.de/fhem/trunk@158 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2008-03-25 17:54:14 +00:00
parent 134a186fb4
commit dd760af26f

View File

@ -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