GPS from external source to HA

In my network I have a tool that - queried via ssh with the command gpsctl -i -x, gives me back latitude and longitude. I also wrote a small sh script which save a file containing a latitude / longitude. How can i send the results of this command / script to HA to use them in the MAP component or to do some automations ??

Thans a lot

you can probably create a device tracker with the data. but you’ll need to get the lat & long into HA to be able to do that.

If it’s written to a file then you might be able to use the file sensor to read the contents and use it from there.

Perhaps this?

I used MQTT to get the data into HA, possibly an option?