2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 14:47:00 +00:00

73_AutoShuttersControl: fix shading in drive then shutter is closed

git-svn-id: https://svn.fhem.de/fhem/trunk@22547 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2020-08-06 12:40:12 +00:00
parent fb6ad6da9d
commit 704c44b231
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# 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 shading in drive then shutter is closed
- change: 32_withings: added sleep apnea index reading
- bugfix: 48_BlinkCamera: Active/Enabled handling to new format
- bugfix: 52_I2C_HDC1008: "temperature" reading now works correctly with

View File

@ -1258,7 +1258,7 @@ sub Initialize {
],
"release_status": "testing",
"license": "GPL_2",
"version": "v0.10.5",
"version": "v0.10.6",
"author": [
"Marko Oldenburg <leongaultier@gmail.com>"
],

View File

@ -513,6 +513,7 @@ sub ShadingProcessing {
sub ShadingProcessingDriveCommand {
my $hash = shift;
my $shuttersDev = shift;
my $marker = shift // 0;
my $name = $hash->{NAME};
$FHEM::Automation::ShuttersControl::shutters->setShuttersDev($shuttersDev);
@ -527,7 +528,11 @@ sub ShadingProcessingDriveCommand {
if ( IsInTime($FHEM::Automation::ShuttersControl::shutters->getShadingBetweenTheTime)
&& $FHEM::Automation::ShuttersControl::shutters->getShadingStatus eq 'in'
&& $getShadingPos != $getStatus
&& $getStatus != $FHEM::Automation::ShuttersControl::shutters->getClosedPos
&& ( $getStatus != $FHEM::Automation::ShuttersControl::shutters->getClosedPos
|| ( $getStatus == $FHEM::Automation::ShuttersControl::shutters->getClosedPos
&& $marker
)
)
&& (
FHEM::Automation::ShuttersControl::CheckIfShuttersWindowRecOpen(
$shuttersDev) != 2