Merge remote-tracking branch 'origin/master'

This commit is contained in:
Philipp Wo 2019-12-09 21:32:29 +01:00
commit 4c36477bc6
1 changed files with 1 additions and 1 deletions

View File

@ -929,7 +929,7 @@ sub TadoAPI_UpdateMobileReadingsCallback($){
foreach my $item ( @$decoded_data ){
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, "GeoTracking_" . $item->{'id'}, $item->{'settings'}->{'geoTrackingEnabled'});
if(defined($item->{'location'}->{'atHome'}) && $item->{'location'}->{'atHome'} eq "true"){
if(defined($item->{'location'}->{'atHome'}) && $item->{'location'}->{'atHome'}){
# present
readingsBulkUpdate($hash, "GeoLocation_" . $item->{'id'}, "present");
}elsif(defined($item->{'location'}->{'atHome'})){