Code Monkey home page Code Monkey logo

Comments (3)

Hanzanka avatar Hanzanka commented on June 12, 2024

Update: The car wasn't driven in few hours, so i went to the car and drove it for few kms and after that the climatization controls began to work!

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

I also had the problem this morning. It might be temporary.
There are two error cases. You can get an exception raised right away if starting fails. But there are situations where the command is received at the server, but later fails in the car. You can find that out when you update and then check the climatisationStatus. It will have an entry in the requests list containing a requests object with a status. The status can be out of:

SUCCESSFULL = 'successful'
FAIL = 'fail'
POLLING_TIMEOUT = 'polling_timeout'
IN_PROGRESS = 'in_progress'
QUEUED = 'queued'
DELAYED = 'delayed'
TIMEOUT = 'timeout'
FAIL_VEHICLE_IS_OFFLINE = 'fail_vehicle_is_offline'
FAIL_IGNITION_ON = 'fail_ignition_on'
FAIL_BATTERY_LOW = 'fail_battery_low'
FAIL_PLUG_ERROR = 'fail_plug_error'
FAIL_CHARGE_PLUG_NOT_CONNECTED = 'fail_charge_plug_not_connected'
UNKNOWN = 'unknown status'

it will start in QUEUED state, then move to IN_PROGRESS and then result in SUCCESSFULL or any of the failure states. That will help you finding out what happened with your control command.
Instead of manually updating you can also register for evens in the climatisationStatus with a callback and set enableTracker() on your WeConnect instance. This one will poll for itself until the Request is in SUCCESSFULL or FAILED state.

from weconnect-python.

hovant avatar hovant commented on June 12, 2024

I have had problems on swithing heating on with ID.4 using mobile app. Typically I need to repeat it 3 times before it activates. Today I clicked only once and waited by the car. It went on after waiting for 2 minutes. So you just have to be patient. If the car has been driven recently, it is faster.

from weconnect-python.

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.