diff --git a/Boiler_2_Stufig_Landwirtschaft/module.php b/Boiler_2_Stufig_Landwirtschaft/module.php index 0813fb0..49b8a5a 100644 --- a/Boiler_2_Stufig_Landwirtschaft/module.php +++ b/Boiler_2_Stufig_Landwirtschaft/module.php @@ -82,11 +82,12 @@ class Boiler_2_Stufig_Landwirtschaft extends IPSModule } public function getNextTimeAndTemperature($zeitplan) { - if (empty($zeitplan)) { + $arr = json_decode($arrString); + if (empty($arr)) { return null; } $currentTime = date('H:i'); - foreach ($zeitplan as $entry) { + foreach ($arr as $entry) { if ($entry['Uhrzeit'] > $currentTime) { return $entry; } diff --git a/library.json b/library.json index 6555cbf..182f5a4 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.032", + "version": "1.033", "build": 0, "date": 0 } \ No newline at end of file