tdorssers / TeslaPy

A Python module to use the Tesla Motors Owner API
MIT License
374 stars 84 forks source link

Setting passenger temperature results in lowest setting. #74

Closed johnypony3 closed 2 years ago

johnypony3 commented 2 years ago

I'd like to thank you for this body of work. Very well crafted!

Setting the drivers temperature works as expected. Newest version 2.5.0

{"name":"change_climate_temperature_setting","data":{"driver_temp":20.555555555555554},"result":true}

{"name":"change_climate_temperature_setting","data":{"passenger_temp":20.555555555555554},"result":true}

image

tdorssers commented 2 years ago

You need to pass both driver_temp and passenger_temp. Also both values should be equal.

cli.py -e elon@tesla.com -c CHANGE_CLIMATE_TEMPERATURE_SETTING -k driver_temp=20 -k passenger_temp=20

johnypony3 commented 2 years ago

that definitely worked, any insight into why they have to be equal?

edit: I tried with two temps and it seemed to work:

[{
'name': 'change_climate_temperature_setting', 
'data': {'driver_temp': 20.555555555555554, 'passenger_temp': 22}, 
'result': True
}]

edit 2: confirmed that both temperatures are reflected in the vehicle.

thanks for the quick assist!