mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 20:24:36 +00:00
AutomowerConnect: cref update, changes regarding the appearance of reading mower_inactiveReason
git-svn-id: https://svn.fhem.de/fhem/trunk@28885 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
942188e7d6
commit
195c36d81c
@ -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
|
||||||
|
- change: 74_AutomowerConnect: minor changes
|
||||||
- feature: 76_SolarForecast: currentMeterDev: contotal and feedtotal can be
|
- feature: 76_SolarForecast: currentMeterDev: contotal and feedtotal can be
|
||||||
reset at day begin (day meter)
|
reset at day begin (day meter)
|
||||||
- feature: 76_SolarForecast: graphicBeamXContent: gridfeedin available,
|
- feature: 76_SolarForecast: graphicBeamXContent: gridfeedin available,
|
||||||
|
@ -556,6 +556,7 @@ __END__
|
|||||||
<li>mower_commandSend - Last successfull sent command</li>
|
<li>mower_commandSend - Last successfull sent command</li>
|
||||||
<li>mower_commandStatus - Status of the last sent command cleared each status update</li>
|
<li>mower_commandStatus - Status of the last sent command cleared each status update</li>
|
||||||
<li>mower_currentZone - Zone name with activity MOWING in the last status time stamp interval and number of way points in parenthesis.</li>
|
<li>mower_currentZone - Zone name with activity MOWING in the last status time stamp interval and number of way points in parenthesis.</li>
|
||||||
|
<li>mower_inactiveReason - They are NONE, PLANNING, SEARCHING_FOR_SATELLITES.</li>
|
||||||
<li>mower_wsEvent - websocket connection events (status-event, positions-event, settings-event)</li>
|
<li>mower_wsEvent - websocket connection events (status-event, positions-event, settings-event)</li>
|
||||||
<li>mower_errorCode - last error code</li>
|
<li>mower_errorCode - last error code</li>
|
||||||
<li>mower_errorCodeTimestamp - last error code time stamp</li>
|
<li>mower_errorCodeTimestamp - last error code time stamp</li>
|
||||||
@ -1044,6 +1045,7 @@ __END__
|
|||||||
<li>mower_commandSend - Letzter erfolgreich gesendeter Befehl.</li>
|
<li>mower_commandSend - Letzter erfolgreich gesendeter Befehl.</li>
|
||||||
<li>mower_commandStatus - Status des letzten uebermittelten Kommandos wird duch Statusupdate zurückgesetzt.</li>
|
<li>mower_commandStatus - Status des letzten uebermittelten Kommandos wird duch Statusupdate zurückgesetzt.</li>
|
||||||
<li>mower_currentZone - Name der Zone im aktuell abgefragten Intervall der Statuszeitstempel , in der der Mäher gemäht hat und Anzahl der Wegpunkte in der Zone in Klammern.</li>
|
<li>mower_currentZone - Name der Zone im aktuell abgefragten Intervall der Statuszeitstempel , in der der Mäher gemäht hat und Anzahl der Wegpunkte in der Zone in Klammern.</li>
|
||||||
|
<li>mower_inactiveReason - Gründe für Inaktivität: NONE, PLANNING, SEARCHING_FOR_SATELLITES.</li>
|
||||||
<li>mower_wsEvent - Events der Websocketverbindung (status-event, positions-event, settings-event)</li>
|
<li>mower_wsEvent - Events der Websocketverbindung (status-event, positions-event, settings-event)</li>
|
||||||
<li>mower_errorCode - last error code</li>
|
<li>mower_errorCode - last error code</li>
|
||||||
<li>mower_errorCodeTimestamp - last error code time stamp</li>
|
<li>mower_errorCodeTimestamp - last error code time stamp</li>
|
||||||
|
@ -2374,10 +2374,11 @@ sub fillReadings {
|
|||||||
readingsBulkUpdateIfChanged( $hash, '.mower_id', $hash->{helper}{mower}{id}, 0 );
|
readingsBulkUpdateIfChanged( $hash, '.mower_id', $hash->{helper}{mower}{id}, 0 );
|
||||||
readingsBulkUpdateIfChanged( $hash, "batteryPercent", $hash->{helper}{mower}{attributes}{battery}{batteryPercent} );
|
readingsBulkUpdateIfChanged( $hash, "batteryPercent", $hash->{helper}{mower}{attributes}{battery}{batteryPercent} );
|
||||||
my $pref = 'mower';
|
my $pref = 'mower';
|
||||||
|
my $rval = ReadingsVal( $name, $pref.'_inactiveReason', '' );
|
||||||
|
|
||||||
if ( ! ReadingsVal( $name, $pref.'_inactiveReason', '' ) && $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} ne 'NONE' ) {
|
if ( !$rval && $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} ne 'NONE' ) {
|
||||||
readingsBulkUpdateIfChanged( $hash, $pref.'_inactiveReason', $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} );
|
readingsBulkUpdateIfChanged( $hash, $pref.'_inactiveReason', $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} );
|
||||||
} else {
|
} elsif ( $rval ) {
|
||||||
readingsBulkUpdateIfChanged( $hash, $pref.'_inactiveReason', $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} );
|
readingsBulkUpdateIfChanged( $hash, $pref.'_inactiveReason', $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user