From ee3d7b0efd09ba535d6920fa9eed3e47b10266e7 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Fri, 21 Dec 2018 10:55:47 +0000 Subject: [PATCH] 37_harmony.pm: restart discovery if additional device gets defined git-svn-id: https://svn.fhem.de/fhem/trunk@18019 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_harmony.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index b66f05e4c..6ec7d7a71 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -60,6 +60,10 @@ harmony_Initialize($) sub harmony_startDiscovery() { + if( defined($modules{harmony}{defptr}{'harmony:discovery'}) ) { + fhem( "set harmony:discovery discover" ); + } + return if( $modules{harmony}{defptr}{'harmony:discovery'} ); Log3 undef, 3, "harmony: starting discovery" ; @@ -1093,7 +1097,7 @@ harmony_Parse($$$) } elsif( $content =~ m/engine\?holdAction$/ ) { $ignored = 1; - + } elsif( $content =~ m/engine\?setsleeptimer$/ ) { $ignored = 1;