diff --git a/fhem/FHEM/12_OilFox.pm b/fhem/FHEM/12_OilFox.pm index dedab3561..4f222efe9 100644 --- a/fhem/FHEM/12_OilFox.pm +++ b/fhem/FHEM/12_OilFox.pm @@ -50,6 +50,7 @@ BEGIN { modules attr AttrVal + AttrNum InternalTimer RemoveInternalTimer Log3 @@ -87,6 +88,7 @@ sub Initialize($) { "password " . "oilfox " . "interval " . + "timeout " . $readingFnAttributes; } @@ -300,7 +302,7 @@ sub APIAuth($) { HttpUtils_NonblockingGet({ url => API . "customer-api/v1/login", - timeout => 5, + timeout => AttrNum($name, "timeout", 45), hash => $hash, method => "POST", header => $header, @@ -406,7 +408,7 @@ sub get($) { HttpUtils_NonblockingGet({ url => API . "customer-api/v1/device", - timeout => 5, + timeout => AttrNum($name, "timeout", 45), hash => $hash, method => "GET", header => $header, @@ -487,7 +489,7 @@ sub getResponse($) { =item summary support for OilFox =begin html - +

OilFox


- + Define