From fe96f227d5358d5400c7830a220c10618feff1ff Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 15 Dec 2017 15:07:36 +0100 Subject: [PATCH] fix gub --- 74_AMADDevice.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/74_AMADDevice.pm b/74_AMADDevice.pm index 2b2d261..b1ceccb 100644 --- a/74_AMADDevice.pm +++ b/74_AMADDevice.pm @@ -364,8 +364,8 @@ sub AMADDevice_statusRequest($) { $header .= "\r\nfhemip: $fhemip\r\nfhemdevice: $name\r\nactivetask: $activetask\r\napssid: $apssid\r\nbport: $bport\r\nuserflowstate: $userFlowState\r\namadid: $amad_id\r\nfhemctlmode: $fhemCtlMode"; - $method = "GET" AttrVal($name,'remoteServer','Automagic') eq 'Automagic'; - $method = "POST" AttrVal($name,'remoteServer','Automagic') ne 'Automagic'; + $method = "GET" if( AttrVal($name,'remoteServer','Automagic') eq 'Automagic' ); + $method = "POST" if (AttrVal($name,'remoteServer','Automagic') ne 'Automagic' ); $path ="/fhem-amad/deviceInfo/"; # Pfad muß so im Automagic als http request Trigger drin stehen readingsSingleUpdate( $hash, "lastSetCommand", $path, 1 );