diff --git a/fhem/CHANGED b/fhem/CHANGED index 63c8ac9cd..eb6e56afb 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,7 +1,7 @@ # 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. - - feature: 74_AutomowerConnect: add attr disabledForIntervals - - feature: 75_AutomowerConnectDevice: add attr disabledForIntervals + - feature: 74_AutomowerConnect: add disabledForIntervals, Internal MODEL + - feature: 75_AutomowerConnectDevice: add disabledForIntervals, Internal MODEL - bugfix: 98_WeekdayTimer: !$we handling - new: 74_AutomowerConnect: Control Automower + Host - new: 75_AutomowerConnectDevice: Control Automower Client diff --git a/fhem/FHEM/74_AutomowerConnect.pm b/fhem/FHEM/74_AutomowerConnect.pm index 16f4d759d..ff452d0b3 100644 --- a/fhem/FHEM/74_AutomowerConnect.pm +++ b/fhem/FHEM/74_AutomowerConnect.pm @@ -470,7 +470,8 @@ sub getMowerResponse { readingsBulkUpdateIfChanged($hash, $pref."_name", $hash->{helper}{mower}{attributes}{$pref}{name} ); my $model = $hash->{helper}{mower}{attributes}{$pref}{model}; $model =~ s/AUTOMOWER./AUTOMOWER®/; - readingsBulkUpdateIfChanged($hash, $pref."_model", $model ); + $hash->{MODEL} = $model if ( $model && $hash->{MODEL} ne $model ); + # readingsBulkUpdateIfChanged($hash, $pref."_model", $model ); readingsBulkUpdateIfChanged($hash, $pref."_serialNumber", $hash->{helper}{mower}{attributes}{$pref}{serialNumber} ); $pref = 'planner'; readingsBulkUpdateIfChanged($hash, "planner_restrictedReason", $hash->{helper}{mower}{attributes}{$pref}{restrictedReason} ); @@ -1505,7 +1506,6 @@ sub readMap {
  • status_statusTimestampDiff - time difference in seconds between the last and second last change of the API content
  • status_statusTimestampOld - local time of second last change of the API content
  • system_name - name of the mower
  • -
  • system_model - model of the mower
  • system_serialNumber - serial number of the mower
  • @@ -1760,7 +1760,6 @@ sub readMap {
  • status_statusTimestampDiff - Zeitdifferenz zwichen den beiden letzten Änderungen im Inhalt der Daten aus der API
  • status_statusTimestampOld - Lokalzeit der vorletzten Änderung der Daten in der API
  • system_name - Name des Automowers
  • -
  • system_model - Model des Automowers
  • system_serialNumber - Seriennummer des Automowers
  • diff --git a/fhem/FHEM/75_AutomowerConnectDevice.pm b/fhem/FHEM/75_AutomowerConnectDevice.pm index 6a7975cee..27fb7fa47 100644 --- a/fhem/FHEM/75_AutomowerConnectDevice.pm +++ b/fhem/FHEM/75_AutomowerConnectDevice.pm @@ -1,4 +1,6 @@ ############################################################################### +# +# $Id$ # # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,8 +18,6 @@ # GNU General Public License for more details. # # -# $Id$ -# # ################################################################################ @@ -301,7 +301,8 @@ sub Notify { readingsBulkUpdateIfChanged($hash, $pref."_name", $hash->{helper}{mower}{attributes}{$pref}{name} ); my $model = $hash->{helper}{mower}{attributes}{$pref}{model}; $model =~ s/AUTOMOWER./AUTOMOWER®/; - readingsBulkUpdateIfChanged($hash, $pref."_model", $model ); + $hash->{MODEL} = $model if ( $model && $hash->{MODEL} ne $model ); + # readingsBulkUpdateIfChanged($hash, $pref."_model", $model ); readingsBulkUpdateIfChanged($hash, $pref."_serialNumber", $hash->{helper}{mower}{attributes}{$pref}{serialNumber} ); $pref = 'planner'; readingsBulkUpdateIfChanged($hash, "planner_restrictedReason", $hash->{helper}{mower}{attributes}{$pref}{restrictedReason} ); @@ -1249,7 +1250,6 @@ sub readMap {
  • status_statusTimestampDiff - time difference in seconds between the last and second last change of the API content
  • status_statusTimestampOld - local time of second last change of the API content
  • system_name - name of the mower
  • -
  • system_model - model of the mower
  • system_serialNumber - serial number of the mower
  • @@ -1479,7 +1479,6 @@ sub readMap {
  • status_statusTimestampDiff - Zeitdifferenz zwichen den beiden letzten Änderungen im Inhalt der Daten aus der API
  • status_statusTimestampOld - Lokalzeit der vorletzten Änderung der Daten in der API
  • system_name - Name des Automowers
  • -
  • system_model - Model des Automowers
  • system_serialNumber - Seriennummer des Automowers