Zum Testen habe ich einmal geändert:
Ich vergleiche also bei 0<gv_elevation<=10 mit dem Helligkeitswert 100. Aktuell haben wir 357 Lux.
Plugin Debug Infos:
beschattung_v2.pl_azimuth 290.351747376989
beschattung_v2.pl_beschattungEin EIN
beschattung_v2.pl_beschattungEinTime 1203
beschattung_v2.pl_beschattungFreigabe EIN
beschattung_v2.pl_beschattungFreigabeOld EIN
beschattung_v2.pl_cycle 60
beschattung_v2.pl_elevation 6.59716245989438
beschattung_v2.pl_gt_raffstores_dyn UG_BUERO_TUER->A->0->EIN;UG_BUERO_S->A->1->EIN
beschattung_v2.pl_last 1343931697.22061
beschattung_v2.pl_lastsaved 1343930586
beschattung_v2.pl_meminc 0.299999999999999
beschattung_v2.pl_memstart 0
beschattung_v2.pl_result UG_BUERO_TUER->A->0->EIN;UG_BUERO_S->A->1->EIN
beschattung_v2.pl_runtime 0
beschattung_v2.pl_sperre 0
beschattung_v2.pl_ticks 253
beschattung_v2.pl_timeout_err 0
Letzte Änderung durchgeführt: ca. 20:03h.
Helligkeitsverlauf (siehe screenshot) (vor 19:50h passte der Datentyp für die Helligkeit noch nicht)
Herzlichen Dank, dass Du einmal draufschauen möchtest.
Gruß, Joachim
Code:
# Prüfen, ob das Telegramm etwas am aktuellen Status ändert und ggf. merken if ($gv_elevation > 0 and $gv_elevation <= 10 and $gv_helligkeit >= 100) { $gv_beschattungEin = 'J'; } if ($gv_elevation > 10 and $gv_elevation <= 20 and $gv_helligkeit >= 20000) { $gv_beschattungEin = 'J'; } if ($gv_elevation > 20 and $gv_elevation <= 30 and $gv_helligkeit >= 30000) { $gv_beschattungEin = 'J'; } if ($gv_elevation > 30 and $gv_elevation <= 40 and $gv_helligkeit >= 40000) { $gv_beschattungEin = 'J'; } if ($gv_elevation > 40 and $gv_elevation <= 50 and $gv_helligkeit >= 50000) { $gv_beschattungEin = 'J'; } if ($gv_elevation > 50 and $gv_elevation <= 90 and $gv_helligkeit >= 75000) { $gv_beschattungEin = 'J'; } if ($gv_elevation < 0) { $gv_beschattungEin = 0; } if ($gv_elevation > 0 and $gv_elevation <= 10 and $gv_helligkeit < 100) { $gv_beschattungEin = 'N'; } if ($gv_elevation > 10 and $gv_elevation <= 20 and $gv_helligkeit < 20000) { $gv_beschattungEin = 'N'; } if ($gv_elevation > 20 and $gv_elevation <= 30 and $gv_helligkeit < 30000) { $gv_beschattungEin = 'N'; } if ($gv_elevation > 30 and $gv_elevation <= 40 and $gv_helligkeit < 40000) { $gv_beschattungEin = 'N'; } if ($gv_elevation > 40 and $gv_elevation <= 50 and $gv_helligkeit < 50000) { $gv_beschattungEin = 'N'; } if ($gv_elevation > 50 and $gv_elevation <= 90 and $gv_helligkeit < 75000) { $gv_beschattungEin = 'N'; }
Plugin Debug Infos:
beschattung_v2.pl_azimuth 290.351747376989
beschattung_v2.pl_beschattungEin EIN
beschattung_v2.pl_beschattungEinTime 1203
beschattung_v2.pl_beschattungFreigabe EIN
beschattung_v2.pl_beschattungFreigabeOld EIN
beschattung_v2.pl_cycle 60
beschattung_v2.pl_elevation 6.59716245989438
beschattung_v2.pl_gt_raffstores_dyn UG_BUERO_TUER->A->0->EIN;UG_BUERO_S->A->1->EIN
beschattung_v2.pl_last 1343931697.22061
beschattung_v2.pl_lastsaved 1343930586
beschattung_v2.pl_meminc 0.299999999999999
beschattung_v2.pl_memstart 0
beschattung_v2.pl_result UG_BUERO_TUER->A->0->EIN;UG_BUERO_S->A->1->EIN
beschattung_v2.pl_runtime 0
beschattung_v2.pl_sperre 0
beschattung_v2.pl_ticks 253
beschattung_v2.pl_timeout_err 0
Letzte Änderung durchgeführt: ca. 20:03h.
Helligkeitsverlauf (siehe screenshot) (vor 19:50h passte der Datentyp für die Helligkeit noch nicht)
Herzlichen Dank, dass Du einmal draufschauen möchtest.
Gruß, Joachim
Kommentar