fix drive then brightness value and window open

This commit is contained in:
Marko Oldenburg 2019-01-13 07:32:17 +01:00
parent 44c2dca61e
commit 88272bca99

View File

@ -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;