Testing Tesla EV Control

Posted on
Wed May 11, 2022 9:38 am
anupchavda offline
Posts: 16
Joined: Jul 27, 2019

Testing Tesla EV Control

Hi
Seeing as the new version of Indigo was released and I saw a bit of work had been done on this plugin, I wanted to test what was available.

Plugin installed correctly :D
Able to create device "Tesla" :D
Able to enter my refresh token :D
Able to query the car :D :D :D

This is amazing!!

the issue I have is when I try to create a trigger (ie open charge flap) I get the following which I believe is a python error: Vehicle.command() takes 2 positional arguments but 3 were given

Code: Select all
   Tesla EV Control                Tesla command charge_port_door_open for vehicle 149xxxxxxxx
   Tesla EV Control Error          Vehicle.command() takes 2 positional arguments but 3 were given
   Tesla EV Control Error          Error issuing command: charge_port_door_open com.howartp.teslacontrol : (dict)
   Tesla EV Control Error          Plugin version: 3.0.1
   Tesla EV Control Debug          Traceback (most recent call last):
  File "plugin.py", line 226, in vehicleCommand
    self.response = vehicle.command(commandName, data)
TypeError: Vehicle.command() takes 2 positional arguments but 3 were given


Is this something I need to fix or I can help you with?
Last edited by anupchavda on Wed May 11, 2022 9:50 am, edited 2 times in total.

Posted on
Wed May 11, 2022 9:46 am
anupchavda offline
Posts: 16
Joined: Jul 27, 2019

Re: Testing Tesla EV Control

Further quick testing shows that the following commands work:

Wake
Get Charge State
Get Climate State
Get Drive State
Get Vehicle State
Get Vehicle Config
Get GUI State
Get Service Data State

The actual actions of getting something in the car to work (ie heaters, open charge port etc. etc) throw the above error message.

thanks

Posted on
Wed May 11, 2022 9:57 am
anupchavda offline
Posts: 16
Joined: Jul 27, 2019

Re: Testing Tesla EV Control

sorry...me again.

Did some googling and came up with this...does this help??

https://www.codegrepper.com/code-exampl ... were+given

Thanks

Posted on
Wed May 11, 2022 11:44 am
howartp offline
Posts: 4420
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Testing Tesla EV Control

Hi Anup

I'm going to have to play with this; I know why it's giving the error but I need to work out the right solution - i'm using a publicly available API so I'd rather fix my code to use theirs, than change theirs, in case they update it.

I never tested "commands" as the person whose car I have control of wasn't around so I couldn't start flashing his headlights or opening his boot for him! Querying values was safe enough to test!

What country/timezone are you in? Would you be happy to send me PM with your tesla account details (change password if you want) for a day or two?

Posted on
Thu May 12, 2022 4:12 am
anupchavda offline
Posts: 16
Joined: Jul 27, 2019

Re: Testing Tesla EV Control

howartp wrote:
What country/timezone are you in? Would you be happy to send me PM with your tesla account details (change password if you want) for a day or two?


I'm in the same country as you (I think) as I'm down on London.

More than happy to get this access sorted for you so we can help the community.

I'll PM you.

Thanks

Posted on
Sat May 28, 2022 2:27 am
howartp offline
Posts: 4420
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Testing Tesla EV Control

v3.0.2 is now published on the Plugin Store if anyone else gets this.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest