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