fixed set reading
This commit is contained in:
parent
1e9a31b5f4
commit
f2e88a911f
@ -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'}) && defined($item->{'location'}->{'atHome'}) eq "true"){
|
||||
if(defined($item->{'location'}->{'atHome'}) && $item->{'location'}->{'atHome'} eq "true"){
|
||||
# present
|
||||
readingsBulkUpdate($hash, "GeoLocation_" . $item->{'id'}, "present");
|
||||
}elsif(defined($item->{'location'}->{'atHome'})){
|
||||
|
Loading…
x
Reference in New Issue
Block a user