I have an external routine (PHP and Tasker) that computes the actual distance from my current location to my “Home” location. This routine is called, via a ST Smartapp, only once Life360 says I have “arrived home”. The routine calculates the actual distance from my current location to my “home” location and once the distance is less than a particular setting, turns on a ST virtual switch. So far this is working quite well. But…
A “nice to have” feature would be to pass the calculated distances from the external routine to the Smartapp. I know I can pass external parameters to a device with something like path("/switches/:id/:command") however, I would like to avoid using a device if possible (i.e. pass parameter to am app State var). Is this possible? Any examples??