From bba8398824e6c8f1d492598a263d2daaadbf3708 Mon Sep 17 00:00:00 2001 From: phenning <> Date: Fri, 11 May 2018 16:27:48 +0000 Subject: [PATCH] 95_YAAHM.pm: Neue Version mit Bugfix git-svn-id: https://svn.fhem.de/fhem/trunk@16731 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_YAAHM.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/95_YAAHM.pm b/fhem/FHEM/95_YAAHM.pm index 8b4233ccd..6bd8f180b 100644 --- a/fhem/FHEM/95_YAAHM.pm +++ b/fhem/FHEM/95_YAAHM.pm @@ -47,7 +47,7 @@ my $yaahmname; my $yaahmlinkname = "Profile"; # link text my $yaahmhiddenroom = "ProfileRoom"; # hidden room my $yaahmpublicroom = "Unsorted"; # public room -my $yaahmversion = "1.53"; +my $yaahmversion = "1.54"; my $firstcall = 1; my %yaahm_transtable_EN = ( @@ -1184,7 +1184,15 @@ sub YAAHM_time { readingsBulkUpdate($hash,"tr_housetime",$yaahm_tt->{$targettime}); readingsBulkUpdate($hash,"housephase",$targetphase); readingsBulkUpdate($hash,"tr_housephase",$yaahm_tt->{$targetphase}); + if( $targettime eq "wakeup" ){ + $hash->{DATA}{"WT"}[0]{"next"} = ""; + readingsBulkUpdate($hash,"next_0",""); + }elsif( $targettime eq "sleep" ){ + $hash->{DATA}{"WT"}[1]{"next"} = ""; + readingsBulkUpdate($hash,"next_1",""); + } readingsEndUpdate($hash,1); + YAAHM_setWeeklyTime($hash); #-- helper function not executed, e.g. by call from external timer return