From 8b67e9c63b8e5534a0dfcb1ed0cc363f8a453db2 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Fri, 28 Jan 2022 10:43:31 +0000 Subject: [PATCH] 30_HUEBridge.pm: added eventstreamTimeout attribute. see forum: https://forum.fhem.de/index.php/topic,122075.msg1203980.html git-svn-id: https://svn.fhem.de/fhem/trunk@25575 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/30_HUEBridge.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/30_HUEBridge.pm b/fhem/FHEM/30_HUEBridge.pm index 9fff4d6e6..4c633cbaa 100644 --- a/fhem/FHEM/30_HUEBridge.pm +++ b/fhem/FHEM/30_HUEBridge.pm @@ -47,7 +47,7 @@ sub HUEBridge_Initialize($) $hash->{GetFn} = "HUEBridge_Get"; $hash->{AttrFn} = "HUEBridge_Attr"; $hash->{UndefFn} = "HUEBridge_Undefine"; - $hash->{AttrList} = "key disable:1 disabledForIntervals createEventTimestampReading:1,0 createGroupReadings:1,0 httpUtils:1,0 noshutdown:1,0 pollDevices:1,2,0 queryAfterSet:1,0 $readingFnAttributes"; + $hash->{AttrList} = "key disable:1 disabledForIntervals createEventTimestampReading:1,0 eventstreamTimeout createGroupReadings:1,0 httpUtils:1,0 noshutdown:1,0 pollDevices:1,2,0 queryAfterSet:1,0 $readingFnAttributes"; #$hash->{isDiscoverable} = { ssdp => {'hue-bridgeid' => '/.*/'}, upnp => {} }; @@ -461,7 +461,7 @@ HUEBridge_openEventStream($) url => "https://$hash->{host}/eventstream/clip/v2", httpversion => '1.1', method => 'GET', - timeout => 60*60, + timeout => AttrVal($name, 'eventstreamTimeout', 60*60), incrementalTimeout => 1, noshutdown => 1, keepalive => 1,