Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch limited vehicle info over BLE #25

Closed
baylanger opened this issue Jul 3, 2024 · 3 comments
Closed

Fetch limited vehicle info over BLE #25

baylanger opened this issue Jul 3, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@baylanger
Copy link
Contributor

baylanger commented Jul 3, 2024

Following this tesla-command PR263 that was merged 2 days ago, we can start reading some data using the command body-controller-state

  • Presence of the car
  • Sleep state
  • Lock / Closure states
@raphmur
Copy link
Contributor

raphmur commented Jul 3, 2024

@baylanger you were faster than me :)

Output seems to be json formatted

When vehicle is asleep:

{
        "vehicleLockState":  "VEHICLELOCKSTATE_LOCKED",
        "vehicleSleepStatus":  "VEHICLE_SLEEP_STATUS_ASLEEP",
        "userPresence":  "VEHICLE_USER_PRESENCE_NOT_PRESENT"
}

When vehicle is awake:

{
        "closureStatuses":  {
                "frontDriverDoor":  "CLOSURESTATE_CLOSED",
                "frontPassengerDoor":  "CLOSURESTATE_CLOSED",
                "rearDriverDoor":  "CLOSURESTATE_CLOSED",
                "rearPassengerDoor":  "CLOSURESTATE_CLOSED",
                "rearTrunk":  "CLOSURESTATE_CLOSED",
                "frontTrunk":  "CLOSURESTATE_CLOSED",
                "chargePort":  "CLOSURESTATE_OPEN",
                "tonneau":  "CLOSURESTATE_CLOSED"
        },
        "vehicleLockState":  "VEHICLELOCKSTATE_LOCKED",
        "vehicleSleepStatus":  "VEHICLE_SLEEP_STATUS_AWAKE",
        "userPresence":  "VEHICLE_USER_PRESENCE_NOT_PRESENT"
}

@raphmur
Copy link
Contributor

raphmur commented Jul 10, 2024

Key element: no authentication needed. No need to supply any key

@iainbullock
Copy link
Contributor

Development release _docker#0.0.3a-dev adds read state functionality.

Docker image available from DockerHub if you wish to test and provide feedback: iainbullock/tesla_ble_mqtt:dev

Please reopen this issue if you have any feedback, thanks Iain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants