change condition of Window events if the place is terrace

This commit is contained in:
2021-12-04 09:55:46 +01:00
parent 0255be94b5
commit 8c17eb5f6a
2 changed files with 10 additions and 5 deletions

View File

@ -243,9 +243,14 @@ sub EventProcessingWindowRec {
$FHEM::Automation::ShuttersControl::shutters->getWinDevReading;
if ( $events =~
m{.*$reading:.*?([Oo]pen(?>ed)?|[Cc]losed?|tilt(?>ed)?|true|false)}xms
&& IsAfterShuttersManualBlocking($shuttersDev) )
m{.*$reading:.*?([Oo]pen(?>ed)?|[Cc]losed?|tilt(?>ed)?|true|false)}xms )
{
return
if ( IsAfterShuttersManualBlocking($shuttersDev)
&& $FHEM::Automation::ShuttersControl::shutters->getShuttersPlace
ne 'terrace' );
my $match = $1;
FHEM::Automation::ShuttersControl::ASC_Debug(