2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

70_BOTVAC.pm: fix missing battery parameters

git-svn-id: https://svn.fhem.de/fhem/trunk@19192 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vuffiraa 2019-04-15 17:43:35 +00:00
parent f60c8b16bc
commit 4084c85250
2 changed files with 5 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.
- bugfix: 70_BOTVAC: fix missing battery parameters
- bugfix: 70_BRAVIA: fix command queue stops if upnp service is not available
- change: dummy/MQTT2_DEVICE/ZWave: setExtensionsEvent attr (Forum #95581)
- change: 93_DbLog: add support for Meta.pm and delayed shutdown, attribute

View File

@ -1003,8 +1003,10 @@ sub ReceiveCommand($$$) {
my $generalInfo = $return->{data};
if ( ref($generalInfo->{battery}) eq "HASH" ) {
my $batteryInfo = $generalInfo->{battery};
readingsBulkUpdateIfChanged($hash, "batteryTimeToEmpty", $batteryInfo->{timeToEmpty});
readingsBulkUpdateIfChanged($hash, "batteryTimeToFullCharge", $batteryInfo->{timeToFullCharge});
readingsBulkUpdateIfChanged($hash, "batteryTimeToEmpty", $batteryInfo->{timeToEmpty})
if (defined($batteryInfo->{timeToEmpty}));
readingsBulkUpdateIfChanged($hash, "batteryTimeToFullCharge", $batteryInfo->{timeToFullCharge})
if (defined($batteryInfo->{timeToFullCharge}));
readingsBulkUpdateIfChanged($hash, "batteryTotalCharges", $batteryInfo->{totalCharges});
readingsBulkUpdateIfChanged($hash, "batteryManufacturingDate", $batteryInfo->{manufacturingDate});
readingsBulkUpdateIfChanged($hash, "batteryAuthorizationStatus", GetAuthStatusText($batteryInfo->{authorizationStatus}));