diff --git a/Verbraucher_extern/module.php b/Verbraucher_extern/module.php index c5484c9..0aea825 100644 --- a/Verbraucher_extern/module.php +++ b/Verbraucher_extern/module.php @@ -71,7 +71,7 @@ class Verbraucher_extern extends IPSModule $kombinationen = [0]; foreach ($verbraucherListe as $verbraucher) { - if (GetValue($verbraucher['Read_Var']) == 1) { + if (GetValue($verbraucher['Read_Var']) == true) { $tempListe = []; if(empty($kombinationen)){ $kombinationen[] = $verbraucher['P_Nenn']; @@ -116,9 +116,9 @@ class Verbraucher_extern extends IPSModule foreach ($verbraucherListe as &$verbraucher) { if (in_array($verbraucher['P_Nenn'], $firstCombination)) { - RequestAction($verbraucher['Write_Var'], 1); + RequestAction($verbraucher['Write_Var'], false); } else { - RequestAction($verbraucher['Write_Var'], 0); + RequestAction($verbraucher['Write_Var'], true); } }