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:
parent
837e3a5398
commit
332964d13b
@ -268,20 +268,25 @@ CUL_HM_Parse($$)
|
|||||||
|
|
||||||
} elsif($st eq "threeStateSensor") { #####################################
|
} 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/) {
|
if($p =~ m/^....C8/) {
|
||||||
push @event, "state:open";
|
push @event, "contact:open";
|
||||||
if($id eq $dst) {
|
if($id eq $dst) {
|
||||||
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
|
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
|
||||||
"C8"."0028", 1, 0);
|
"C8"."0028", 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
} elsif($p =~ m/^....00/) {
|
} elsif($p =~ m/^....00/) {
|
||||||
push @event, "state:closed";
|
push @event, "contact:closed";
|
||||||
if($id eq $dst) {
|
if($id eq $dst) {
|
||||||
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
|
CUL_HM_SendCmd($shash, "++8002".$id.$src."0101". # Send Ack.
|
||||||
"00"."0028", 1, 0);
|
"00"."0028", 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
push @event, "unknownMsg:$p" if(!@event);
|
push @event, "unknownMsg:$p" if(!@event);
|
||||||
|
|
||||||
} elsif($st eq "THSensor") { ##########################################
|
} elsif($st eq "THSensor") { ##########################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user