+1 same problem for me. Was working perfectly until last night when I was in the process of updating HA. I was on 2121.4.2 and the integration went down even before I updated. Seemed like just the act of rebooting my server took down the integration. Updated to 2021.4.6 and it’s still not working. Removed the integration and adding it back again also gives me the “unknown error”.
Same for me - 2021.4.6 killed the integration.
The Tesla issue is being fixed over here: Problems with login from Home Assistant - http 403 · Issue #190 · zabuldon/teslajsonpy · GitHub
Turns out that there are some timing issues unique to the aiohttp library which the integration relies on, so they’ve swapped over to a different library called httpx. Core issue seems to be resolved now. May be days/weeks until it gets picked up in the next HA update (?)
Thanks for digging in more and fingered crossed we will get it back.
I miss the Tesla integration as I managed to get a NedRed flow working well that looked at Octopus Agile rates and my Tesla range and picked the best times (sometimes just grabbing 30 mins) for charging only when less than 11p per kWH.
It was great to just plug in my M3 and leave it knowing I only charged at low rates
For me this is what Home Automation is all about
If you use Node-Red, you can also use node-red-contrib-tesla to get the state and control the charging.
Also only works without 2FA disabled by the way.
As a workaround I am accessing my teslafi account via their WebAPI, which is working well and provides similar detail to the native Tesla Integration.
Bikey - Thanks for that idea! I got the node-red-contrib-tesla working very quickly and I will do the job maybe better !
Had the same “unavailable” problem.
Left everythng alone, didn’t change anything. (no mfa, no reinstall, etc)
Except…Last week I joined the Beta Channel.
Today received an update to core-2021.5.0b5 and since this update Tesla Integration works again.
(tbh, did not test with a restore, whatsoever and not intending to)
Note: I cannot tell if this update is the or recommended solution.
2021.05.0b5 did it for me too. Didn’t even have to enter my creds.
Just join the Beta Channel in the Supervisor under System if you are using the supervised version.
I did that this morning, and that solved the Tesla issue for me too.
Exactly.
I joined the beta channel in supervisor/system and it appeared a few seconds later as an update. Installed it and Tesla Integration returned.
I joined the beta channel last night, and this morning core-2021.5.0b6 showed up, so I installed it. Unfortunately, I’m still getting an error. Here’s the message I get:
Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:482
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 7:00:05 AM (1 occurrences)
Last logged: 7:00:05 AM
Component error: tesla - cannot import name 'get_content_type' from 'authcaptureproxy.helper' (/usr/local/lib/python3.8/site-packages/authcaptureproxy/helper.py)
Maybe this is a different error from the one everyone else is experiencing? I figured it was the same since it happened when I updated, like everyone else. Or possibly core-2021.5.0b6 doesn’t fix it, only 2021.5.0b5? Just wondering.
Well, that didn’t last long. If it ain’t broke don’t fix it. I updated to 0b6 and it stopped working. I tried going back to 0b5 with a snapshot but it still won’t work. I’m getting the same error as @dlthompson06. The integration is showing in configuration but it says it failed to load and there’s no way I can see to remove it to reinstall it.
If you have not yet got the HA NodeRed add-on, I would suggest giving it a go. It needs “both sides” to work best i.e. the add-on and the HA side integration. Adding the latter, enables new HA entities by simply dragging a node. NodeRed does take some time to master but it really is amazing once you get the whole concept. I have 95% of all my automations now running on it. @Bikey pointed out the NodeRed Tesla “Palette” (aka an add-on’s) and it is working very well. Better than the native one (that is not working at the moment) as you can read all the data from the car and control anything you wish!
I also have the same issue. Latest HA, core, and OS.
2021.05.0b7 seems to have fixed it again
I tried 0b7 just now but still get the same error. I never had 0b5, wonder if that has anything to do with it.
Great news, I have just updated my Home Assistant to version 2021.5 and the Tesla integration works again!
+1, nice job