I’m tracking my own location in two ways: Google Location Sharing and OwnTracks. OwnTracks eats quite a bit of battery when set to move
mode, but it does work over MQTT, which makes my Node-RED happy. But I’m curious about Google Location Sharing, and would like to see how well it works.
My goal is to set up an automation that pushes location change events to the MQTT publish service, and have Node-RED on the other side comparing the delays, frequencies, and accuracy of the two methods. Unfortunately, I seem to be stuck.
I’ve think I can use the state trigger on the device tracker to call mqtt.publish, but I’m not sure how to construct the topic and payload. The end goal is to have it simply publish lat, lon, and a last updated
timestamp of some sort.
I’ve looked into the eventstream, but that’s kinda overkill, places all messages with the retain-flag, and does not seem to publish updates
, but rather sends data with a specific interval.