mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
threeStateSensor added (by Oskar)
git-svn-id: https://svn.fhem.de/fhem/trunk@800 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4f53aa2953
commit
e687ba7e78
@ -266,6 +266,24 @@ CUL_HM_Parse($$)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} elsif($st eq "threeStateSensor") { #####################################
|
||||||
|
|
||||||
|
if($p =~ m/^....C8/) {
|
||||||
|
push @event, "state: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";
|
||||||
|
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") { ##########################################
|
} elsif($st eq "THSensor") { ##########################################
|
||||||
|
|
||||||
if($p =~ m/^(....)(..)$/) {
|
if($p =~ m/^(....)(..)$/) {
|
||||||
@ -510,7 +528,7 @@ CUL_HM_Pair(@)
|
|||||||
$attr{$name}{subType} = $dp ? $dp->{st} : "unknown";
|
$attr{$name}{subType} = $dp ? $dp->{st} : "unknown";
|
||||||
$attr{$name}{hmClass} = $dp ? $dp->{cl} : "unknown";
|
$attr{$name}{hmClass} = $dp ? $dp->{cl} : "unknown";
|
||||||
$attr{$name}{serialNr} = pack('H*', substr($p, 6, 20));
|
$attr{$name}{serialNr} = pack('H*', substr($p, 6, 20));
|
||||||
$attr{$name}{firmware} = substr($p, 0, 2)/10;
|
$attr{$name}{firmware} = sprintf("%0.1f", substr($p, 0, 2)/10);
|
||||||
my $isSender = (AttrVal($name,"hmClass","") eq "sender");
|
my $isSender = (AttrVal($name,"hmClass","") eq "sender");
|
||||||
|
|
||||||
my $stn = $attr{$name}{subType}; # subTypeName
|
my $stn = $attr{$name}{subType}; # subTypeName
|
||||||
|
@ -2178,7 +2178,7 @@ A line ending with \ will be concatenated with the next one, so long lines
|
|||||||
is a separate firmware with HomeMatic support which lacks FHT support.
|
is a separate firmware with HomeMatic support which lacks FHT support.
|
||||||
</li>
|
</li>
|
||||||
<li><b>Note</b>: Currently supported device families: remote, switch, dimmer,
|
<li><b>Note</b>: Currently supported device families: remote, switch, dimmer,
|
||||||
blindActuator.
|
blindActuator, smokeDetector, threeStateSensor and THSensor.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user