diff --git a/fhem/FHEM/59_Twilight.pm b/fhem/FHEM/59_Twilight.pm
index 1d7707c5f..e4ee67f90 100644
--- a/fhem/FHEM/59_Twilight.pm
+++ b/fhem/FHEM/59_Twilight.pm
@@ -108,7 +108,8 @@ sub Twilight_Define($$)
if(int(@a)>4) { if ($a[4] =~ /^[\+-]*[0-9]*\.*[0-9]*$/ && $a[4] !~ /^[\. ]*$/ ) {
$indoor_horizon = $a[4];
if($indoor_horizon > 20) { $indoor_horizon=20;}
- if($indoor_horizon < 0) { $indoor_horizon= 0;}
+ # minimal indoor_horizon makes values like civil_sunset and civil_sunrise
+ if($indoor_horizon < -6) { $indoor_horizon= -6;}
}else{
return "Argument Indoor_Horizon is not a valid number";}
}
@@ -752,7 +753,8 @@ sub twilight($$$$) {
indoor_horizon
- The parameter indoor_horizon gives a virtual horizon higher than 0, that shall be used for calculation of indoor twilight (typical values are between 0 and 6)
+ The parameter indoor_horizon gives a virtual horizon, that shall be used for calculation of indoor twilight. Minimal value -6 means indoor values are the same like civil values.
+ indoor_horizon 0 means indoor values are the same as real values. indoor_horizon > 0 means earlier indoor sunset resp. later indoor sunrise.
Weather_Position
@@ -861,6 +863,11 @@ sub twilight($$$$) {
+Example:
+
+ define BlindDown at *{twilight("myTwilight","sr_indoor","7:30","9:00")} set xxxx position 100
+ # xxxx is a defined blind
+
@@ -886,7 +893,8 @@ sub twilight($$$$) {
+ define BlindDown at *{twilight("myTwilight","sr_indoor","7:30","9:00")} set xxxx position 100
+ # xxxx ist ein definiertes Rollo
+