Authentication Token expired - refresh

SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Authentication Token expired - refresh

Post by SMUSEBY »

Since the last time this was an issue was 5 years ago, I'm guessing it might be different.
I'm unable to delete the app on the ecobee website.
The event log message:
Ecobee 2 Warning API 'set HVAC mode' request failed, result = {
"status": {
"code": 14,
"message": "Authentication token has expired. Refresh your tokens. "
}
}

10 minutes later,
Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 696, in actionSetMode
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 201, in set_hvac_mode
type: 'NoneType' object has no attribute 'make_request'

Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 696, in actionSetMode
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 201, in set_hvac_mode
type: 'NoneType' object has no attribute 'make_request'

Ecobee 2 1.5 Stairs Thermostat: set heat setpoint to: 7.0
Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 637, in actionControlThermostat
File "plugin.py", line 738, in handleChangeSetpointAction
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 211, in set_hold_heat
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 227, in set_hold_temp
type: 'NoneType' object has no attribute 'make_request'
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Authentication Token expired - refresh

Post by FlyingDiver »

Authentication expired, so everything after that is also failing.

Why were you trying to delete the app on the Ecobee portal?

What happens when you restart the plugin and the account device tries to get a new auth token?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Authentication Token expired - refresh

Post by SMUSEBY »

After restarting the plugin at 1141, it produced this error message at 1145:
Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 696, in actionSetMode
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 201, in set_hvac_mode
type: 'NoneType' object has no attribute 'make_request'

Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 696, in actionSetMode
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 201, in set_hvac_mode
type: 'NoneType' object has no attribute 'make_request'

Ecobee 2 1.5 Stairs Thermostat: set heat setpoint to: 7.0
Ecobee 2 Error Error in plugin execution ExecuteAction:

File "plugin.py", line 637, in actionControlThermostat
File "plugin.py", line 738, in handleChangeSetpointAction
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 211, in set_hold_heat
File "/Library/Application Support/Perceptive Automation/Indigo 2025.1/Plugins/Ecobee 2.indigoPlugin/Contents/Server Plugin/ecobee_devices.py", line 227, in set_hold_temp
type: 'NoneType' object has no attribute 'make_request'
Then I went to the forum and read the 2020 thread which mentioned deleting and reinstalling the app.
Next I posted here.
I can't tell if the token was updated or not.
This error message was from 1130 - and there have been no repeats since then.
Ecobee 2 Warning API 'set HVAC mode' request failed, result = {
"status": {
"code": 14,
"message": "Authentication token has expired. Refresh your tokens. "
}
}
Ecobee 2 Warning API 'set HVAC mode' request failed, result = {
"status": {
"code": 14,
"message": "Authentication token has expired. Refresh your tokens. "
}
}
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Authentication Token expired - refresh

Post by FlyingDiver »

I suspect you’re trying to set the HVAC mode on a bad thermostat device. Check to make sure that device is configured properly.


Sent from my iPhone using Tapatalk
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Authentication Token expired - refresh

Post by SMUSEBY »

It's 200 miles from me at the moment.
Attempting a remote diagnosis, editing the Indigo device settings, the ecobee account and thermostat fields are grayed out with "select an item" displayed. Would that be consistent with the thermostat not being powered?
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Authentication Token expired - refresh

Post by FlyingDiver »

SMUSEBY wrote: Fri Feb 13, 2026 12:43 pm It's 200 miles from me at the moment.
Attempting a remote diagnosis, editing the Indigo device settings, the ecobee account and thermostat fields are grayed out with "select an item" displayed. Would that be consistent with the thermostat not being powered?
No, because the plugin is using a cloud API and is talking to the Ecobee servers, not the device itself.

This is almost certainly user error of some kind.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Authentication Token expired - refresh

Post by SMUSEBY »

User error seems like a safe bet.
The thermostat is working with the Ecobee app. The web portal was failing, but fixed by disconnecting and logging in again. The Indigo app was deleted but now back on the web portal. I'm failing with the reinstall: In the device config, I am unable to obtain the 4 character PIN - the error message is "Token Refresh Failed". (On line 2. "Register the Auth Code:", the website opens to the wrong home if that makes any difference.) Pressing "Go" on line 3. generates the "Token Request" Failed message.
So back to user error, what am I doing wrong?
SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Authentication Token expired - refresh

Post by SMUSEBY »

Once again, all I had to do is post a question to figure it out.
My confusion was when installing the app, the dialogue says enter the auth-code, but in the box, the gray text is "4 digit PIN" - I think it should be the 8 character authorization code. On the Ecobee forum, step 4 also mentions the PIN. I never saw a 4 digit PIN - the PIN is mentioned in the last box in gray text, and is replaced with the 'success message'.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Authentication Token expired - refresh

Post by FlyingDiver »

Ecobee changed from a 4 digit to 8 digit a while back.


Sent from my iPhone using Tapatalk
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
SMUSEBY
Posts: 638
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Authentication Token expired - refresh

Post by SMUSEBY »

Is there something wrong? - or do I need to be patient? (It's been about 30 minutes since the app on Ecobee portal was reinstalled).
Stopped plugin "Ecobee 2 2025.0.1"
Starting plugin "Ecobee 2 2025.0.1" (pid 5207)
Started plugin "Ecobee 2 2025.0.1"
Ecobee 2 1.5 Stairs Thermostat: Starting EcobeeThermostat Device 857956222
Ecobee 2 Ecobee Account (1980081729): Starting EcobeeAccount Device 1980081729
Ecobee 2 Ecobee Stairs Occupancy: Starting OccupancySensor Device 1195423536
Ecobee 2 Ecobee Stairs Remote - Office: Starting RemoteSensor Device 566132469
Ecobee 2 not authenticated to Ecobee servers yet; not initializing state of device 521781046633
Ecobee 2 Error update: Error obtaining ecobee account object
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Authentication Token expired - refresh

Post by FlyingDiver »

You need to edit the Account device and redo the authentication sequence.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Post Reply

Return to “Ecobee”