mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
74_AutomowerConnect: Common.pm map zones change compare cutting hight to match cutting hight
git-svn-id: https://svn.fhem.de/fhem/trunk@27851 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ce7d954ebf
commit
6a6e483b94
@ -1682,11 +1682,11 @@ sub AlignArray {
|
||||
}
|
||||
|
||||
# set cutting height per zone
|
||||
|
||||
my $cuthi = $hash->{helper}{mower}{attributes}{settings}{cuttingHeight};
|
||||
if ( AttrVal( $name, 'mapZones', 0 ) && $act =~ /^(MOWING)$/
|
||||
&& defined( $hash->{helper}{currentZone} )
|
||||
&& defined( $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} )
|
||||
&& $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} != $hash->{helper}{mower}{attributes}{settings}{cuttingHeight}
|
||||
&& defined( $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} )
|
||||
&& $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} !~ /$cuthi/
|
||||
&& ( $hash->{helper}{cuttingHeightLast} + $hash->{helper}{cuttingHeightLatency} ) < scalar gettimeofday() ) {
|
||||
|
||||
RemoveInternalTimer( $hash, \&setCuttingHeight );
|
||||
|
Loading…
x
Reference in New Issue
Block a user