Code Monkey home page Code Monkey logo

Comments (17)

tillsteinbach avatar tillsteinbach commented on June 12, 2024 1

Yes, VW extended the interface again. Will add this as soon as I understood what possible values there are.

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024 1

Yeah wil check tomorrow! Thanks for you time ;)

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024 1

0.37.0 was just released

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

Any idea when you can add these attributes? I've tried the beta/alpha version, the new attributes are added but other things stopped working.

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

In theory I can release 0.37.0 tonight. But what kind of thing stopped working? That would be a reason not to release.

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

After setting the target temperature

Traceback (most recent call last):
  File "/workspaces/core/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/workspaces/core/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/workspaces/core/homeassistant/components/volkswagen_we_connect_id/__init__.py", line 46, in async_update_data
    await hass.async_add_executor_job(_we_connect.update)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/weconnect/weconnect.py", line 175, in update
    self.updateVehicles(updateCapabilities=updateCapabilities, updatePictures=updatePictures, force=force, selective=selective)
  File "/usr/local/lib/python3.9/site-packages/weconnect/weconnect.py", line 198, in updateVehicles
    self.__vehicles[vin].update(fromDict=vehicleDict, updateCapabilities=updateCapabilities, updatePictures=updatePictures,
  File "/usr/local/lib/python3.9/site-packages/weconnect/elements/vehicle.py", line 197, in update
    self.updateStatus(updateCapabilities=updateCapabilities, force=force, selective=selective)
  File "/usr/local/lib/python3.9/site-packages/weconnect/elements/vehicle.py", line 288, in updateStatus
    self.domains[domain.value][key].update(fromDict=data[domain.value][key])
  File "/usr/local/lib/python3.9/site-packages/weconnect/elements/climatization_settings.py", line 75, in update
    self.targetTemperature_C.fromDict(fromDict['value'], 'targetTemperature_C')
AttributeError: 'float' object has no attribute 'fromDict'```

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

hmmm, can you show the code where you set the temperature?

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024
 try:
    vehicle.domains["climatisation"][
        "climatisationSettings"
    ].targetTemperature_C = target_temperature
    _LOGGER.info("Sended target temperature call to the car")
except Exception as exc:
    _LOGGER.error("Failed to send request to car - %s", exc)
    return False

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

you have to change
targetTemperature_C = target_temperature to
targetTemperature_C.value = target_temperature

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

Then i got

Failed to send request to car - 'type' object is not iterable

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

that is a bug!

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

You can try 0.37.0.dev5

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

That's a fast bugfix, will try it right now ;)

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

Hmm i don't think it sets the value right now

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

Can you see what the request status is? When I open the ID app I see an error message and when I try to set the value through the API get the request status Request: start operation, status polling_timeout information: Your vehicle is not reachable at the moment. Please try again later. Request Id: e654a0b5-24b1-4907-b8d7-f3e080e6e5a7 after a while. So maybe some technical problems at VW?

from weconnect-python.

mitch-dc avatar mitch-dc commented on June 12, 2024

hmm yea i got issues with the app as well today. So maby Volkswagen is doing stuff again...

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

Maybe a good idea to delay the release to tomorrow and check if its works again :)

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.