From 5a5c75f3f3f2bcf82a0d3ca2eeb83f89a933cad6 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Thu, 27 Jan 2022 18:58:06 +0000 Subject: [PATCH] 30_HUEBridge.pm: don't try to read /auth/v1 for deCONZ git-svn-id: https://svn.fhem.de/fhem/trunk@25571 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/30_HUEBridge.pm | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fhem/FHEM/30_HUEBridge.pm b/fhem/FHEM/30_HUEBridge.pm index d75d11c1a..9fff4d6e6 100644 --- a/fhem/FHEM/30_HUEBridge.pm +++ b/fhem/FHEM/30_HUEBridge.pm @@ -573,17 +573,19 @@ HUEBridge_OpenDev($) $hash->{mac} = $result->{mac}; - my $params = { - url => "https://$hash->{host}/auth/v1", - #httpversion => '1.1', - method => 'GET', - timeout => 5, - header => { 'HUE-Application-Key' => $attr{$name}{key}, }, - type => 'application id', - hash => $hash, - callback => \&HUEBridge_dispatch, - }; - HttpUtils_NonblockingGet( $params ); + if( !$hash->{is_deCONZ} ) { + my $params = { + url => "https://$hash->{host}/auth/v1", + #httpversion => '1.1', + method => 'GET', + timeout => 5, + header => { 'HUE-Application-Key' => $attr{$name}{key}, }, + type => 'application id', + hash => $hash, + callback => \&HUEBridge_dispatch, + }; + HttpUtils_NonblockingGet( $params ); + } readingsSingleUpdate($hash, 'state', 'connected', 1 );