From 7f1942ee2837905dc982e3a27ed9ea9ead49fe1f Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Wed, 5 Dec 2018 07:46:32 +0000 Subject: [PATCH] 73_AutoShuttersControl: fix gone then absent bug git-svn-id: https://svn.fhem.de/fhem/trunk@17896 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/73_AutoShuttersControl.pm | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index a14bd8502..b9753c0a4 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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 gone then absent bug - feature: 49_SSCam: V7.6.0, The PTZ panel is completed by "Preset" and "Patrol" dropdown lists (for PTZ cams only) - feature: 49_SSCamSTRM: click on content in stream device or snap gallery diff --git a/fhem/FHEM/73_AutoShuttersControl.pm b/fhem/FHEM/73_AutoShuttersControl.pm index da7c2b40e..4465964d1 100644 --- a/fhem/FHEM/73_AutoShuttersControl.pm +++ b/fhem/FHEM/73_AutoShuttersControl.pm @@ -41,7 +41,7 @@ package main; use strict; use warnings; -my $version = '0.2.0.11'; +my $version = '0.2.0.12'; sub AutoShuttersControl_Initialize($) { my ($hash) = @_; @@ -1612,8 +1612,8 @@ sub SunSetShuttersAfterTimerFn($) { if ( $shutters->getModeDown eq $homemode - - # or $homemode eq 'none' + or ( $shutters->getModeDown eq 'absent' + and $homemode eq 'gone') or $shutters->getModeDown eq 'always' ) { @@ -1636,8 +1636,8 @@ sub SunRiseShuttersAfterTimerFn($) { if ( $shutters->getModeUp eq $homemode - - # or $homemode eq 'none' + or ( $shutters->getModeUp eq 'absent' + and $homemode eq 'gone') or $shutters->getModeUp eq 'always' ) {