diff --git a/fhem/CHANGED b/fhem/CHANGED index 8d15baccb..9bd7bb1e5 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. + - feature 74_HOMBOT: formated Value for Reading lastClean - feature 74_HOMBOT: include Detail_Fn link to Luigi Contro Center - feature 49_SSCAM: control of exposure mode day, night & auto is possible now diff --git a/fhem/FHEM/74_HOMBOT.pm b/fhem/FHEM/74_HOMBOT.pm index 801cded79..ca04f89dd 100644 --- a/fhem/FHEM/74_HOMBOT.pm +++ b/fhem/FHEM/74_HOMBOT.pm @@ -35,7 +35,7 @@ use Time::HiRes qw(gettimeofday); use HttpUtils; use Blocking; -my $version = "0.2.2"; +my $version = "0.2.3"; @@ -457,11 +457,18 @@ sub HOMBOT_RetrieveHomebotInfoFinished($$$) { $t =~ s/JSON_TURBO/turbo/g; $t =~ s/JSON_ROBOT_STATE/hombotState/g; $t =~ s/CLREC_CURRENTBUMPING/currentBumping/g; - $t =~ s/CLREC_LAST_CLEAN/lastClean/g; + + if( $t eq "CLREC_LAST_CLEAN" ) { + my @lctime = split( '/' , $v ); + $v = $lctime[2].".".$lctime[1].".".$lctime[0]." ".$lctime[3].":".$lctime[4]; + $t = "lastClean"; + } + $t =~ s/JSON_BATTPERC/batteryPercent/g; $t =~ s/JSON_VERSION/firmware/g; $t =~ s/LGSRV_VERSION/luigiSrvVersion/g; + readingsBulkUpdate( $hash, $t, $v ) if( $t =~ m/[a-z]/s && defined( $t ) && defined( $v ) ); }