Hello,
It worked one time changing the mode to backup, then failed any subsequent time.
Log Details (WARNING)
Logger: custom_components.tesla_gateway
Source: custom_components/tesla_gateway/__init__.py:103
Integration: Tesla Gateway
First occurred: 8:38:17 PM (4 occurrences)
Last logged: 8:38:26 PM
Step 1: Error 200 on attempt 0, call https://auth.tesla.com/static/404.html: <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tesla SSO â Page Not Found</title> <link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" /> <link rel="stylesheet" href="/styles/bulma.min.css" /> <link rel="stylesheet" href="/styles/main.css" /> <style> .container { text-align: center; width: 100%; } .section { width: 100%; } </style> </head> <body class="background-spokes2 has-valigned"> <!-- <div class="layout-header"> <div class="header-topmargin"></div> <div class="header-flag"> <img src="/images/tesla_flag.png" /> </div> </div> --> <div class="container is-valigned"> <div class="section"> <h1>Page Not Found</h1> </div> </div> </body> </html>
Step 1: Error 200 on attempt 1, call https://auth.tesla.com/static/404.html: <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tesla SSO â Page Not Found</title> <link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" /> <link rel="stylesheet" href="/styles/bulma.min.css" /> <link rel="stylesheet" href="/styles/main.css" /> <style> .container { text-align: center; width: 100%; } .section { width: 100%; } </style> </head> <body class="background-spokes2 has-valigned"> <!-- <div class="layout-header"> <div class="header-topmargin"></div> <div class="header-flag"> <img src="/images/tesla_flag.png" /> </div> </div> --> <div class="container is-valigned"> <div class="section"> <h1>Page Not Found</h1> </div> </div> </body> </html>
Step 1: Error 200 on attempt 2, call https://auth.tesla.com/static/404.html: <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tesla SSO â Page Not Found</title> <link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" /> <link rel="stylesheet" href="/styles/bulma.min.css" /> <link rel="stylesheet" href="/styles/main.css" /> <style> .container { text-align: center; width: 100%; } .section { width: 100%; } </style> </head> <body class="background-spokes2 has-valigned"> <!-- <div class="layout-header"> <div class="header-topmargin"></div> <div class="header-flag"> <img src="/images/tesla_flag.png" /> </div> </div> --> <div class="container is-valigned"> <div class="section"> <h1>Page Not Found</h1> </div> </div> </body> </html>
Step 1: Error 200 on attempt 3, call https://auth.tesla.com/static/404.html: <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tesla SSO â Page Not Found</title> <link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" /> <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" /> <link rel="stylesheet" href="/styles/bulma.min.css" /> <link rel="stylesheet" href="/styles/main.css" /> <style> .container { text-align: center; width: 100%; } .section { width: 100%; } </style> </head> <body class="background-spokes2 has-valigned"> <!-- <div class="layout-header"> <div class="header-topmargin"></div> <div class="header-flag"> <img src="/images/tesla_flag.png" /> </div> </div> --> <div class="container is-valigned"> <div class="section"> <h1>Page Not Found</h1> </div> </div> </body> </html>
Hereâs a snippet of the log. These repeat for each try.
2021-02-07 20:35:08 WARNING (MainThread) [custom_components.tesla_gateway] Step 1: Error 200 on attempt 6, call https://auth.tesla.com/static/404.html:
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tesla SSO â Page Not Found</title>
<link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" />
<link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" />
<link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" />
<link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" />
<link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" />
<link rel="stylesheet" href="/styles/bulma.min.css" />
<link rel="stylesheet" href="/styles/main.css" />
<style>
.container {
text-align: center;
width: 100%;
}
.section {
width: 100%;
}
</style>
</head>
<body class="background-spokes2 has-valigned">
<!--
<div class="layout-header">
<div class="header-topmargin"></div>
<div class="header-flag">
<img src="/images/tesla_flag.png" />
</div>
</div>
-->
<div class="container is-valigned">
<div class="section">
<h1>Page Not Found</h1>
</div>
</div>
</body>
</html>
2021-02-07 20:35:11 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall tesla_gateway.set_operation (c:e599385b10732e39fa9f8c849466dc5f): real_mode=backup>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1471, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1490, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/tesla_gateway/__init__.py", line 281, in async_set_operation
access_token = yield from login()
File "/config/custom_components/tesla_gateway/__init__.py", line 106, in login
raise ValueError('Step 1: failed after %d attempts, last response %s:\n%s', step_max_attempts, response.status, returned_test)
NameError: name 'returned_test' is not defined
Thank you for helping!