Closed jamesremuscat closed 4 years ago
With the car set to 'charge now', the schedules comes back an empty array.
@boekabart That's not what I get:
>>> v._get('charge-mode')
{"data":{"type":"Car","id":"VF1xxxxxxxxxxx","attributes":{"chargeMode":"always_charging"}}}
{'chargeMode': 'always_charging'}
>>> v._get('charging-settings')
{"data":{"type":"Car","id":"VF1xxxxxxxxxxx","attributes":{"mode":"scheduled","schedules":[{"id":1,"activated":true,"monday":{"startTime":"T12:00Z","duration":15},"tuesday":{"startTime":"T12:00Z","duration":15},"wednesday":{"startTime":"T12:00Z","duration":15},"thursday":{"startTime":"T12:00Z","duration":15},"friday":{"startTime":"T12:00Z","duration":15},"saturday":{"startTime":"T12:00Z","duration":15},"sunday":{"startTime":"T04:30Z","duration":420}}]}}}
{'mode': 'scheduled', 'schedules': [{'id': 1, 'activated': True, 'monday': {'startTime': 'T12:00Z', 'duration': 15}, 'tuesday': {'startTime': 'T12:00Z', 'duration': 15}, 'wednesday': {'startTime': 'T12:00Z', 'duration': 15}, 'thursday': {'startTime': 'T12:00Z', 'duration': 15}, 'friday': {'startTime': 'T12:00Z', 'duration': 15}, 'saturday': {'startTime': 'T12:00Z', 'duration': 15}, 'sunday': {'startTime': 'T04:30Z', 'duration': 420}}]
Or do you mean something else by "charge now"?
Probably yet another artefact of the connected service not being completely 'live' yet - similar result as you now.
New endpoint (GET):
car-adapter/v1/cars/{vin}/charging-settings
.Example response:
Looks vaguely the same, except:
I'm assuming the POST endpoint at
car-adapter/v2/cars/{vin}/actions/charge-schedule
behaves in a somewhat similar manner to the existing one. (Note thev2
in this URL, which does not appear in the GET endpoint, though it probably should have done...)