Home Assistant as a logger

As a logging source, home assistant integration should be trivial. As you may know, home assistant itself has a bazillion way to record a device position (https://www.home-assistant.io/components/#presence-detection), and the companion apps themselves can send their position. It would then be very easy to post to an url via an automation, whether timely or other triggers, with the "RESTfull command" (https://www.home-assistant.io/components/rest_command/)

The data available is:

  • latitude
  • longitude
  • battery
  • gps accuracy in meter
  • [optional] altitude in meter
  • [optional] vertical accuracy in meter

What would be the best way to do so?