Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ecobee Integration Stopped Working for me. #39536

Closed
KevinPD66 opened this issue Aug 31, 2020 · 5 comments
Closed

Ecobee Integration Stopped Working for me. #39536

KevinPD66 opened this issue Aug 31, 2020 · 5 comments

Comments

@KevinPD66
Copy link

KevinPD66 commented Aug 31, 2020

The problem

The Ecobee integration stopped working today. I have checked the Ecobee consumer portal and the key and application are still valid for home assistant. As well, the Ecobee portal correctly identifies and reports on my 2 thermostats. I should also mention that I have restarted and rebooted the home assistant box twice to make sure it wasn't something in the boot process.

Environment

  • Home Assistant Core release with the issue: 0.114.4
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core): HaasOS 4.12
  • Integration causing this issue: Ecobee
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

2020-08-31 16:52:45 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry ecobee for ecobee
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pyecobee/__init__.py", line 564, in _request
    response.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.ecobee.com/token?grant_type=refresh_token&refresh_token=wIQ4oQRTlCZtd42TBDYKmm4hB8DDyafx&client_id=oQdGqqjgJjBZs6vCWuj1hvc15sX0PBYL

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 222, in async_setup
    result = await component.async_setup_entry(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/ecobee/__init__.py", line 58, in async_setup_entry
    if not await data.refresh():
  File "/usr/src/homeassistant/homeassistant/components/ecobee/__init__.py", line 105, in refresh
    if await self._hass.async_add_executor_job(self.ecobee.refresh_tokens):
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pyecobee/__init__.py", line 159, in refresh_tokens
    response = self._request(
  File "/usr/local/lib/python3.8/site-packages/pyecobee/__init__.py", line 578, in _request
    raise InvalidTokenError(
pyecobee.errors.InvalidTokenError: ecobee tokens invalid; re-authentication required


Additional information

@airdrummingfool
Copy link

This problem popped up for me within the past couple weeks. I was able to fix it by completely removing Ecobee and then re-adding it via the Integrations page:

  1. Removed the Ecobee integration from the HA Integrations page
  2. Removed the ecobee: entry in my configuration.yaml
  3. De-authorized the app in Home Assistant
  4. Restarted HA
  5. Re-added the Ecobee integration, including going through the authorization process on Ecobee's site

@joshuata
Copy link

I have the same issue with 0.115.4-5. My thermostat was acting up last night so I removed it and re-added. Today when I updated to the latest it caused ecobee to fail again. Removing and re-adding fixed it again, but I don't want to do that every time I update the machine

@weweilep
Copy link

weweilep commented Oct 4, 2020

Requesting merge with #34350

@meaniegreenie
Copy link

This problem popped up for me within the past couple weeks. I was able to fix it by completely removing Ecobee and then re-adding it via the Integrations page:

1. Removed the Ecobee integration from the HA Integrations page

2. Removed the `ecobee:` entry in my `configuration.yaml`

3. De-authorized the app in Home Assistant

4. Restarted HA

5. Re-added the Ecobee integration, including going through the authorization process on Ecobee's site

I tried various ways of adding/removing the integration and resetting the key, etc. but removing the ecobee entry from my yaml file seemed to be the fix I needed. Otherwise the authorization dialog would just flicker and never close. Once I tried adding the integration w/o the ecobee in my config, the dialog completed correctly stating that the device was successfully added.

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants