I want to trigger my gate when I arrive home. Sounds simple, but I’m struggling with my next step in this looong, treacherous, road. GPS triggers to IFTTT work but they are unreliable and I want to get rid of the cloud components. So iBeacons and Owntracks were suggested by others here. I took the bait. Here’s what I finally have working:
- OwnTracks integration is now successfully posting messages to home assistant via MQTT (I cant use http)
- I finally have a reliable ibeacon working in Owntracks. It also sends a waypoint trigger to ha via MQTT when it sees the iBeacon - entered and exited messages on the iPhone ( I also see these in the HA log and they are being unencrypted).
- I defined a zone named “Gate” with the same waypoint coordinators as the owntracks iBeacon in HA and it appears on the HA map
- I’ve set the iBeacon waypoints to the same zone “Gate”
- I have a HA sonoff switch that opens and closes (via toggle sw) the gate.
Now what? I’ve read so many threads, some older and now deprecated, with so many approaches that my head is spinning. Here’s the issue:
I drive past the beacon on my way in and my way out. How do I get it to only toggle the gate sw on my way in? How do I even see a state change at all in HA?
The biggest issue I have is that nowhere do I see any indication that the log entries translate to some kind of state change in home assistant ie “iBeacon Detected”. No switch changes state, nothing changes on the map
This whole process is daunting at best for a user like me. I’m technically astute, but this part is really isn’t clear or straightforward. I do understand the challenge though with so much hardware out there and so many options, as well as the code changing so quickly. But I’m struggling.
Any help appreciated on how to get to the next step.
Jeff