From d357ca7f8e9e78fe3edd1603781180d41cb11d95 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sat, 6 Nov 2021 13:59:33 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.56.8 git-svn-id: https://svn.fhem.de/fhem/trunk@25190 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 505b0bc12..cb2363fc6 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -2717,6 +2717,11 @@ sub _manageConsumerData { $data{$type}{$name}{consumers}{$c}{currpowerpercent} = $currpowerpercent; + ################################################# + # onoff funktioniert nur züverlässig wenn powerthreshold hier nochmal abgefragt wird ?!? + $pthreshold = ConsumerVal ($hash, $c, "powerthreshold", 1); + ################################################# + my $starthour; if($pcurr > $pthreshold || $currpowerpercent > $defpopercent) { # Verbraucher soll aktiv sein if(ConsumerVal ($hash, $c, "onoff", "off") eq "off") {