2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

threestatesensor changes

git-svn-id: https://svn.fhem.de/fhem/trunk@803 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-01-15 11:51:16 +00:00
parent 837e3a5398
commit 332964d13b

View File

@ -268,20 +268,25 @@ CUL_HM_Parse($$)
} elsif($st eq "threeStateSensor") { #####################################
push @event, "cover:closed" if($p =~ m/^0601..00$/);
push @event, "cover:open" if($p =~ m/^0601..0E$/);
push @event, "state:alive" if($p =~ m/^0601000E$/);
if($p =~ m/^....C8/) {
push @event, "state:open";
push @event, "contact:open";
if($id eq $dst) {
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
"C8"."0028", 1, 0);
}
} elsif($p =~ m/^....00/) {
push @event, "state:closed";
push @event, "contact:closed";
if($id eq $dst) {
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
"00"."0028", 1, 0);
}
}
push @event, "unknownMsg:$p" if(!@event);
} elsif($st eq "THSensor") { ##########################################