mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
30_DUOFERN: fix window contact
git-svn-id: https://svn.fhem.de/fhem/trunk@17827 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
42103af627
commit
6aecce45af
@ -65,8 +65,8 @@ my %sensorMsg = (
|
||||
"071F" => {"name" => "endSmoke", "chan" => 5, "state" => "off"},
|
||||
"0720" => {"name" => "startMotion", "chan" => 5, "state" => "on"},
|
||||
"0721" => {"name" => "endMotion", "chan" => 5, "state" => "off"},
|
||||
"0723" => {"name" => "closeStart", "chan" => 5, "state" => "on"},
|
||||
"0724" => {"name" => "closeEnd", "chan" => 5, "state" => "off"},
|
||||
"0723" => {"name" => "opened", "chan" => 5, "state" => "on"},
|
||||
"0724" => {"name" => "closed", "chan" => 5, "state" => "off"},
|
||||
"0E01" => {"name" => "off", "chan" => 6, "state" => "Btn01"},
|
||||
"0E02" => {"name" => "off", "chan" => 6, "state" => "Btn02"},
|
||||
"0E03" => {"name" => "on", "chan" => 6, "state" => "Btn03"},
|
||||
@ -1263,13 +1263,13 @@ DUOFERN_Parse($$)
|
||||
|
||||
if (!(exists $sensorMsg{$id})) {
|
||||
Log3 $hash, 3, "DUOFERN unknown msg: $msg";
|
||||
}
|
||||
} else {
|
||||
|
||||
my $chan = substr($msg, $sensorMsg{$id}{chan}*2 + 2 , 2);
|
||||
$chan = "01" if ($code =~ m/^(61|70|71)..../);
|
||||
|
||||
my @chans;
|
||||
if ($sensorMsg{$id}{chan} == 5) {
|
||||
if (($sensorMsg{$id}{chan} == 5) && ($chan ne "00")) {
|
||||
my $chanCount = 5;
|
||||
$chanCount = 4 if ($code =~ m/^(73)..../);
|
||||
for(my $x=0; $x<$chanCount; $x++) {
|
||||
@ -1310,6 +1310,7 @@ DUOFERN_Parse($$)
|
||||
readingsSingleUpdate($hash, "event", $sensorMsg{$id}{name}.$chan, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Umweltsensor Wetter
|
||||
} elsif ($msg =~ m/0F011322.{36}/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user