fix ignore shading waiting time after set current state

This commit is contained in:
2021-02-26 13:59:25 +01:00
parent 4f2af22628
commit 489a7d829f
2 changed files with 8 additions and 7 deletions

View File

@ -878,10 +878,11 @@ sub setShadingStatus {
my $self = shift;
my $value = shift; ### Werte für value = in, out, in reserved, out reserved
return
if ( defined($value)
&& exists( $self->{ $self->{shuttersDev} }{ShadingStatus}{VAL} )
&& $self->{ $self->{shuttersDev} }{ShadingStatus}{VAL} eq $value );
# Es wird durch das return die ShadingWaitingTime nicht mehr beachtet, Bugmeldung von Bernd Griemsmann
# return
# if ( defined($value)
# && exists( $self->{ $self->{shuttersDev} }{ShadingStatus}{VAL} )
# && $self->{ $self->{shuttersDev} }{ShadingStatus}{VAL} eq $value );
$FHEM::Automation::ShuttersControl::shutters->setShadingLastStatus(
( $value eq 'in' ? 'out' : 'in' ) )