use the code below with a scene... if user is > distance away then press button 1 of virtual device... you could make 5 buttons each with a different tracking number the one below sets you to 60 minutes.
good luck...
-------------------------
HC2 = Net.FHttp("127.0.0.1",11111);
local payload = '{"tracking": 60}';
response ,status, errorCode = HC2:PUT("/api/users/2", payload);
if tonumber(status) == 200 then
fibaro:debug("tracking is now set to 60 minutes");
else
fibaro:debug("Status = "..status);
fibaro:debug("Error code = "..errorCode);
end