From 082a684fa04d68b346085643c303c977e2d2438f Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Thu, 23 Apr 2015 20:35:21 +0000 Subject: [PATCH] 37_harmony.pm: fix for changed spelling in hub firmware 4.4.36 git-svn-id: https://svn.fhem.de/fhem/trunk@8472 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_harmony.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index d1a09d9ce..4c67b8a99 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -984,11 +984,13 @@ harmony_Read($) } - } elsif( $content =~ m/\?startactivity/ ) { - if( $cdata =~ m/done=(\d*):total=(\d*):deviceId=(\d*)/ ) { + } elsif( $content =~ m/\?startactivity/i ) { + if( $cdata =~ m/done=(\d*):total=(\d*)(:deviceId=(\d*))?/ ) { my $done = $1; my $total = $2; - my $id = $3; + my $id = $4; + + $id = "" if( !defined($id) ); my $label = harmony_labelOfDevice($hash,$id,$id);