diff --git a/FHEM/59_Twilight.pm b/FHEM/59_Twilight.pm
index 6542d2f0f..846cc725a 100644
--- a/FHEM/59_Twilight.pm
+++ b/FHEM/59_Twilight.pm
@@ -583,6 +583,17 @@ sub Twilight_CompassPoint($) {
return $compassPoint;
}
+sub twilight($$$$) {
+ my ($twilight, $reading, $min, $max) = @_;
+
+ my $t = hms2h(ReadingsVal($twilight,$reading,0));
+
+ $t = hms2h($min) if(defined($min) && (hms2h($min) > $t));
+ $t = hms2h($max) if(defined($max) && (hms2h($max) < $t));
+
+ return h2hms_fmt($t);
+}
+
1;
=pod
@@ -663,30 +674,30 @@ sub Twilight_CompassPoint($) {
get <name> <reading>
light | the current virtual daylight value |
nextEvent | the name of the next event |
nextEventTime | the time when the next event will probably happen (during light phase 5 and 6 this is updated when weather conditions change |
sr_astro | time of astronomical sunrise |
sr_naut | time of nautical sunrise |
sr_civil | time of civil sunrise |
sr | time of sunrise |
sr_indoor | time of indoor sunrise |
sr_weather | time of weather sunrise |
ss_weather | time of weather sunset |
ss_indoor | time of indoor sunset |
ss | time of sunset |
ss_civil | time of civil sunset |
ss_nautic | time of nautic sunset |
ss_astro | time of astro sunset |
azimuth | the current azimuth of the sun 0° ist north 180° is south |
compasspoint | a textual representation of the compass point |
elevation | the elevaltion of the sun |
twilight | a percetal value of a new (twi)light value: (elevation+12)/18 * 100) |
twilight_weather | a percetal value of a new (twi)light value: (elevation-WEATHER_HORIZON+12)/18 * 100). So if there is weather, it + |
light | the current virtual daylight value |
nextEvent | the name of the next event |
nextEventTime | the time when the next event will probably happen (during light phase 5 and 6 this is updated when weather conditions change |
sr_astro | time of astronomical sunrise |
sr_naut | time of nautical sunrise |
sr_civil | time of civil sunrise |
sr | time of sunrise |
sr_indoor | time of indoor sunrise |
sr_weather | time of weather sunrise |
ss_weather | time of weather sunset |
ss_indoor | time of indoor sunset |
ss | time of sunset |
ss_civil | time of civil sunset |
ss_nautic | time of nautic sunset |
ss_astro | time of astro sunset |
azimuth | the current azimuth of the sun 0° ist north 180° is south |
compasspoint | a textual representation of the compass point |
elevation | the elevaltion of the sun |
twilight | a percetal value of a new (twi)light value: (elevation+12)/18 * 100) |
twilight_weather | a percetal value of a new (twi)light value: (elevation-WEATHER_HORIZON+12)/18 * 100). So if there is weather, it is always a little bit darker than by fair weather |
condition | the yahoo condition weather code |
condition_txt | the yahoo condition weather code as textual representation |
horizon | value auf the actual horizon 0°, -6°, -12°, -18° |
condition | the yahoo condition weather code |
condition_txt | the yahoo condition weather code as textual representation |
horizon | value auf the actual horizon 0°, -6°, -12°, -18° |
$twilight | name of the twilight instance |
$reading | name of the reading to use example: ss_astro, ss_weather ... |
$min | parameter min time - optional |
$max | parameter max time - optional |
define HCW Heating_Control WZ_Heizung en Mo-Fr|{myFunction}|night-temp:18 Mo-Fr|{myFunction()}|dayTemp:16
define HeizStatus2 notify Heating:. * {Heating_Control_SetAllTemps ()}
+
@@ -745,6 +751,12 @@ sub SortNumber {
define HCW Heating_Control WZ_Heizung en Mo-Fr|{myFunction}|night-temp:18 Mo-Fr|{myFunction()}|dayTemp:16
define HeizStatus2 notify Heizung:.* {Heating_Control_SetAllTemps()}
+
diff --git a/FHEM/98_RandomTimer.pm b/FHEM/98_RandomTimer.pm index f3c0f6c6c..ba2101669 100644 --- a/FHEM/98_RandomTimer.pm +++ b/FHEM/98_RandomTimer.pm @@ -475,13 +475,15 @@ sub RandomTimer_disable($) {
attr ZufallsTimerZ disableCond (!isVerreist()) + attr ZufallsTimerZ disableCond (Value("presenceDummy" eq "notPresent"))
define dimmer WeekdayTimer livingRoom Sa-Su,We|07:00|dim30% Sa-Su,We|21:00|dim90% (ReadingsVal("WeAreThere", "state", "no") eq "yes")
+
+ If you want to have set all WeekdayTimer their current value (after a phase of exception),
+ you can call the function WeekdayTimer_SetAllParms ().
+ This call can be automatically coupled to a dummy by notify:
+ define WDStatus2 notify Dummy:. * {WeekdayTimer_SetAllParms ()}
+