Tesla integration not working

The Tesla integration is back to the land of the working for me with 2021.5.0

i removed my integration and now it will not re add

Error

Config flow could not be loaded

log:
2021-05-07 21:20:27 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration tesla: cannot import name ‘get_content_type’ from ‘authcaptureproxy.helper’ (/usr/local/lib/python3.8/site-packages/authcaptureproxy/helper.py)

1 Like

I’ve finally got the Tesla integration working … but only by removing 2FA. How do I get it working with 2FA?

Today I upgraded to 2021.5.2 from 2021.5.0 and the Tesla integration is working again.

Justin.

As for me, yesterday, I updated to 2021.5.4 and it was working again !

But I made a little change (unrelated to the Tesla integration) in my configuration.yaml, restarted HA and it was broken again :frowning:

I still have no clue how to manually remove the integration and I can’t do it with the GUI…

1 Like

After 2021.5.2 everything started working again, but after that the HA integration is not working again. Even though I make sure the car is awake before rebooting HASS.IO. Interestingly I wonder if Tesla has done something? My TeslaFi keeps sending me notifications that it has lost connectivity to the car and the Tesla App seems to take ages to wake the car up, yet no configuration item has changed on the vehicle side. I will mention that I had my “Classic” S85D since new, but I do have the MCU2 and Radio upgrade as well as the CCS and V2 key upgrade. Car is on 2021.4.17 (UK), Car is shared with my wife’s account, there is also a PowerWall on the account. Wife picks up her M3LR on Thursday.

1 Like

and at the next version it failed again.

This is happening all the time with various HA integrations, less released, more testing please! I’m getting to the point where HA is becoming insupportable and is taking up too much of my valuable time.

I’m all about having the latest, but I think I’ve decided that unless it’s a significant update or an update to an integration I use, I’m not going to bother. Why fix what isn’t broken?

My advice is to find a setup that works, then don’t change anything: core, HACS, integrations, nothing! If it ain’t broke… A month or so ago, I updated the Telsa modified integration and it resulted in HACS not working at all. Reinstalling HACS was a pain. Using a snapshot didn’t work. Since then, everything has been frozen and reliable. I have the sense that many aspects of HA are unstable.

2 Likes

I just updated this morning and mine is working now.

I quick story, the night before was a little stressful and the car didn’t get plugged in. Luckily I woke up early and caught it where I could hit a super charger 30 miles away to complete my drive to work.

Where did you gifts get there Node-Red Tesla nodes? I’d like to build a flow that sends me an alert if the car is home, the house is in night mode, and the car is not plugged in.

There is a NodeRed node for Tesla - search the Palette for it and install.
The key thing is extracting individual variables that can be acted on using a Switch Node.

For example, from the Tesla node to “get Charge State” use a Function Node something like is:

msg.charge_state = msg.payload.charging_state;
return msg;

This is because the node returns an object of all sorts of other data (see the data using debug)
You can then use a Switch Node to do an action on the extracted variable(s).

Look at my flow that grabs any 30min of charge anytime the rate is low. It also detected the state of the plug “disconnected”, if “charging” or “complete” and announces or acts. It even adds an Entity back into Lovelace.

Went building your flows use the Inject Node (test) and the Debug Node (with variable or “data” for the whole object) at lot!

You need to starting building your flows to understand them and then you can do anything :slight_smile:

1 Like

Just bought a Model 3 so loving this integration (and the great card above!).

It would be nice to get it working with 2FA which would make me feel a little safer about my Tesla account.

Thanks

2 Likes

hello , Please i need help. After i updated to the latest 2021.8.0 , my tesla integration stopped working. I tried to delete and add again but no mater how many times i entered the user and password it say “Invalid authentication”.

  • I tried to reset the password from Tesla website and re add the integration but it did not work.
  • i do not have 2FA enabled

My NodeRed integration is not working either which suggests a “Tesla end” issue (again).

Yep, same here. Just updated to 2021.8.4 and have the same error. Either something is (temporarily) down at Tesla’s end or the integration needs some fixing…

I am on 8.4 and Tesla integration is working on my end. Just an FYI

I’m still on 2021.7.4, last server reboot was 2 weeks ago. Still have connection to my Tesla… Was just going to update to the latest version but maybe I should hold off on it… :grimacing:

BTW: tried with and without MFA. In both cases I get the same error.

@reyrios I am located in NL. Maybe it’s a regional thing?

I am in Texas. It could be regional.

I’m in Sweden and it’s not working either with or without MFA. Stopped working when I updated to 2021.8.3 i think.