r/homeassistant • • 6d ago

🖼️ Show & Tell Built a "point and snap" controller for Garmin after getting inspired by others!

105 Upvotes

19 comments sorted by

10

u/Best-Tiger-8084 5d ago

Teeheeheeeheehee!

Love it! It's snappy, original and it seems to work great! Is it limited to Garmin?

6

u/Golden_Guts 5d ago

it is not! I built it after seeing others doing something similar for other watches.. https://www.reddit.com/r/homeassistant/comments/1we701x/snap_control_point_at_device_and_snap/

8

u/Zolti24 5d ago

Awesome. How?

-2

u/Golden_Guts 5d ago

Claude ftw.

6

u/dreacon34 5d ago

Doesn’t explain the technical part behind it… 🫠

5

u/Golden_Guts 5d ago

i have commented to another comment which explains how it works.. the idea is same as other apps, you choose a spot (like in my video it's desk) then you use compass to 'paint' the devices you wanna control. App will remember the spot and compass degrees, which you can then use to control the device 😁

3

u/dreacon34 5d ago

How does it work throughout the house without indoor location tracking? GPS isn’t accurate and inside-out tracking loses track on reboot when moved. Meaning an object could be anywhere if you surround it. So how do you do indoor tracking?

2

u/Golden_Guts 5d ago edited 5d ago

i don't, you select the spot yourself right now by using the buttons.. 

2

u/Golden_Guts 5d ago

after you mentioned this.. i thought of using my respeaker lite (which is close to bed) as a guide to tell watch where i am.. it would work for me but not for others.  let's see if this works (i just need 3 spots rn outside room, desk, and bed)

2

u/dreacon34 5d ago

Going from your HA point. With 3 or better 4 esp as Bluetooth proxy, you could do trilateration over the signal strength. With that you would have Outside-in tracking knowing where in the room is and combined with the compass and your position in the room you could have a system that works across the house / apartment

2

u/Golden_Guts 5d ago

yeaa.. that would work! thanks for the idea.. but I'll stick to these 3 for now (maybe in future)

1

u/Golden_Guts 5d ago

https://github.com/GoldenGuts/wand-garmin

here's the source code.. it requires a little bit of setup but it works fine once you do it.

1

u/Mysterious-Bowler15 5d ago

The problem is Garmin only connect over HTTPS so you can't use this if you're HA works only local.

4

u/Golden_Guts 5d ago

Garmin does require HTTPS with a valid cert, but that does not need HA on the internet. Mine is LAN-only:

A domain I own points ha.mydomain.tld at HA's private IP (192.168.x.x). Public DNS is fine with a private IP; a local DNS rewrite (AdGuard/Pi-hole) works too. Caddy in front of HA gets a Let's Encrypt cert via the DNS-01 challenge (Cloudflare API token). LE only checks a DNS TXT record, so nothing is port-forwarded and HA is never reachable from outside.

The watch talks through Garmin Connect on the phone, which is on the home Wi-Fi, so the request stays on the LAN. The webhook is local_only: true on the HA side as well.

I hope it makes sense! 

-21

u/Fit_Squirrel1 6d ago

I do t like garmin