threeStateSensor event names changed
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1123 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -604,11 +604,11 @@ CUL_HM_Parse($$)
|
|||||||
my $lst = defined($1) ? $1 : "00";
|
my $lst = defined($1) ? $1 : "00";
|
||||||
|
|
||||||
if($p =~ m/^0601000E$/) {
|
if($p =~ m/^0601000E$/) {
|
||||||
push @event, "state:alive";
|
push @event, "alive:yes";
|
||||||
|
|
||||||
} elsif($p =~ m/^0601..00$/) {
|
} elsif($p =~ m/^0601..00$/) {
|
||||||
push @event, "cover:closed";
|
push @event, "cover:closed";
|
||||||
push @event, "state:alive";
|
push @event, "alive:yes";
|
||||||
|
|
||||||
} elsif($p =~ m/^0601..0E$/) {
|
} elsif($p =~ m/^0601..0E$/) {
|
||||||
push @event, "cover:open";
|
push @event, "cover:open";
|
||||||
@@ -622,7 +622,7 @@ CUL_HM_Parse($$)
|
|||||||
if($model eq "HM-SEC-WDS");
|
if($model eq "HM-SEC-WDS");
|
||||||
|
|
||||||
if($txt{$lst}) {
|
if($txt{$lst}) {
|
||||||
push @event, "contact:$txt{$lst}$target";
|
push @event, "state:$txt{$lst}$target";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$lst = "00"; # for the ack
|
$lst = "00"; # for the ack
|
||||||
|
|||||||
Reference in New Issue
Block a user