core: Tesla HVAC service calls unable to wake the vehicle

Home Assistant release with the issue: 0.79.3

Last working Home Assistant release (if known): Never worked to my knowledge

Operating environment (Hass.io/Docker/Windows/etc.): Rpi3 Hassbian

Component/platform: https://www.home-assistant.io/components/tesla/

Description of problem: When trying to control the Tesla HVAC, either from the climate platform gui element or via a service call, the vehicle is not wakened. Since the vehicle never wakens, the command is ignored. To my understanding the vehicle needs to be wakened before commands can be sent via the tesla api.

If the vehicle has recently been accessed/wakened via the Tesla android/iOS app, commands from the home assistant tesla component works fine.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

tesla:
  username: teslausername
  password: teslapassword
  scan_interval: 600

Traceback (if applicable):


Additional information: The history graphs of all Tesla values suggests that the data is not updated according to the set scan_interval. This suggests to me that failing to waken the vehicle before posting to the api is general issue with the tesla component

@zabuldon @alandtse

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 29 (13 by maintainers)

Most upvoted comments

New teslajsonpy 0.0.24 in pypi should resolve this. We’ll get a PR into HA shortly.

As a note, we do have a staged fix in the underlying library. We’re still testing as @bart-roos discovered a nasty throttling bug, but if you know how to replace a library and are comfortable debugging, it’s here. I think it’s almost ready to push out, but could use some more testing.

This is tricky since updating everything every time someone opens the Home app, etc. will result in a lot of probably unnecessary wakeups, and prevent the car from sleeping which can use about 1% of the car battery per hour (as opposed to be day if the car is sleeping.)

The staged build also adjusts for this by not waking up the vehicle unless there is a command like waking up hvac or starting charging. Updates should no longer wake the vehicle. It also has the capability to completely turn off per vehicle updates, but that requires a closed PR #13892 that I haven’t refactored yet for the latest versions of HA.