mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
HMCCU: Fixed bug in client device update routine
git-svn-id: https://svn.fhem.de/fhem/trunk@10261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1649001ff0
commit
7359d4563f
@ -860,7 +860,7 @@ sub HMCCU_UpdateClientReading ($@)
|
|||||||
my $ch = $defs{$d};
|
my $ch = $defs{$d};
|
||||||
my $cn = $ch->{NAME};
|
my $cn = $ch->{NAME};
|
||||||
|
|
||||||
next if ($hash->{TYPE} ne 'HMCCUDEV' && $hash->{TYPE} ne 'HMCCUCHN');
|
next if ($ch->{TYPE} ne 'HMCCUDEV' && $ch->{TYPE} ne 'HMCCUCHN');
|
||||||
next if (!defined ($ch->{IODev}) || !defined ($ch->{ccuaddr}));
|
next if (!defined ($ch->{IODev}) || !defined ($ch->{ccuaddr}));
|
||||||
next if ($ch->{IODev} != $hash);
|
next if ($ch->{IODev} != $hash);
|
||||||
next if ($ch->{ccuaddr} ne $devadd && $ch->{ccuaddr} ne $chnadd);
|
next if ($ch->{ccuaddr} ne $devadd && $ch->{ccuaddr} ne $chnadd);
|
||||||
@ -1384,6 +1384,7 @@ sub HMCCU_ReadRPCQueue ($)
|
|||||||
$HMCCU_EventTime = time () if ($eventno == 0);
|
$HMCCU_EventTime = time () if ($eventno == 0);
|
||||||
my @Tokens = split (/\|/, $element);
|
my @Tokens = split (/\|/, $element);
|
||||||
if ($Tokens[0] eq 'EV') {
|
if ($Tokens[0] eq 'EV') {
|
||||||
|
Log 2, "HMCCU: Event from ".$Tokens[1]." dp=".$Tokens[2]." val=".$Tokens[3];
|
||||||
my ($add, $chn) = split (/:/, $Tokens[1]);
|
my ($add, $chn) = split (/:/, $Tokens[1]);
|
||||||
my $reading = HMCCU_GetReadingName ('', $add, $chn, $Tokens[2], '',
|
my $reading = HMCCU_GetReadingName ('', $add, $chn, $Tokens[2], '',
|
||||||
$ccureadingformat);
|
$ccureadingformat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user