mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
59_Twilight: issue http://forum.fhem.de/index.php/topic,13935.msg303706.html#msg303706
git-svn-id: https://svn.fhem.de/fhem/trunk@8743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
280e8d518b
commit
e90c4419c3
@ -307,7 +307,7 @@ sub Twilight_fireEvent($) {
|
||||
my $delta = int($eventTime - time());
|
||||
my $oldState = ReadingsVal($name,"state","0");
|
||||
|
||||
my $nextEventTime = ($hash->{TW}{$nextEvent}{TIME} > 0) ? FmtDateTime($hash->{TW}{$nextEvent}{TIME}) : "undefined";
|
||||
my $nextEventTime = ($hash->{TW}{$nextEvent}{TIME} > 0) ? FmtTime($hash->{TW}{$nextEvent}{TIME}) : "undefined";
|
||||
|
||||
my $doTrigger = !(defined($hash->{LOCAL})) && ( abs($delta)<6 || $swip && $state gt $oldState);
|
||||
#Log3 $hash, 3, "[$hash->{NAME}] swip-delta-oldState-doTrigger===>$swip/$delta/$oldState/$doTrigger";
|
||||
|
Loading…
x
Reference in New Issue
Block a user