2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 14:47:00 +00:00

36_WMBUS: standard battery readings

git-svn-id: https://svn.fhem.de/fhem/trunk@16765 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
kaihs 2018-05-23 18:42:34 +00:00
parent 5292fc1a4e
commit 37508d6118
2 changed files with 4 additions and 3 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: 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)

View File

@ -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(@)
<li><code>is_encrypted</code> is 1 if the received message is encrypted.</li>
<li><code>decryption_ok</code> is 1 if a message has either been successfully decrypted or if it is unencrypted.</li>
<li><code>state</code> contains the state of the meter and may contain error message like battery low. Normally it contains 'no error'.</li>
<li><code>battery</code> contains ok or low.</li>
<li><code>batteryState</code> contains ok or low.</li>
</ul>
For some well known devices specific readings like the energy consumption in kWh created.
</ul>
@ -653,7 +653,7 @@ WMBUS_Attr(@)
<li><code>is_encrypted</code> ist 1 wenn die empfangene Nachricht verschl&uuml;sselt ist.</li>
<li><code>decryption_ok</code> ist 1 wenn die Nachricht entweder erfolgreich entschl&uuml;sselt wurde oder gar nicht verschl&uuml;sselt war.</li>
<li><code>state</code> enth&auml;lt den Status des Z&auml;hlers und kann Fehlermeldungen wie 'battery low' enthalten. Normalerweise ist der Wert 'no error'.</li>
<li><code>battery</code> enth&auml;lt ok oder low.</li>
<li><code>batteryState</code> enth&auml;lt ok oder low.</li>
</ul>
Für einige bekannte Gerätetypen werden zusätzliche Readings wie der Energieverbrauch in kWh erzeugt.
</ul>