mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_EnOcean.pm: subType hvac.04 changed
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10018 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c09dfb3f2f
commit
30771f002f
@ -5465,7 +5465,7 @@ sub EnOcean_Parse($$)
|
||||
# action needed?
|
||||
}
|
||||
|
||||
my $blockKey = AttrVal($name, "blockKey", 0) << 2;
|
||||
my $blockKey = ((AttrVal($name, "blockKey", 'no') eq 'yes') ? 1 : 0) << 2;
|
||||
my $displayOrientation = $displayOrientation{AttrVal($name, "displayOrientation", 0)} << 4;
|
||||
my $maintenanceMode = ReadingsVal($name, "maintenanceMode", "off");
|
||||
my $measurementCtrl = (AttrVal($name, 'measurementCtrl', 'enable') eq 'enable') ? 0 : 0x40;
|
||||
@ -9368,7 +9368,7 @@ sub EnOcean_Notify(@)
|
||||
|
||||
} elsif ($devName eq "global" && $s =~ m/^ATTR ([^ ]*) ([^ ]*) ([^ ]*)$/) {
|
||||
my ($sdev, $attrName, $attrVal) = ($1, $2, $3);
|
||||
Log3 $name, 5, "EnOcean $name <notify> ATTR $1 $2 $3";
|
||||
#Log3 $name, 5, "EnOcean $name <notify> ATTR $1 $2 $3";
|
||||
if ($name eq $sdev && $attrName =~ m/^subDef.?/ && $attrVal eq "getNextID") {
|
||||
$attr{$name}{$attrName} = '0' x 8;
|
||||
$attr{$name}{$attrName} = EnOcean_CheckSenderID("getNextID", $defs{$name}{IODev}{NAME}, "00000000");
|
||||
|
Loading…
x
Reference in New Issue
Block a user