mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
74_AutomowerConnect: Common.pm improve going home path appearance
git-svn-id: https://svn.fhem.de/fhem/trunk@27767 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f7584f6e80
commit
ffef731e38
@ -1580,8 +1580,7 @@ sub AlignArray {
|
|||||||
my $deltaTime = $hash->{helper}{positionsTime} - $hash->{helper}{statusTime};
|
my $deltaTime = $hash->{helper}{positionsTime} - $hash->{helper}{statusTime};
|
||||||
|
|
||||||
# if encounter positions shortly after status event old activity is assigned to positions
|
# if encounter positions shortly after status event old activity is assigned to positions
|
||||||
if ( $cnt > 1 && $deltaTime > 0 && $deltaTime < 0.29 && !$use_position_polling ||
|
if ( $cnt > 1 && $deltaTime > 0 && $deltaTime < 0.29 && !$use_position_polling || $use_position_polling && $actold =~ /LEAVING/ && $act eq 'MOWING' ) {
|
||||||
$use_position_polling && ( $actold =~ /LEAVING/ && $act eq 'MOWING' || $act =~ /GOING_HOME/ && $actold eq 'MOWING' ) ) {
|
|
||||||
|
|
||||||
map { $_->{act} = $hash->{helper}{$actold}{short} } @ar;
|
map { $_->{act} = $hash->{helper}{$actold}{short} } @ar;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user