From 37508d61187d9d1bee8a45222cefac5db23033eb Mon Sep 17 00:00:00 2001 From: kaihs <> Date: Wed, 23 May 2018 18:42:34 +0000 Subject: [PATCH] 36_WMBUS: standard battery readings git-svn-id: https://svn.fhem.de/fhem/trunk@16765 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/36_WMBUS.pm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 441bdd3bf..8b63c90c1 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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: 36_WMBUS: standard battery readings - change: 32_withings/38_netatmo/72_XiaomiDevice: standard battery readings - bugfix: 98_dewpoint: Use NOTIFYDEV with framework functions - feature: 57_Calendar: new parameter "limit" (forum #87566) diff --git a/fhem/FHEM/36_WMBUS.pm b/fhem/FHEM/36_WMBUS.pm index 1d1264c4c..738db4539 100644 --- a/fhem/FHEM/36_WMBUS.pm +++ b/fhem/FHEM/36_WMBUS.pm @@ -340,7 +340,7 @@ sub WMBUS_SetReadings($$$) readingsBulkUpdate($hash, "$dataBlock->{number}_errormsg", $dataBlock->{errormsg}); } } - readingsBulkUpdate($hash, "battery", $mb->{status} & 4 ? "low" : "ok"); + readingsBulkUpdate($hash, "batteryState", $mb->{status} & 4 ? "low" : "ok"); WMBUS_SetDeviceSpecificReadings($hash, $name, $mb); } @@ -542,7 +542,7 @@ WMBUS_Attr(@)
  • is_encrypted is 1 if the received message is encrypted.
  • decryption_ok is 1 if a message has either been successfully decrypted or if it is unencrypted.
  • state contains the state of the meter and may contain error message like battery low. Normally it contains 'no error'.
  • -
  • battery contains ok or low.
  • +
  • batteryState contains ok or low.
  • For some well known devices specific readings like the energy consumption in kWh created. @@ -653,7 +653,7 @@ WMBUS_Attr(@)
  • is_encrypted ist 1 wenn die empfangene Nachricht verschlüsselt ist.
  • decryption_ok ist 1 wenn die Nachricht entweder erfolgreich entschlüsselt wurde oder gar nicht verschlüsselt war.
  • state enthält den Status des Zählers und kann Fehlermeldungen wie 'battery low' enthalten. Normalerweise ist der Wert 'no error'.
  • -
  • battery enthält ok oder low.
  • +
  • batteryState enthält ok oder low.
  • Für einige bekannte Gerätetypen werden zusätzliche Readings wie der Energieverbrauch in kWh erzeugt.