mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
d3eb934612
commit
c81e86698e
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 73_AutoShuttersControl: fix bug forum #966778
|
||||||
- change: 49_SSCam: commandref revised
|
- change: 49_SSCam: commandref revised
|
||||||
- bugfix: 73_AutoShuttersControl: fix UTF8 Problem und Initialisierungfehler,
|
- bugfix: 73_AutoShuttersControl: fix UTF8 Problem und Initialisierungfehler,
|
||||||
fix brightness morning and evening drive, add more condition
|
fix brightness morning and evening drive, add more condition
|
||||||
|
@ -251,15 +251,15 @@ my %userAttrList = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
my %posSetCmds = (
|
my %posSetCmds = (
|
||||||
ZWave => 'dim',
|
ZWave => 'dim',
|
||||||
Siro => 'pct',
|
Siro => 'pct',
|
||||||
CUL_HM => 'pct',
|
CUL_HM => 'pct',
|
||||||
ROLLO => 'pct',
|
ROLLO => 'pct',
|
||||||
SOMFY => 'position',
|
SOMFY => 'position',
|
||||||
tahoma => 'dim',
|
tahoma => 'dim',
|
||||||
KLF200Node => 'pct',
|
KLF200Node => 'pct',
|
||||||
DUOFERN => 'position',
|
DUOFERN => 'position',
|
||||||
HM485 => 'level',
|
HM485 => 'level',
|
||||||
SELVECommeo => 'position',
|
SELVECommeo => 'position',
|
||||||
SELVE => 'position',
|
SELVE => 'position',
|
||||||
);
|
);
|
||||||
@ -1150,7 +1150,7 @@ sub EventProcessingRoommate($@) {
|
|||||||
if ( $shutters->getIfInShading
|
if ( $shutters->getIfInShading
|
||||||
and not $shutters->getShadingManualDriveStatus
|
and not $shutters->getShadingManualDriveStatus
|
||||||
and $shutters->getStatus == $shutters->getOpenPos
|
and $shutters->getStatus == $shutters->getOpenPos
|
||||||
and $shutters->getShadingMode 'home')
|
and $shutters->getShadingMode eq 'home' )
|
||||||
{
|
{
|
||||||
$shutters->setLastDrive('shading in');
|
$shutters->setLastDrive('shading in');
|
||||||
$posValue = $shutters->getShadingPos;
|
$posValue = $shutters->getShadingPos;
|
||||||
@ -1158,8 +1158,10 @@ sub EventProcessingRoommate($@) {
|
|||||||
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
||||||
}
|
}
|
||||||
elsif (
|
elsif (
|
||||||
( not $shutters->getIfInShading
|
(
|
||||||
or $shutters->getShadingMode eq 'absent' )
|
not $shutters->getIfInShading
|
||||||
|
or $shutters->getShadingMode eq 'absent'
|
||||||
|
)
|
||||||
and ( $shutters->getStatus == $shutters->getClosedPos
|
and ( $shutters->getStatus == $shutters->getClosedPos
|
||||||
or $shutters->getStatus ==
|
or $shutters->getStatus ==
|
||||||
$shutters->getShadingPos )
|
$shutters->getShadingPos )
|
||||||
@ -1708,7 +1710,8 @@ sub EventProcessingBrightness($@) {
|
|||||||
and $ascDev->getResidentsStatus eq 'home' )
|
and $ascDev->getResidentsStatus eq 'home' )
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$shutters->setLastDrive('maximum brightness threshold exceeded');
|
$shutters->setLastDrive(
|
||||||
|
'maximum brightness threshold exceeded');
|
||||||
$shutters->setSunrise(1);
|
$shutters->setSunrise(1);
|
||||||
$shutters->setSunset(0);
|
$shutters->setSunset(0);
|
||||||
ShuttersCommandSet( $hash, $shuttersDev,
|
ShuttersCommandSet( $hash, $shuttersDev,
|
||||||
@ -1776,7 +1779,8 @@ sub EventProcessingBrightness($@) {
|
|||||||
}
|
}
|
||||||
else { $posValue = $shutters->getVentilatePos; }
|
else { $posValue = $shutters->getVentilatePos; }
|
||||||
|
|
||||||
$shutters->setLastDrive('minimum brightness threshold fell below');
|
$shutters->setLastDrive(
|
||||||
|
'minimum brightness threshold fell below');
|
||||||
$shutters->setSunrise(0);
|
$shutters->setSunrise(0);
|
||||||
$shutters->setSunset(1);
|
$shutters->setSunset(1);
|
||||||
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
||||||
@ -3414,7 +3418,7 @@ sub IsAfterShuttersTimeBlocking($) {
|
|||||||
if (
|
if (
|
||||||
( int( gettimeofday() ) - $shutters->getLastManPosTimestamp ) <
|
( int( gettimeofday() ) - $shutters->getLastManPosTimestamp ) <
|
||||||
$shutters->getBlockingTimeAfterManual
|
$shutters->getBlockingTimeAfterManual
|
||||||
or ( not $shutters->getIsDay
|
or ( not $shutters->getIsDay
|
||||||
and defined( $shutters->getSunriseUnixTime )
|
and defined( $shutters->getSunriseUnixTime )
|
||||||
and $shutters->getSunriseUnixTime - ( int( gettimeofday() ) ) <
|
and $shutters->getSunriseUnixTime - ( int( gettimeofday() ) ) <
|
||||||
$shutters->getBlockingTimeBeforDayOpen )
|
$shutters->getBlockingTimeBeforDayOpen )
|
||||||
@ -3539,13 +3543,13 @@ sub CheckIfShuttersWindowRecOpen($) {
|
|||||||
sub makeReadingName($) {
|
sub makeReadingName($) {
|
||||||
my ($rname) = @_;
|
my ($rname) = @_;
|
||||||
my %charHash = (
|
my %charHash = (
|
||||||
chr(0xe4) => "ae", # ä
|
chr(0xe4) => "ae", # ä
|
||||||
chr(0xc4) => "Ae", # Ä
|
chr(0xc4) => "Ae", # Ä
|
||||||
chr(0xfc) => "ue", # ü
|
chr(0xfc) => "ue", # ü
|
||||||
chr(0xdc) => "Ue", # Ü
|
chr(0xdc) => "Ue", # Ü
|
||||||
chr(0xf6) => "oe", # ö
|
chr(0xf6) => "oe", # ö
|
||||||
chr(0xd6) => "Oe", # Ö
|
chr(0xd6) => "Oe", # Ö
|
||||||
chr(0xdf) => "ss" # ß
|
chr(0xdf) => "ss" # ß
|
||||||
);
|
);
|
||||||
my $charHashkeys = join( "", keys(%charHash) );
|
my $charHashkeys = join( "", keys(%charHash) );
|
||||||
|
|
||||||
@ -6491,7 +6495,7 @@ sub getblockAscDrivesAfterManual {
|
|||||||
],
|
],
|
||||||
"release_status": "under develop",
|
"release_status": "under develop",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v0.6.26",
|
"version": "v0.6.27",
|
||||||
"x_developmentversion": "v0.6.19.34",
|
"x_developmentversion": "v0.6.19.34",
|
||||||
"author": [
|
"author": [
|
||||||
"Marko Oldenburg <leongaultier@gmail.com>"
|
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user