timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

Home Page:https://tesla-api.timdorr.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fart Command

Urkman opened this issue · comments

Is there already a known endpoint for the new Fart command?

commented

Is there already a known endpoint for the new Fart command?

The remote boombox? documented in PR #666 ?

commented

@Urkman Try to request it.

POST /api/1/vehicles/{id}/command/remote_boombox

I will further document it then if it works.

commented

@Urkman may need a body parameter as json. It usually tells you the name of it in the response.

Example:

{
    "command": "fart"
}

@Urkman may need a body parameter as json. It usually tells you the name of it in the response.

Example:

{
    "command": "fart"
}

In this case from my experimentation POST'ing to the endpoint with an empty body results in the vehicle farting (seemingly picking at random from the option).

Response returned:

{"response":{"result":true,"reason":""}}

So, with an empty body the fart is triggered?

commented

Seems so. I will update the docs