Support the summons capability
Closed this issue · 2 comments
jsgoecke commented
With this it will also need to support /command/trigger_homelink.
jsgoecke commented
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"