2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +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:
Ellert 2024-05-18 10:19:53 +00:00
parent ac575499ed
commit c340e0a662
3 changed files with 6 additions and 2 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
- change: 74_AutomowerConnect: minor changes
- feature: 76_SolarForecast: currentMeterDev: contotal and feedtotal can be
reset at day begin (day meter)
- feature: 76_SolarForecast: graphicBeamXContent: gridfeedin available,

View File

@ -556,6 +556,7 @@ __END__
<li>mower_commandSend - Last successfull sent command</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_inactiveReason - They are NONE, PLANNING, SEARCHING_FOR_SATELLITES.</li>
<li>mower_wsEvent - websocket connection events (status-event, positions-event, settings-event)</li>
<li>mower_errorCode - last error code</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_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_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_errorCode - last error code</li>
<li>mower_errorCodeTimestamp - last error code time stamp</li>

View File

@ -2374,10 +2374,11 @@ sub fillReadings {
readingsBulkUpdateIfChanged( $hash, '.mower_id', $hash->{helper}{mower}{id}, 0 );
readingsBulkUpdateIfChanged( $hash, "batteryPercent", $hash->{helper}{mower}{attributes}{battery}{batteryPercent} );
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} );
} else {
} elsif ( $rval ) {
readingsBulkUpdateIfChanged( $hash, $pref.'_inactiveReason', $hash->{helper}{mower}{attributes}{$pref}{inactiveReason} );
}