nfarina / homebridge-tesla

Tesla plugin for homebridge: https://github.com/nfarina/homebridge
154 stars 38 forks source link

Tesla location/distance accessory #49

Open RCdiy opened 3 years ago

RCdiy commented 3 years ago

Feature request An accessory switch/sensor that turns on when the Tesla is within a certain distance from a location.

How it will be used When my Tesla is within a distance from home the accessory turns on. This triggers an automation to open the garage door using the myQ plugin.

RCdiy commented 3 years ago

@nfarina Any chance this will get implemented? I was working on it myself before the authentication got changed. I'm also incorporating bluetooth for redundancy. However I don't want to reinvent the wheel. Patreon? I'd gladly support.

nfarina commented 1 year ago

Sorry for not responding sooner!

For this to work without impacting battery, you'd want to query the Tesla API periodically and, only if the car is already awake, grab the location, and the closer you are to some target "geofenced" location, the more often you'd want to query. Finally, when you cross a set threshold, you'd trigger a switch or something.

I don't have any plans to implement this myself but I would be open to a PR implementing it! The beta version of the plugin is far easier to extend with additional services like this. Happy to explain more if you want to dive into it.

DjAnu commented 12 months ago

Hi, Had there been any work done on above, I would be interested.

RCdiy commented 12 months ago

Using Apple’s return home implementation has been working very well for me. So I have moved on. Also using Tessie has been a big help. Highly recommend trying it out.

DjAnu commented 12 months ago

Thanks for your response. I am using Apple's Home Kit presence but it isn't really as good as Tesla / MyQ. Also now that location radius on Apple Home is fixed to 330 ft its very sloppy since I have to go in a circle to get on main street, with 330 ft radius I get in /out a couple of time when I leave the house. I liked how precise Tesla / My Q was and that I would set the range to 10-20 ft to open/close garage door when Tesla Arrives/ Leaves.

Anyways what do use Tessie for ?