bugfix: make BS known to CUL to avoid lost messages if both FHZ1300 and CUL are connected, adjust matching rule

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@641 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
neubert
2010-05-30 09:31:48 +00:00
parent d7f220cd5c
commit 95bb37df07
5 changed files with 32 additions and 18 deletions

View File

@@ -205,6 +205,15 @@ DbLog_ParseEvent($$)
if($reading eq "humidity") { $unit= "%"; }
}
# BS
elsif($type eq "BS") {
if($event =~ m(brightness:.*)) {
@parts= split(/ /,$event);
$reading= "lux";
$value= $parts[4]*1.;
$unit= "lux";
}
}
@result= ($reading,$value,$unit);
return @result;