GithubHelp home page GithubHelp logo

Comments (9)

n-icholas avatar n-icholas commented on June 4, 2024 1

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.

ReneNulschDE avatar ReneNulschDE commented on June 4, 2024

Hi, Does it work in the mobile app at the same time?

from mbapi2020.

n-icholas avatar n-icholas commented on June 4, 2024

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.

n-icholas avatar n-icholas commented on June 4, 2024

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.

n-icholas avatar n-icholas commented on June 4, 2024

FYI. Pre-heat stop also failed.

from mbapi2020.

Dazula avatar Dazula commented on June 4, 2024

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.

ReneNulschDE avatar ReneNulschDE commented on June 4, 2024

PrecondActive should be available under range electric

from mbapi2020.

n-icholas avatar n-icholas commented on June 4, 2024

Im afraid its not in my instance:

IMG_0559

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:

IMG_0690

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.