Ecobee 2.x authorization issues

Posted on
Wed Dec 19, 2018 3:26 am
OjisanSeiuchi offline
User avatar
Posts: 20
Joined: May 06, 2016
Location: London, ON, CANADA

Ecobee 2.x authorization issues

The loss of authorization status was a frequent issue with the 1.x iteration of the Ecobee plugin. It seemed to be resolved; but that was premature. See the following log snippet:

Code: Select all
   Ecobee 2 Debug                  Ecobee Snug Cottage (238205621944): action.thermostatAction: IncreaseHeatSetpoint
   Ecobee 2                        Ecobee Snug Cottage (238205621944): set heat to: 74.3 and leave cool at: 22.5
   Ecobee 2 Warning                API 'set hold temp' request failed, result = {
  "status": {
    "code": 14,
    "message": "Authentication token has expired. Refresh your tokens. "
  }
}


Is it a requirement still to periodically manually update our authorization on the Ecobee site?

Posted on
Wed Dec 19, 2018 5:57 am
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Ecobee 2.x authorization issues

OjisanSeiuchi wrote:
Is it a requirement still to periodically manually update our authorization on the Ecobee site?


It should not be, but there are some errors that can still cause it. Look in the log before you started getting that error and see if you can find the previous error.


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Dec 19, 2018 6:57 am
OjisanSeiuchi offline
User avatar
Posts: 20
Joined: May 06, 2016
Location: London, ON, CANADA

Re: Ecobee 2.x authorization issues

Look in the log before you started getting that error and see if you can find the previous error.


There are no immediately proximate errors. The most recent errors thrown by the plugin go back about 3 days:

Code: Select all
2018-12-16 00:13:29.679   Ecobee 2 Error   Thermostat Update Error, exception = HTTPSConnectionPool(host='api.ecobee.com', port=443): Max retries exceeded with url: /1/thermostat?json=%7B%22selection%22%3A%7B%22selectionType%22%3A%22registered%22%2C%22includeRuntime%22%3A%22true%22%2C%22includeSensors%22%3A%22true%22%2C%22includeEvents%22%3A%22true%22%2C%22includeProgram%22%3A%22true%22%2C%22includeEquipmentStatus%22%3A%22true%22%2C%22includeSettings%22%3A%22true%22%7D%7D (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10e638710>: Failed to establish a new connection: [Errno 60] Operation timed out',))


and later,

Code: Select all
2018-12-16 00:30:16.835   Ecobee 2 Debug   Token Request with refresh_token = lWEBvNxP0oVdNjBppHy42ibY34LCewfb
2018-12-16 00:30:41.700   Sonos Debug   [Sun Dec 16 00:30:41 2018] Received ALIVE message from ZonePlayer: Pub room
2018-12-16 00:30:41.703   Sonos Debug   [Sun Dec 16 00:30:41 2018] Received ALIVE message from ZonePlayer: Pub room
2018-12-16 00:31:12.279   Ecobee 2 Error   Token Refresh Error, exception = ('Connection aborted.', error(54, 'Connection reset by peer'))
2018-12-16 00:31:14.286   Ecobee 2 Debug   Token Request with refresh_token = lWEBvNxP0oVdNjBppHy42ibY34LCewfb
2018-12-16 00:31:30.082   Ecobee 2 Error   Ecobee Account (475052933): Token Refresh failed, response = '{
  "error": "invalid_request",
  "error_description": "The request is malformed. Check parameters.",
  "error_uri": "https://tools.ietf.org/html/rfc6749#section-5.2"
}'


Looking further back over the previous days' logs, I see that the token refresh occurs successfully every 45 minutes. However, after the failure on 2018-12-16 00:31:12.279, no further attempts are made by the plugin to refresh the token either later on 2018-12-16 or on subsequent days. In other words, the failed refresh seems to permanently interrupt the refresh cycle.

Posted on
Wed Dec 19, 2018 7:04 am
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Ecobee 2.x authorization issues

I think the 2.1.8 prerelease fixed that. It just needs more testing.

Please try it.


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest