From c5abc97bfc67999eb044d3a865f26943c140d2fb Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Sun, 13 Jan 2019 09:44:55 +0000 Subject: [PATCH] 73_AutoShuttersControl: Fix shutters drive then window open and shutter in brightness rage. git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18234 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 2 ++ FHEM/73_AutoShuttersControl.pm | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGED b/CHANGED index f8c2ccb6b..52b7fc55e 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 73_AutoShuttersControl: Fix shutters drive then window open and + shutter in brightness rage. - feature: 82_LGTV_WebOS: Support for SkyOnline App - bugfix: 59_Weather: fix table bug in commandref - bugfix: 59_Weather: fix mor typo in Commandref diff --git a/FHEM/73_AutoShuttersControl.pm b/FHEM/73_AutoShuttersControl.pm index a62fa0009..c9afffe8d 100644 --- a/FHEM/73_AutoShuttersControl.pm +++ b/FHEM/73_AutoShuttersControl.pm @@ -1214,7 +1214,13 @@ sub EventProcessingBrightness($@) { ); my $posValue; - if ( CheckIfShuttersWindowRecOpen($shuttersDev) == 0 + if ( CheckIfShuttersWindowRecOpen($shuttersDev) == 2 + and $shutters->getSubTyp eq 'threestate' + and $ascDev->getAutoShuttersControlComfort eq 'on' ) + { + $posValue = $shutters->getComfortOpenPos; + } + elsif ( CheckIfShuttersWindowRecOpen($shuttersDev) == 0 or $shutters->getVentilateOpen eq 'off' ) { $posValue = $shutters->getClosedPos;