add debug for manual drive routine, change detect manual drive
This commit is contained in:
parent
9a09d86214
commit
6f8175ca88
@ -2046,9 +2046,28 @@ sub EventProcessingShutters($@) {
|
|||||||
if ( $events =~ m#.*:\s(\d+)# ) {
|
if ( $events =~ m#.*:\s(\d+)# ) {
|
||||||
$shutters->setShuttersDev($shuttersDev);
|
$shutters->setShuttersDev($shuttersDev);
|
||||||
$ascDev->setPosReading;
|
$ascDev->setPosReading;
|
||||||
|
|
||||||
|
ASC_Debug( 'EventProcessingShutters: '
|
||||||
|
. $shutters->getShuttersDev
|
||||||
|
. ' - Event vom Rolllo erkannt. Es wird nun eine etwaige manuelle Fahrt ausgewertet.'
|
||||||
|
. ' Int von gettimeofday: ' . int( gettimeofday() )
|
||||||
|
. ' Last Position Timestamp: '
|
||||||
|
. $shutters->getLastPosTimestamp
|
||||||
|
. ' Drive Up Max Duration: '
|
||||||
|
. $shutters->getDriveUpMaxDuration
|
||||||
|
. ' Last Position: '
|
||||||
|
. $shutters->getLastPos
|
||||||
|
. ' aktuelle Position: '
|
||||||
|
. $shutters->getStatus
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( ( int( gettimeofday() ) - $shutters->getLastPosTimestamp ) >
|
if ( ( int( gettimeofday() ) - $shutters->getLastPosTimestamp ) >
|
||||||
$shutters->getDriveUpMaxDuration
|
$shutters->getDriveUpMaxDuration
|
||||||
and $shutters->getLastPos != $shutters->getStatus )
|
and ( int( gettimeofday() ) - $shutters->getLastManPosTimestamp ) >
|
||||||
|
$shutters->getDriveUpMaxDuration
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$shutters->setLastDrive('manual');
|
$shutters->setLastDrive('manual');
|
||||||
$shutters->setLastDriveReading;
|
$shutters->setLastDriveReading;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user