change getOffset.. to getDelay..
This commit is contained in:
parent
87de357005
commit
3d9b4b5ba9
@ -3912,9 +3912,9 @@ sub setDriveCmd {
|
|||||||
posValue => $posValue,
|
posValue => $posValue,
|
||||||
);
|
);
|
||||||
|
|
||||||
$offSet = $shutters->getOffset if ( $shutters->getOffset > -1 );
|
$offSet = $shutters->getDelay if ( $shutters->getDelay > -1 );
|
||||||
$offSet = $ascDev->getShuttersOffset if ( $shutters->getOffset < 0 );
|
$offSet = $ascDev->getShuttersOffset if ( $shutters->getDelay < 0 );
|
||||||
$offSetStart = $shutters->getOffsetStart;
|
$offSetStart = $shutters->getDelayStart;
|
||||||
|
|
||||||
if ( $shutters->getSelfDefenseAbsent
|
if ( $shutters->getSelfDefenseAbsent
|
||||||
and not $shutters->getSelfDefenseAbsentTimerrun
|
and not $shutters->getSelfDefenseAbsentTimerrun
|
||||||
@ -3928,7 +3928,7 @@ sub setDriveCmd {
|
|||||||
}
|
}
|
||||||
elsif ( $offSetStart > 0 and not $shutters->getNoOffset ) {
|
elsif ( $offSetStart > 0 and not $shutters->getNoOffset ) {
|
||||||
InternalTimer(
|
InternalTimer(
|
||||||
gettimeofday() + int( rand($offSet) + $shutters->getOffsetStart ),
|
gettimeofday() + int( rand($offSet) + $shutters->getDelayStart ),
|
||||||
'FHEM::AutoShuttersControl::_SetCmdFn', \%h );
|
'FHEM::AutoShuttersControl::_SetCmdFn', \%h );
|
||||||
|
|
||||||
FHEM::AutoShuttersControl::ASC_Debug( 'FnSetDriveCmd: '
|
FHEM::AutoShuttersControl::ASC_Debug( 'FnSetDriveCmd: '
|
||||||
@ -4771,14 +4771,14 @@ sub getShadingWaitingPeriod {
|
|||||||
}
|
}
|
||||||
### Ende Beschattung
|
### Ende Beschattung
|
||||||
|
|
||||||
sub getOffset {
|
sub getDelay {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
my $val = AttrVal( $self->{shuttersDev}, 'ASC_Drive_Delay', -1 );
|
my $val = AttrVal( $self->{shuttersDev}, 'ASC_Drive_Delay', -1 );
|
||||||
return ( $val =~ /^\d+$/ ? $val : -1 );
|
return ( $val =~ /^\d+$/ ? $val : -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
sub getOffsetStart {
|
sub getDelayStart {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
my $val = AttrVal( $self->{shuttersDev}, 'ASC_Drive_DelayStart', -1 );
|
my $val = AttrVal( $self->{shuttersDev}, 'ASC_Drive_DelayStart', -1 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user