2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

RESIDENTStk: consider wakeupOffset for nextWakeup

git-svn-id: https://svn.fhem.de/fhem/trunk@13847 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-03-29 19:07:41 +00:00
parent abed70358c
commit 2ac22e23bd

View File

@ -1550,6 +1550,7 @@ sub RESIDENTStk_wakeupGetNext($) {
}
if ( $definitiveNextTodayDev && $definitiveNextToday ) {
$definitiveNextToday = $definitiveNextToday + $wakeupOffset * 60;
Log3 $name, 4,
"RESIDENTStk $name: 07 - next wake-up result: today at "
. RESIDENTStk_sec2time($definitiveNextToday)
@ -1560,6 +1561,7 @@ sub RESIDENTStk_wakeupGetNext($) {
substr( RESIDENTStk_sec2time($definitiveNextToday), 0, -3 ) );
}
elsif ( $definitiveNextTomorrowDev && $definitiveNextTomorrow ) {
$definitiveNextTomorrow = $definitiveNextTomorrow + $wakeupOffset * 60;
Log3 $name, 4,
"RESIDENTStk $name: 07 - next wake-up result: tomorrow at "
. RESIDENTStk_sec2time($definitiveNextTomorrow)