change homemmode condition for shading in shadingDrive Fn
This commit is contained in:
parent
4011a56656
commit
ed631686d9
@ -342,9 +342,9 @@ sub Define($$) {
|
||||
$hash->{MID} = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
|
||||
; # eine Ein Eindeutige ID für interne FHEM Belange / nicht weiter wichtig
|
||||
|
||||
# ### Versionierung ###
|
||||
# ### Versionierung ###
|
||||
# Stable Version
|
||||
# $hash->{VERSION} = version->parse($VERSION)->normal;
|
||||
# $hash->{VERSION} = version->parse($VERSION)->normal;
|
||||
# Developer Version
|
||||
$hash->{DEV_VERSION} = FHEM::Meta::Get( $hash, 'x_developmentversion' );
|
||||
|
||||
@ -726,16 +726,16 @@ sub ShuttersDeviceScan($) {
|
||||
if ( ReadingsVal( $_, 'ASC_Enable', 'none' ) eq 'none' );
|
||||
}
|
||||
|
||||
# ### Temporär und muss später entfernt werden
|
||||
# CommandAttr( undef,
|
||||
# $name
|
||||
# . ' ASC_brightnessDriveUpDown '
|
||||
# . AttrVal( $name, 'ASC_brightnessMinVal', 500 ) . ':'
|
||||
# . AttrVal( $name, 'ASC_brightnessMaxVal', 800 ) )
|
||||
# if ( AttrVal( $name, 'ASC_brightnessMinVal', 'none' ) ne 'none' );
|
||||
#
|
||||
# CommandDeleteAttr( undef, $name . ' ASC_brightnessMaxVal' )
|
||||
# if ( AttrVal( $name, 'ASC_brightnessMaxVal', 'none' ) ne 'none' );
|
||||
# ### Temporär und muss später entfernt werden
|
||||
# CommandAttr( undef,
|
||||
# $name
|
||||
# . ' ASC_brightnessDriveUpDown '
|
||||
# . AttrVal( $name, 'ASC_brightnessMinVal', 500 ) . ':'
|
||||
# . AttrVal( $name, 'ASC_brightnessMaxVal', 800 ) )
|
||||
# if ( AttrVal( $name, 'ASC_brightnessMinVal', 'none' ) ne 'none' );
|
||||
#
|
||||
# CommandDeleteAttr( undef, $name . ' ASC_brightnessMaxVal' )
|
||||
# if ( AttrVal( $name, 'ASC_brightnessMaxVal', 'none' ) ne 'none' );
|
||||
|
||||
$hash->{NOTIFYDEV} = "global," . $name . $shuttersList;
|
||||
|
||||
@ -1739,19 +1739,10 @@ sub EventProcessingShadingBrightness($@) {
|
||||
. ' WindProtection: '
|
||||
. $shutters->getWindProtectionStatus );
|
||||
|
||||
my $homemode = $shutters->getRoommatesStatus;
|
||||
$homemode = $ascDev->getResidentsStatus if ( $homemode eq 'none' );
|
||||
|
||||
if (
|
||||
(
|
||||
$shutters->getShadingMode eq 'always'
|
||||
or $shutters->getShadingMode eq $homemode
|
||||
)
|
||||
and IsDay($shuttersDev)
|
||||
if ( IsDay($shuttersDev)
|
||||
and $ascDev->getAutoShuttersControlShading eq 'on'
|
||||
and $shutters->getRainProtectionStatus eq 'unprotected'
|
||||
and $shutters->getWindProtectionStatus eq 'unprotected'
|
||||
)
|
||||
and $shutters->getWindProtectionStatus eq 'unprotected' )
|
||||
{
|
||||
ShadingProcessing(
|
||||
$hash,
|
||||
@ -1771,7 +1762,6 @@ sub EventProcessingShadingBrightness($@) {
|
||||
);
|
||||
}
|
||||
elsif ( $shutters->getShadingStatus eq 'in'
|
||||
and $shutters->getShadingMode ne $homemode
|
||||
and $shutters->getRainProtectionStatus eq 'unprotected'
|
||||
and $shutters->getWindProtectionStatus eq 'unprotected' )
|
||||
{
|
||||
@ -2070,6 +2060,12 @@ sub ShadingProcessingDriveCommand($$) {
|
||||
my $getShadingPos = $shutters->getShadingPos;
|
||||
my $getStatus = $shutters->getStatus;
|
||||
|
||||
my $homemode = $shutters->getRoommatesStatus;
|
||||
$homemode = $ascDev->getResidentsStatus if ( $homemode eq 'none' );
|
||||
|
||||
if ( $shutters->getShadingMode eq 'always'
|
||||
or $shutters->getShadingMode eq $homemode )
|
||||
{
|
||||
$shutters->setShadingStatus( $shutters->getShadingStatus )
|
||||
if (
|
||||
( int( gettimeofday() ) - $shutters->getShadingStatusTimestamp ) >
|
||||
@ -2133,6 +2129,7 @@ sub ShadingProcessingDriveCommand($$) {
|
||||
"%Y.%m.%e %T", localtime( $shutters->getShadingStatusTimestamp )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
sub EventProcessingPartyMode($) {
|
||||
@ -6173,7 +6170,7 @@ sub getblockAscDrivesAfterManual {
|
||||
"release_status": "under develop",
|
||||
"license": "GPL_2",
|
||||
"version": "v0.6.19",
|
||||
"x_developmentversion": "v0.6.19.5",
|
||||
"x_developmentversion": "v0.6.19.6",
|
||||
"author": [
|
||||
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user