diff --git a/98_TadoAPI.pm b/98_TadoAPI.pm index aff44cc..8c30de7 100644 --- a/98_TadoAPI.pm +++ b/98_TadoAPI.pm @@ -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'})){