PyTeslaBLE icon indicating copy to clipboard operation
PyTeslaBLE copied to clipboard

AttributeError: 'EnumTypeWrapper' object has no attribute 'RKE_ACTION_LOCK'

Open BogdanDIA opened this issue 1 year ago • 1 comments

Hi,

I tried today sending one command to my car over BLE. I am using Ubuntu 20.04. After replacing the .write_command to .write_request wherever needed, the execution went almost to the end except the last write, see below. Can this be due to wrong VCSEC? :

... Enter choice: 1 Connecting to vehicle... Enter a command, or 'help' for a list of commands. Type 'exit' to quit. Enter command: help

Commands available: EXIT: Exit the program HELP: Print this message LOCK: Lock the vehicle UNLOCK: Unlock the vehicle OPEN_TRUNK: Open the vehicle's trunk OPEN_FRUNK: Open the vehicle's front trunk OPEN_CHARGE_PORT: Open and unlock the vehicle's charge port CLOSE_CHARGE_PORT: Close and lock the vehicle's charge port

Enter a command, or 'help' for a list of commands. Type 'exit' to quit. Enter command: LOCK Traceback (most recent call last): File "Main.py", line 42, in vehicle.lock() File "/home/account/.local/lib/python3.8/site-packages/pyteslable/TeslaBLE.py", line 254, in lock msg = self.__service.lockMsg() File "/home/account/.local/lib/python3.8/site-packages/pyteslable/TeslaBLE.py", line 473, in lockMsg return self.rkeActionMsg(VCSEC_pb2.RKEAction_E.RKE_ACTION_LOCK) AttributeError: 'EnumTypeWrapper' object has no attribute 'RKE_ACTION_LOCK'

Thanks

BogdanDIA avatar Oct 15 '23 19:10 BogdanDIA