diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index da089aed5..6cc6d9029 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -39,7 +39,9 @@ harmony_Initialize($) $hash->{SetFn} = "harmony_Set"; $hash->{GetFn} = "harmony_Get"; $hash->{AttrFn} = "harmony_Attr"; - $hash->{AttrList} = "disable:1 nossl:1 $readingFnAttributes" + $hash->{AttrList} = "disable:1 nossl:1 $readingFnAttributes"; + + $hash->{FW_detailFn} = "harmony_detailFn"; } ##################################### @@ -126,6 +128,28 @@ harmony_Undefine($$) return undef; } +sub +harmony_detailFn() +{ + my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn. + my $hash = $defs{$d}; + + return if( !defined( $hash->{discoveryinfo} ) ); + + my $clientId = $hash->{discoveryinfo}->{setupSessionClient}; + $clientId =~ s/^\w*-//; + + my $hubIP = $hash->{discoveryinfo}->{ip}; + + my $hubName = $hash->{discoveryinfo}->{friendlyName}; + $hubName =~ s/ /%20/; + + return "myHarmony config
" +} + + + + sub harmony_idOfActivity($$;$) { @@ -805,7 +829,7 @@ harmony_Read($) if( $line eq "" ) { $hash->{STATE} = "LoggedIn"; $hash->{ConnectionState} = "LoggedIn"; - #harmony_sendIq($hash, "format=json"); + #harmony_sendIq($hash, ""); #harmony_sendIq($hash, ""); #harmony_sendIq($hash, ""); @@ -818,6 +842,8 @@ harmony_Read($) #harmony_sendIq($hash, ""); #harmony_sendIq($hash, "name=1vm7ATw/tN6HXGpQcCs/A5MkuvI#iOS6.0.1#iPhone"); + + harmony_sendIq($hash, "format=json"); harmony_sendEngineGet($hash, "config"); RemoveInternalTimer($hash);