mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_WeekdayTimer.pm: enable multiple holiday2we-devices for also non-holiday TYPE devices
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19043 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fb1d0f6cdf
commit
89e6e8a6b9
@ -308,7 +308,14 @@ sub WeekdayTimer_getListeDerTage($$) {
|
|||||||
|
|
||||||
foreach my $h2we (split(',', AttrVal('global', 'holiday2we', ''))) {
|
foreach my $h2we (split(',', AttrVal('global', 'holiday2we', ''))) {
|
||||||
if($h2we) {
|
if($h2we) {
|
||||||
my $ergebnis = CommandGet(undef,$h2we . ' ' . sprintf("%02d-%02d",$mon+1,$mday));
|
my $ergebnis = 'none';
|
||||||
|
if (InternalVal($h2we, 'TYPE', '') eq "holiday") {
|
||||||
|
$ergebnis = CommandGet(undef,$h2we . ' ' . sprintf("%02d-%02d",$mon+1,$mday));
|
||||||
|
} elsif ($wday==$nowWday ){
|
||||||
|
$ergebnis = "is_true" if IsWe();
|
||||||
|
}elsif ( $wday==$nowWday+1){
|
||||||
|
$ergebnis = "is_true" if IsWe("tomorrow");
|
||||||
|
}
|
||||||
if ($ergebnis ne 'none') {
|
if ($ergebnis ne 'none') {
|
||||||
#Log 3, "ergebnis-------$i----->$ergebnis";
|
#Log 3, "ergebnis-------$i----->$ergebnis";
|
||||||
$hdays{$i} = undef if ($d==7); # $we Tag aufnehmen
|
$hdays{$i} = undef if ($d==7); # $we Tag aufnehmen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user