Feature request: not waking the car if asleep

Posted on
Mon Sep 28, 2020 2:28 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Feature request: not waking the car if asleep

Hi.

After I started to use this plugin and refreshing data periodically my M3 is not going to sleep.
I see in the log that if I use a refresh interval of say 30 minutes the plugin is waking the car for a refresh. I understand that this is necessary but I would like to be able to control when it should be ok to wake the car.
Afaik the API call ".../api/1/vehicles/{id}" will tell you if the car is online or sleeping and this call does not wake the car.

Code: Select all
{
  "response": {
    "id": 12345678901234567,
    "vehicle_id": 1234567890,
    "vin": "5YJSA11111111111",
    "display_name": "Nikola 2.0",
    "option_codes": "MDLS,RENA,AF02,APF1,APH2,APPB,AU01,BC0R,BP00,BR00,BS00,CDM0,CH05,PBCW,CW00,DCF0,DRLH,DSH7,DV4W,FG02,FR04,HP00,IDBA,IX01,LP01,ME02,MI01,PF01,PI01,PK00,PS01,PX00,PX4D,QTVB,RFP2,SC01,SP00,SR01,SU01,TM00,TP03,TR00,UTAB,WTAS,X001,X003,X007,X011,X013,X021,X024,X027,X028,X031,X037,X040,X044,YFFC,COUS",
    "color": null,
    "tokens": ["abcdef1234567890", "1234567890abcdef"],
    "state": "online",
    "in_service": false,
    "id_s": "12345678901234567",
    "calendar_enabled": true,
    "api_version": 7,
    "backseat_token": null,
    "backseat_token_updated_at": null
  }
}


I would like to be able to use the state of the car as a condition for refreshing data.

The state parameter is collected when doing a refresh using the "refresh all vehicle states" action but that call is waking the car so the state is always online :)

TeslaFi has described the sleep procedure they use here, for reference: https://support.teslafi.com/knowledge-b ... mpire-loss

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Mon Sep 28, 2020 2:44 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Feature request: not waking the car if asleep

Hi

It won’t be soon but I’ll have a play.

I used to use the /vehicle/ command but users were finding that only limited data was returned (correctly). I then called /wake to wake it up and retry the data.

I now just call /data all the time.

Perer




Sent from my iPhone using Tapatalk Pro

Posted on
Mon Sep 28, 2020 4:36 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Feature request: not waking the car if asleep

Sounds great, looking forward to an update, I can beta-test if you need input from other Tesla users.

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest