I figured i’d pass this on to anyone also interested. I put this together using elements from other articles I found online and it’s been great. My wife and I use both Unifi (WiFI) and now Owntracks (GPS) for presence mainly because her iPhone would constantly drop on and off the WiFi as it slept.
Nodes used: node-red-contrib-boolean-logic-ultimate, node-red-contrib-unifi, node-red-node-geofence and node-red-contrib-owntracks
Step 1) Sign up for a free service with HiveMQ . This service offers a cloud hosted (Azure or AWS you choose) secure service
Step 2) Install Owntracks on either your Android or iPhone devices and set encryption key.
Step 3) Configure Owntracks public secure connection to MQTT and enter details from the HiveMQ service.
Step 4) Configure Node-RED to (as per image) or develop your own flow (your call). Note: I also push this and the Unifi (WiFi) payloads into a boolean logic ultimate node so they work together. Note: set the same encryption key as mobile app in node-red-contrib-owntracks node.
Anyways I won’t bother sharing the flow with this one given it’s a all custom to my setup but I do suggest looking into this because it’s made a significant difference in our house. I can share components you need though if interested and again if you do it another way and or make it better share back here for others.