2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

73_AutoShuttersControl: fix bug forum #966778

git-svn-id: https://svn.fhem.de/fhem/trunk@19998 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2019-08-14 08:09:09 +00:00
parent d3eb934612
commit c81e86698e
2 changed files with 28 additions and 23 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 bug forum #966778
- change: 49_SSCam: commandref revised
- bugfix: 73_AutoShuttersControl: fix UTF8 Problem und Initialisierungfehler,
fix brightness morning and evening drive, add more condition

View File

@ -1150,7 +1150,7 @@ sub EventProcessingRoommate($@) {
if ( $shutters->getIfInShading
and not $shutters->getShadingManualDriveStatus
and $shutters->getStatus == $shutters->getOpenPos
and $shutters->getShadingMode 'home')
and $shutters->getShadingMode eq 'home' )
{
$shutters->setLastDrive('shading in');
$posValue = $shutters->getShadingPos;
@ -1158,8 +1158,10 @@ sub EventProcessingRoommate($@) {
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
}
elsif (
( not $shutters->getIfInShading
or $shutters->getShadingMode eq 'absent' )
(
not $shutters->getIfInShading
or $shutters->getShadingMode eq 'absent'
)
and ( $shutters->getStatus == $shutters->getClosedPos
or $shutters->getStatus ==
$shutters->getShadingPos )
@ -1708,7 +1710,8 @@ sub EventProcessingBrightness($@) {
and $ascDev->getResidentsStatus eq 'home' )
)
{
$shutters->setLastDrive('maximum brightness threshold exceeded');
$shutters->setLastDrive(
'maximum brightness threshold exceeded');
$shutters->setSunrise(1);
$shutters->setSunset(0);
ShuttersCommandSet( $hash, $shuttersDev,
@ -1776,7 +1779,8 @@ sub EventProcessingBrightness($@) {
}
else { $posValue = $shutters->getVentilatePos; }
$shutters->setLastDrive('minimum brightness threshold fell below');
$shutters->setLastDrive(
'minimum brightness threshold fell below');
$shutters->setSunrise(0);
$shutters->setSunset(1);
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
@ -6491,7 +6495,7 @@ sub getblockAscDrivesAfterManual {
],
"release_status": "under develop",
"license": "GPL_2",
"version": "v0.6.26",
"version": "v0.6.27",
"x_developmentversion": "v0.6.19.34",
"author": [
"Marko Oldenburg <leongaultier@gmail.com>"