diff --git a/LoraNovos3T/module.php b/LoraNovos3T/module.php index be833cf..811ccbe 100644 --- a/LoraNovos3T/module.php +++ b/LoraNovos3T/module.php @@ -104,7 +104,7 @@ class LoraNovos3T extends IPSModule { } - $temp = $this->CheckGetArrayValue($data,"Button"); + $temp = $this->CheckGetArrayValue($data,"OCCU0_STATE"); if ($temp != "failure") { $adressmodmodButton = $this->ReadPropertyInteger("modButton"); $this->ModbusPublish($devEui."Button", $modGwId, $devName." Button", $adressmodmodButton, $temp, $modFcReadActValues, $modFcWriteActValues,0);