Teslemetry / python-tesla-fleet-api

Python library for Tesla Fleet API and Teslemetry
https://teslemetry.com/docs
Apache License 2.0
11 stars 3 forks source link

Seat heaters #4

Open craigsbits opened 1 month ago

craigsbits commented 1 month ago

Cold weather is upon us once again in uk. My script to control the seat heaters is now throwing errors. Even the default dashboard does not work. I have tried switching off auto prior to manually setting but the auto switch just gets stuck and I have to resort to the official app to fix it back to auto. Is it me. Errors persist for a couple of seconds but say something like " the request body is not valid" when I manually set to low/medium/high

Bre77 commented 1 month ago

It would help to know which seat you're trying to change and provide a code snippet.

Seat heaters were extremely annoying to implement because the seat positions are not sequential, and the new Model 3 has a different configuration to the original Model 3.

craigsbits commented 1 month ago

It was for a model y. I was not able to use the dashboard provided with integration. If I change the official Tesla app to control seat heaters it was reflected in the Teslemetry control dashboard so that bit is ok but cannot use the dashboard to control car seat heaters. I can sort my script later. Its Teslemetry thats has got the issue.

craigsbits commented 1 month ago

Error messages: On switch off auto (left) : "Failed to perform the action switch/turn_off. Unknown CarSeat.seat_position". Is this because car is right hand drive? UK

Change of heat level: "Failed to perform the action select/select_option. Teslemetry command failed, The request body is not valid"

Nothing gets to car.

Bre77 commented 1 month ago

Is it every seat position that doesn't work or just one? I tested this on a RHD Model 3, but it's possible the positions are different in the Y compared to the 3.

The best thing you can do to help is try every seat heater, let me know which work, and which seat they actually turn on (because the mapping might be off).

craigsbits commented 1 month ago

It is...I have a cunning plan...(Black adder). Give me a few minutes

craigsbits commented 1 month ago

I have video of phone screen. It does nothing when hvac not running (just errors). With hvac running right auto button operates left seat into manual and back. Left button throws error. Off/low/med/high selection just errors I think. When data is coming from car the seat position appears to be correct in HA. Rear seat heaters (fitted) have not been picked up so that may be relevant.

craigsbits commented 1 month ago

https://drive.google.com/file/d/1KKdBIEn1RtO7VrheeteM8asXC4RBYyla/view?usp=drivesdk