mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
34_NUT: Versucht bei disabled=1 nicht mehr, eine Verbindung aufzubauen
git-svn-id: https://svn.fhem.de/fhem/trunk@9023 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
15189e5173
commit
0231143800
@ -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: 34_NUT: versucht bei disabled=1 nicht mehr, eine Verbindung aufzubauen
|
||||||
- change: 57_CALVIEW: - replace unwanted backslash before a comma sign
|
- change: 57_CALVIEW: - replace unwanted backslash before a comma sign
|
||||||
- bugfix: 95_Dashboard: fixed sorting for grouped devices
|
- bugfix: 95_Dashboard: fixed sorting for grouped devices
|
||||||
- bugfix: 95_Dashboard: fixed style issue with colorpicker in ios6touchpad style
|
- bugfix: 95_Dashboard: fixed style issue with colorpicker in ios6touchpad style
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Abfrage einer UPS über die Network UPS Tools (www.networkupstools.org)
|
# Abfrage einer UPS über die Network UPS Tools (www.networkupstools.org)
|
||||||
#
|
#
|
||||||
# 14.06.2015
|
# 05.08.2015
|
||||||
#
|
#
|
||||||
|
|
||||||
# DEFINE bla NUT <upsname> [<host>[:<port>]]
|
# DEFINE bla NUT <upsname> [<host>[:<port>]]
|
||||||
@ -164,17 +164,17 @@ sub NUT_ListVar($) {
|
|||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
if ($hash->{STATE} eq 'disconnected') {
|
|
||||||
# Verbindung scheint nicht zu bestehen
|
|
||||||
# Alles abbrechen, ich verlasse mich auf DevIo_OpenDev, dass es alles wieder anwirft, sobald die Verbindung wieder steht
|
|
||||||
$hash->{pollValState} = 0;
|
|
||||||
RemoveInternalTimer("pollTimer:".$name);
|
|
||||||
DevIo_OpenDev($hash, 1, "NUT_DevInit");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (not defined $attr{$name}{disable} or $attr{$name}{disable} == 0) {
|
if (not defined $attr{$name}{disable} or $attr{$name}{disable} == 0) {
|
||||||
|
|
||||||
|
if ($hash->{STATE} eq 'disconnected') {
|
||||||
|
# Verbindung scheint nicht zu bestehen
|
||||||
|
# Alles abbrechen, ich verlasse mich auf DevIo_OpenDev, dass es alles wieder anwirft, sobald die Verbindung wieder steht
|
||||||
|
$hash->{pollValState} = 0;
|
||||||
|
RemoveInternalTimer("pollTimer:".$name);
|
||||||
|
DevIo_OpenDev($hash, 1, "NUT_DevInit");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (defined $hash->{WaitForAnswer}) {
|
if (defined $hash->{WaitForAnswer}) {
|
||||||
# Keine Antwort auf die letzte Frage -> NUT nicht mehr erreichbar!
|
# Keine Antwort auf die letzte Frage -> NUT nicht mehr erreichbar!
|
||||||
Log3 $name, 3, "NUT antwortet nicht";
|
Log3 $name, 3, "NUT antwortet nicht";
|
||||||
@ -201,6 +201,7 @@ sub NUT_ListVar($) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log3 $name, 5, "NUT polling disabled.";
|
Log3 $name, 5, "NUT polling disabled.";
|
||||||
|
delete $hash->{WaitForAnswer};
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveInternalTimer("pollTimer:".$name);
|
RemoveInternalTimer("pollTimer:".$name);
|
||||||
@ -382,8 +383,6 @@ sub NUT_makeReadings($) {
|
|||||||
Values of the UPS which are used as Readings (ups.status is read anyway)<br>
|
Values of the UPS which are used as Readings (ups.status is read anyway)<br>
|
||||||
Example:<br>
|
Example:<br>
|
||||||
<code>attr theUPS asReadings battery.charge,battery.runtime,input.voltage,ups.load,ups.power,ups.realpower</code> </li><br>
|
<code>attr theUPS asReadings battery.charge,battery.runtime,input.voltage,ups.load,ups.power,ups.realpower</code> </li><br>
|
||||||
<li><a name="">withUnits</a><br>
|
|
||||||
When set to 1, unit are attached to the readings.</li><br>
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -436,8 +435,6 @@ sub NUT_makeReadings($) {
|
|||||||
Mit Kommata getrennte Liste der USV-Werte, die als Readings verwendet werden sollen (ups.status wird auf jeden Fall gelesen).<br>
|
Mit Kommata getrennte Liste der USV-Werte, die als Readings verwendet werden sollen (ups.status wird auf jeden Fall gelesen).<br>
|
||||||
Beispiel:<br>
|
Beispiel:<br>
|
||||||
<code>attr dieUSV asReadings battery.charge,battery.runtime,input.voltage,ups.load,ups.power,ups.realpower</code> </li><br>
|
<code>attr dieUSV asReadings battery.charge,battery.runtime,input.voltage,ups.load,ups.power,ups.realpower</code> </li><br>
|
||||||
<li><a name="">withUnits</a><br>
|
|
||||||
Mit dem Setzen auf 1 werden die passenden Einheiten an die Readings angefügt.</li><br>
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user