mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
10_EnOcean: GP teach-in modifications
git-svn-id: https://svn.fhem.de/fhem/trunk@19665 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4dc1e6cbf8
commit
650e2a956a
@ -6453,7 +6453,8 @@ sub EnOcean_Set($@)
|
|||||||
$destinationID = "FFFFFFFF";
|
$destinationID = "FFFFFFFF";
|
||||||
my $productID = AttrVal($name, "productID", undef);
|
my $productID = AttrVal($name, "productID", undef);
|
||||||
if (defined $productID) {
|
if (defined $productID) {
|
||||||
$productID = '0000000010' . EnOcean_convHexToBit($productID);
|
# GP V1.1 definition
|
||||||
|
$productID = '0000001000000100' . EnOcean_convHexToBit($productID);
|
||||||
} else {
|
} else {
|
||||||
$productID = '';
|
$productID = '';
|
||||||
}
|
}
|
||||||
@ -6521,7 +6522,10 @@ sub EnOcean_Set($@)
|
|||||||
# fill with trailing zeroes to x bytes
|
# fill with trailing zeroes to x bytes
|
||||||
$gpDefI .= 0 x (8 - length($gpDefI) % 8);
|
$gpDefI .= 0 x (8 - length($gpDefI) % 8);
|
||||||
}
|
}
|
||||||
$teachInInfo = '0000000001' . unpack('B8', pack('C', length($gpDefI) / 4));
|
# GP V1.0 definition
|
||||||
|
#$teachInInfo = '0000000001' . unpack('B8', pack('C', length($gpDefI) / 4));
|
||||||
|
# GP V1.1 definition
|
||||||
|
$teachInInfo = '0000000100000000';
|
||||||
}
|
}
|
||||||
#Log3 $name, 3, "EnOcean set $name header: $header O: $gpDefO Info: $teachInInfo I: $gpDefI";
|
#Log3 $name, 3, "EnOcean set $name header: $header O: $gpDefO Info: $teachInInfo I: $gpDefI";
|
||||||
# DophinView GP profile error if Product ID sent
|
# DophinView GP profile error if Product ID sent
|
||||||
|
Loading…
Reference in New Issue
Block a user