tesla-local-control / tesla_ble_mqtt_docker

Apache License 2.0
29 stars 8 forks source link

Summary of commands candidate for BLE calls #15

Closed raphmur closed 4 months ago

raphmur commented 4 months ago

Thank you for all the additions @iainbullock

I tried all of them to see which work. So far what I can tell:

product-info required Fleet API OAuth token --> KO with BLE

session-info: works. I got this first feedback message:

Retrieve session info for PUBLIC_KEY from DOMAIN
    PUBLIC_KEY: file containing public key (or corresponding private key)
    DOMAIN:     'vcsec' or 'infotainment'

Then called it with session-info [path to public key] vcsec and session-info [path to public key] infotainment. In both cases I got a json like answer with:

So even though it works, nothing really useful

get required Fleet API OAuth token --> KO with BLE

post required Fleet API OAuth token --> KO with BLE

ping: works but not really sure what it does. Maybe equivalent to "force data update" in the previous Integration

remove-key: should work. You need to supply the public.pem public key file to remove it. Did not try further.

rename-key required Fleet API OAuth token --> KO with BLE

All the others should work

raphmur commented 4 months ago

Helper for other commands

seat-heater: requires seat position and power --> you may need to adapt your code

Usage: seat-heater SEAT LEVEL
Set seat heater at POSITION to LEVEL
    SEAT:  <front|2nd-row|3rd-row>-<left|center|right> (e.g., 2nd-row-left)
    LEVEL: off, low, medium, or high
iainbullock commented 4 months ago

That's useful thanks. I'm currently working on this in the dev branch. A few bugs on the version on github dev branch. I'll fix them later and release a new dev version

iainbullock commented 4 months ago

v1.0.21-dev has some HA Select entities for the front seat heaters. Please could you see if it works?

raphmur commented 4 months ago

I tried, it works. However, A/C needs to be on otherwise you get this error: Failed to execute command: car could not execute command: cabin comfort remote settings not enabled

In addition calling Auto Seat & Climate gives the error below:

Invalid number of command line arguments: 1 (1 required, 1 optional).
Failed to execute command: invalid command line arguments
Usage: auto-seat-and-climate POSITIONS [ STATE ]
Turn on automatic seat heating and HVAC
    POSITIONS: 'L' (left), 'R' (right), or 'LR'
    STATE:     'on' (default) or 'off'

--> I suggest to force the command to auto-seat-and-climate LR on

raphmur commented 4 months ago

Note also that it is interesting that tesla-control gives a feedback on the A/C state...