mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
73_AutoShuttersControl: fix little commandref typo, expand ascAPIget Fn
git-svn-id: https://svn.fhem.de/fhem/trunk@19909 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
04115dceac
commit
9652111e19
@ -1,5 +1,7 @@
|
|||||||
# 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.
|
||||||
|
- feature: 73_AutoShuttersControl: fix little commandref typo,
|
||||||
|
expand ascAPIget Fn
|
||||||
- bugfix: 93_Log2Syslog: fix warning uninitialized value in numeric (>=)
|
- bugfix: 93_Log2Syslog: fix warning uninitialized value in numeric (>=)
|
||||||
- feature: 93_Log2Syslog: V5.8.1, new attributes and further developments
|
- feature: 93_Log2Syslog: V5.8.1, new attributes and further developments
|
||||||
regarding to Forum: topic,75426.msg958836.html#msg958836,
|
regarding to Forum: topic,75426.msg958836.html#msg958836,
|
||||||
|
@ -47,10 +47,10 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
sub ascAPIget($;$) {
|
sub ascAPIget($@) {
|
||||||
my ( $getCommand, $shutterDev ) = @_;
|
my ( $getCommand, $shutterDev, $value ) = @_;
|
||||||
|
|
||||||
return AutoShuttersControl_ascAPIget( $getCommand, $shutterDev );
|
return AutoShuttersControl_ascAPIget( $getCommand, $shutterDev, $value );
|
||||||
}
|
}
|
||||||
|
|
||||||
## unserer packagename
|
## unserer packagename
|
||||||
@ -160,7 +160,6 @@ BEGIN {
|
|||||||
readingFnAttributes
|
readingFnAttributes
|
||||||
AttrVal
|
AttrVal
|
||||||
ReadingsVal
|
ReadingsVal
|
||||||
Value
|
|
||||||
IsDisabled
|
IsDisabled
|
||||||
deviceEvents
|
deviceEvents
|
||||||
init_done
|
init_done
|
||||||
@ -265,11 +264,16 @@ my %posSetCmds = (
|
|||||||
my $shutters = new ASC_Shutters();
|
my $shutters = new ASC_Shutters();
|
||||||
my $ascDev = new ASC_Dev();
|
my $ascDev = new ASC_Dev();
|
||||||
|
|
||||||
sub ascAPIget($;$) {
|
sub ascAPIget($@) {
|
||||||
my ( $getCommand, $shutterDev ) = @_;
|
my ( $getCommand, $shutterDev, $value ) = @_;
|
||||||
|
|
||||||
my $getter = 'get' . $getCommand;
|
my $getter = 'get' . $getCommand;
|
||||||
if ( defined($shutterDev) and $shutterDev ) {
|
|
||||||
|
if ( defined($value) and $value ) {
|
||||||
|
$shutters->setShuttersDev($shutterDev);
|
||||||
|
return $shutters->$getter($value);
|
||||||
|
}
|
||||||
|
elsif ( defined($shutterDev) and $shutterDev ) {
|
||||||
$shutters->setShuttersDev($shutterDev);
|
$shutters->setShuttersDev($shutterDev);
|
||||||
return $shutters->$getter;
|
return $shutters->$getter;
|
||||||
}
|
}
|
||||||
@ -1239,7 +1243,7 @@ sub EventProcessingRoommate($@) {
|
|||||||
$shutters->setLastDrive('roommate absent');
|
$shutters->setLastDrive('roommate absent');
|
||||||
}
|
}
|
||||||
|
|
||||||
ShuttersCommandSet( $hash, $shuttersDev, $$posValue );
|
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1718,6 +1722,9 @@ sub EventProcessingBrightness($@) {
|
|||||||
and $ascDev->getSelfDefense eq 'off'
|
and $ascDev->getSelfDefense eq 'off'
|
||||||
or ( $ascDev->getSelfDefense eq 'on'
|
or ( $ascDev->getSelfDefense eq 'on'
|
||||||
and CheckIfShuttersWindowRecOpen($shuttersDev) == 0 )
|
and CheckIfShuttersWindowRecOpen($shuttersDev) == 0 )
|
||||||
|
or ( $ascDev->getSelfDefense eq 'on'
|
||||||
|
and CheckIfShuttersWindowRecOpen($shuttersDev) != 0
|
||||||
|
and $ascDev->getResidentsStatus eq 'home' )
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$shutters->setSunrise(1);
|
$shutters->setSunrise(1);
|
||||||
@ -6017,7 +6024,7 @@ sub getblockAscDrivesAfterManual {
|
|||||||
</li>
|
</li>
|
||||||
<li><strong>ASC_WindowRec_subType</strong> - Model type of the used <em>ASC_WindowRec</em>:
|
<li><strong>ASC_WindowRec_subType</strong> - Model type of the used <em>ASC_WindowRec</em>:
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>twostate</strong> - optical or magnetical sensors with two states: opened or closed</li>#
|
<li><strong>twostate</strong> - optical or magnetical sensors with two states: opened or closed</li>
|
||||||
<li><strong>threestate</strong> - sensors with three states: opened, tilted, closed</li>
|
<li><strong>threestate</strong> - sensors with three states: opened, tilted, closed</li>
|
||||||
</ul>
|
</ul>
|
||||||
Defaults to twostate.
|
Defaults to twostate.
|
||||||
@ -6206,7 +6213,7 @@ sub getblockAscDrivesAfterManual {
|
|||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>outTemp</td>
|
<td>OutTemp</td>
|
||||||
<td>Current temperature of a configured temperature device, return -100 is no device configured</td>
|
<td>Current temperature of a configured temperature device, return -100 is no device configured</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -6478,6 +6485,15 @@ sub getblockAscDrivesAfterManual {
|
|||||||
<tr><td>IsDay</td><td>Abfrage ob das Rollo im Tag oder Nachtmodus ist. Also nach Sunset oder nach Sunrise</td></tr>
|
<tr><td>IsDay</td><td>Abfrage ob das Rollo im Tag oder Nachtmodus ist. Also nach Sunset oder nach Sunrise</td></tr>
|
||||||
<tr><td>PrivacyDownStatus</td><td>Abfrage ob das Rollo aktuell im PrivacyDown Status steht</td></tr>
|
<tr><td>PrivacyDownStatus</td><td>Abfrage ob das Rollo aktuell im PrivacyDown Status steht</td></tr>
|
||||||
<tr><td>OutTemp</td><td>aktuelle Außentemperatur sofern ein Sensor definiert ist, wenn nicht kommt -100 als Wert zurück</td></tr>
|
<tr><td>OutTemp</td><td>aktuelle Außentemperatur sofern ein Sensor definiert ist, wenn nicht kommt -100 als Wert zurück</td></tr>
|
||||||
|
<table/>
|
||||||
|
</p>
|
||||||
|
<u>Übersicht für das Rollladen-Device mit Parameterübergabe</u>
|
||||||
|
<ul>
|
||||||
|
<code>{ ascAPIget('Getter','ROLLODEVICENAME',VALUE) }</code><br>
|
||||||
|
</ul>
|
||||||
|
<table border="1">
|
||||||
|
<tr><th>Getter</th><th>Erläuterung</th></tr>
|
||||||
|
<tr><td>QueryShuttersPos</td><td>Rückgabewert 1 bedeutet das die aktuelle Position des Rollos unterhalb der Valueposition ist. 0 oder nichts bedeutet oberhalb der Valueposition.</td></tr>
|
||||||
<table/>
|
<table/>
|
||||||
</p>
|
</p>
|
||||||
<u>Übersicht für das ASC Device</u>
|
<u>Übersicht für das ASC Device</u>
|
||||||
@ -6486,13 +6502,13 @@ sub getblockAscDrivesAfterManual {
|
|||||||
</ul>
|
</ul>
|
||||||
<table border="1">
|
<table border="1">
|
||||||
<tr><th>Getter</th><th>Erläuterung</th></tr>
|
<tr><th>Getter</th><th>Erläuterung</th></tr>
|
||||||
<tr><td>outTemp </td><td>aktuelle Außentemperatur sofern ein Sensor definiert ist, wenn nicht kommt -100 als Wert zurück</td></tr>
|
<tr><td>OutTemp </td><td>aktuelle Außentemperatur sofern ein Sensor definiert ist, wenn nicht kommt -100 als Wert zurück</td></tr>
|
||||||
<tr><td>ResidentsStatus</td><td>aktueller Status des Residents Devices</td></tr>
|
<tr><td>ResidentsStatus</td><td>aktueller Status des Residents Devices</td></tr>
|
||||||
<tr><td>ResidentsLastStatus</td><td>letzter Status des Residents Devices</td></tr>
|
<tr><td>ResidentsLastStatus</td><td>letzter Status des Residents Devices</td></tr>
|
||||||
<tr><td>Azimuth</td><td>Azimut Wert</td></tr>
|
<tr><td>Azimuth</td><td>Azimut Wert</td></tr>
|
||||||
<tr><td>Elevation</td><td>Elevation Wert</td></tr>
|
<tr><td>Elevation</td><td>Elevation Wert</td></tr>
|
||||||
<tr><td>ASCenable</td><td>ist die ASC Steuerung global aktiv?</td></tr>
|
<tr><td>ASCenable</td><td>ist die ASC Steuerung global aktiv?</td></tr>
|
||||||
<table/>
|
<table/>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
@ -6516,7 +6532,7 @@ sub getblockAscDrivesAfterManual {
|
|||||||
],
|
],
|
||||||
"release_status": "under develop",
|
"release_status": "under develop",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v0.6.21",
|
"version": "v0.6.23",
|
||||||
"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