timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
1.99k stars 532 forks source link

API for MyQ garage door #697

Closed theearthwanderer closed 1 year ago

theearthwanderer commented 1 year ago

Hello, similar to Homelink, is there an API to trigger connected myQ garage door?

I understand I could probably use some other services to trigger myQ, but it seems that triggering through Tesla does not produce the 10 second beeping sound before closing. I wonder we could explore this API. Thank you

timdorr commented 1 year ago

There is already an API for this. While it's called trigger_homelink, it is agnostic about what system is running underneath: https://tesla-api.timdorr.com/vehicle/commands/homelink

theearthwanderer commented 1 year ago

@timdorr I tried to use that and it doesn't work. I use the lat and lon from vehicle data to make sure it's within proximity of the myQ garage but I keep getting:

{ "response": { "reason": "no_homelink_nearby", "result": false } }

Again, I dont have actual "Homelink" garage setup, I only have myQ garage setup. Have you ever test that API with a myQ setup before? Did it work for you?