Closed jsgoecke closed 8 years ago
With this it will also need to support /command/trigger_homelink.
def summon_reverse(self):
print self.car_id action = "start_reverse"
params = { 'vehicle_id': self.car_id, 'lat': self.lat, 'lon': self.lon, 'action': action }
self.post('/api/1/vehicles/%d/command/autopark_request'
% self.car_id, params)
def summon_forward(self):
print self.car_id action = "start_forward"
params = { 'vehicle_id': self.car_id, 'lat': self.lat, 'lon': self.lon, 'action': action }
self.post('/api/1/vehicles/%d/command/autopark_request'
% self.car_id, params) Note that you get the exact lat and lon from the drive_state request. "action" is either "start_forward" or "start_reverse"
https://www.teslamotors.com/blog/summon-your-tesla-your-phone