Comments (9)
wondering if there is a pre-heat status reported anywhere? I only have two entities for my car, 'odometer' and 'range electric'.
My current work around is to use the timed-preheat service, set to 10mins in the future.
I use the vin and following for the service data (mins since midnight) time: '{{ now().minute + (now().hour * 60) + 10 | int }}'
from mbapi2020.
Hi, Does it work in the mobile app at the same time?
from mbapi2020.
I will say that Starting preconditioning immediately has been flakey in the past - says it cannot contact the car occasionally - always gives an error msg. I think that’s pretty common from what I see in the forums.
Today (right now) the app is working. It takes around 55s from clicking the start-now button in merc-me app to update saying it’s started preconditioning (and I can confirm this by looking at the current draw on the charger without going outside). It takes 15seconds after tapping ‘off’ for the car to stop heating. Again, I can see the current drawn via the ease drop to zero.
I see the following repeated in the ha logs if it helps:
2021-01-19 20:56:26 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
from mbapi2020.
Ive just tried a pre-heat based on departure time. That worked:
2021-01-20 01:13:37 INFO (MainThread) [custom_components.mbapi2020.client] Start preheat_start_departure_time for vin WDD242xxxxxx
2021-01-20 01:13:37 INFO (MainThread) [custom_components.mbapi2020.client] End preheat_start_departure_time for vin WDD24xxxxxx
2021-01-20 01:13:37 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 01:13:37 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 9,
"updates_by_vin": {
"WDD24xxxxxx": {
"vin": "WDD242xxxxxx",
"updates_by_pid": {
"54179622": {
"process_id": "54179622",
"request_id": "a02b0fbc-120f-4bb2-922c-cf70cf481fd7",
"timestamp_in_ms": "-1",
"type": "PRECONDSTART",
"state": "INITIATION"
}
}
}
}
}
}
2021-01-20 01:13:37 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 9
2021-01-20 01:13:38 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 01:13:38 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 10,
"updates_by_vin": {
"WDD24xxxxxxx": {
"vin": "WDDxxxxx",
"updates_by_pid": {
"54179622": {
"process_id": "54179622",
"request_id": "a02b0fbc-120f-4bb2-922c-cf70cf481fd7",
"timestamp_in_ms": "1611105217000",
"type": "PRECONDSTART",
"state": "PROCESSING"
}
}
}
}
}
}
2021-01-20 01:13:38 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 10
2021-01-20 01:13:46 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2021-01-20 01:13:46 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2021-01-20 01:13:46 DEBUG (MainThread) [custom_components.mbapi2020.client] assigned_vehicles
2021-01-20 01:13:58 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 01:13:58 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 11,
"updates_by_vin": {
"WDD24289xxxxxxx": {
"vin": "WDD242xxxxxxx",
"updates_by_pid": {
"54179622": {
"process_id": "54179622",
"request_id": "a02b0fbc-120f-4bb2-922c-cf70cf481fd7",
"timestamp_in_ms": "1611105218000",
"type": "PRECONDSTART",
"state": "WAITING"
}
}
}
}
}
}
2021-01-20 01:13:58 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 11
2021-01-20 01:14:01 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2021-01-20 01:14:01 DEBUG (MainThread) [custom_components.mbapi2020.client] assigned_vehicles
2021-01-20 01:14:01 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2021-01-20 01:14:06 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 01:14:06 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 12,
"updates_by_vin": {
"WDD2428xxxxxx": {
"vin": "WDD2xxxxxxx",
"updates_by_pid": {
"54179622": {
"process_id": "54179622",
"request_id": "a02b0fbc-120f-4bb2-922c-cf70cf481fd7",
"timestamp_in_ms": "1611105245000",
"type": "PRECONDSTART",
"state": "FINISHED"
}
}
}
}
}
}````
from mbapi2020.
FYI. Pre-heat stop also failed.
from mbapi2020.
Same issue here. This Is from calling service start preheat now from tools.
2021-01-20 19:40:06 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 4
2021-01-20 19:40:10 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2021-01-20 19:40:10 DEBUG (MainThread) [custom_components.mbapi2020.client] assigned_vehicles
2021-01-20 19:40:10 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2021-01-20 19:40:25 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2021-01-20 19:40:25 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2021-01-20 19:40:25 DEBUG (MainThread) [custom_components.mbapi2020.client] assigned_vehicles
2021-01-20 19:40:26 INFO (MainThread) [custom_components.mbapi2020.client] Start preheat_start for vin WDC1660632B138346
2021-01-20 19:40:26 INFO (MainThread) [custom_components.mbapi2020.client] End preheat_start for vin WDC1660632B138346
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 5,
"updates_by_vin": {
"WDC1660632Bxxxxxx": {
"vin": "WDC1660632Bxxxxxx",
"updates_by_pid": {
"54384851": {
"process_id": "54384851",
"request_id": "a8c357ac-de16-41e3-9744-dc54f0cfb60c",
"timestamp_in_ms": "-1",
"type": "PRECONDSTART",
"state": "INITIATION"
}
}
}
}
}
}
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 5
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 6,
"updates_by_vin": {
"WDC1660632Bxxxxxx": {
"vin": "WDC1660632Bxxxxxx",
"updates_by_pid": {
"54384851": {
"process_id": "54384851",
"request_id": "a8c357ac-de16-41e3-9744-dc54f0cfb60c",
"timestamp_in_ms": "1611171626000",
"type": "PRECONDSTART",
"state": "PROCESSING"
}
}
}
}
}
}
2021-01-20 19:40:26 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 6
2021-01-20 19:40:32 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_command_status_updates_by_vin
2021-01-20 19:40:32 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
"apptwin_command_status_updates_by_vin": {
"sequence_number": 7,
"updates_by_vin": {
"WDC1660632Bxxxxxx": {
"vin": "WDC1660632Bxxxxxx",
"updates_by_pid": {
"54384851": {
"process_id": "54384851",
"request_id": "a8c357ac-de16-41e3-9744-dc54f0cfb60c",
"timestamp_in_ms": "1611171630000",
"errors": [
{
"code": "CMD_FAILED",
"message": "Command failed. Normally, there should be additional business errors detailing what exactly went wrong"
},
{
"code": "4051"
}
],
"type": "PRECONDSTART",
"state": "FAILED"
from mbapi2020.
PrecondActive should be available under range electric
from mbapi2020.
Im afraid its not in my instance:
My endplan is to write a script that would set the heaters for the next morning, and keep trying every 30mins until the command is successfully sent. Thats if we can't get the preheat-now working.
I do get to see this data in the app:
from mbapi2020.
I have added a new option "type" to the service preheat_start. When you use type:1
then the preheat_immediate function will be called. This could work for older cars.
from mbapi2020.
Related Issues (20)
- Charging power unit changed from kW to KW HOT 2
- AUX heater not working in update HOT 9
- AUX heater not working after update HOT 27
- Smart missing after uninstall and reinstall 0.10/0.10.1 HOT 9
- Remote Lock/Unlock failing HOT 2
- Re-authentication failing HOT 5
- AUxHeat not available anymore HOT 2
- Preheating state HOT 5
- How to use the exclusion of cars by FIN/FIN? HOT 7
- New warning after last update - Problem with fences/violations data at Mercedes database HOT 2
- Error when capabilities are not available
- Authentication failed. Please reauthenticate. HOT 22
- When changing charging program, max_state_of_charge doesn't update HOT 3
- Failing to Authenticate on 2024.3 HOT 21
- Minor spelling issue HOT 1
- Other error Cannot write to closing transport HOT 4
- Car is constantly disconnected after last update HOT 4
- Values jump between actual Value and old Value? HOT 5
- Device Tracker no longer showing correctly HOT 6
- Logs being filled with connecting to Mercedes, connected too Mercedes messages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbapi2020.