Power loss - requires re-authentication

Posted on
Mon Nov 09, 2020 3:43 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Power loss - requires re-authentication

Loss power again today, and still have the issue of losing ecobee authentication.
I don't recall is this is a work-in-progress, or an issue for which there is no hope.

While trying to manage the thermostat from an iOS device after re-authenticating, ecobee, even though the action was effective, the error log is indicating a problem.
Traceback (most recent call last):
File "plugin.py", line 1314, in actionControlDimmerRelay
File "plugin.py", line 843, in _sendCommand
AttributeError: 'Plugin' object has no attribute 'connIP'

If it's helpful, the error arises when I deploy the action group which has one command - increase the setpoint one degree.

Posted on
Mon Nov 09, 2020 3:47 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

That error is not from the Ecobee plugin.

It looks like it's from an old version of the Lutron plugin.

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

Posted on
Mon Nov 09, 2020 3:54 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

On second thought, I suspect the issue is not ecobee, but Lutron - I omitted the first line from the event log. Sorry.

Trigger fHallStatSetPt2var
Lutron RRA2/Caséta Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 1314, in actionControlDimmerRelay
File "plugin.py", line 843, in _sendCommand
AttributeError: 'Plugin' object has no attribute 'connIP'


Yep - reloading the Lutron plug-in fixed this issue.

So I believe there are two problems associated with a power loss - Lutron requiring plug-in reload, and ecobee authentication. I address the former with a rather clumsy reload of all plug-ins every 24 hours.

Posted on
Mon Nov 09, 2020 3:55 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

Lutron version - you're correct. I was using 7.2.7, now running 7.3.2.
Thank you.

Posted on
Mon Nov 09, 2020 3:58 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

First thing you should do is upgrade to a current version of the Lutron plugin. I think I added some code to reconnect on failure.

How long was the power out? The Ecobee authentication token has a limited lifespan, and it's refreshed on every update.

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

Posted on
Mon Nov 09, 2020 4:38 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

The power was out for about 2 hours.

Posted on
Mon Nov 09, 2020 4:44 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

Hmm. I'll have to look at that. I think the token is valid for much longer than that.

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

Posted on
Mon Nov 09, 2020 4:52 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

Do you still have the log from the last time the authentication failed? I need to see the error messages. It should be retrying the authentication process every 5 minutes. If it's not doing that at all, then there's an issue.

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

Posted on
Mon Nov 09, 2020 5:03 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

Power was out for 2 hours, 10 minutes.
Is this what you need?
2020-11-09 11:55:52.972 Application Started plugin "Ecobee 2 2.2.4"
2020-11-09 11:55:52.972 Ecobee 2 Starting Ecobee
2020-11-09 11:55:52.974 Ecobee 2 Ecobee Account (1428206274): Starting EcobeeAccount Device 1428206274
2020-11-09 11:55:52.982 Ecobee 2 Error Token Refresh Error, exception = HTTPSConnectionPool(host='api.ecobee.com', port=443): Max retries exceeded with url: /token?grant_type=refresh_token&client_id=opSMO6RtoUlhoAtlQehNZdaOZ6EQBO6Q&refresh_token=VGbBIjz4NozjTXbUXOuZ1yQvH2fxBpwv (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x1090c52d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
2020-11-09 11:55:52.984 Ecobee 2 Ecobee Front Hall: Starting EcobeeThermostat Device 1716992129
2020-11-09 11:55:52.989 Ecobee 2 Ecobee Front Hall Occupancy: Starting OccupancySensor Device 379356500
2020-11-09 11:55:52.989 Ecobee 2 Ecobee Front Hall Remote - North Office: Starting RemoteSensor Device 1917353578
2020-11-09 11:55:52.992 Ecobee 2 not authenticated to Ecobee servers yet; not initializing state of device 521703550260
2020-11-09 11:55:52.992 Ecobee 2 not authenticated to Ecobee servers yet; not initializing state of device C5SW

It was followed by pages of:
2020-11-09 12:00:53.292 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:00:55.296 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:00:57.301 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:00:59.303 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:01.304 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:03.307 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:05.307 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:07.311 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:09.315 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:11.318 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:13.323 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh
2020-11-09 12:01:15.323 Ecobee 2 Error Ecobee account 1428206274 not authenticated, skipping refresh

overwhelming my computer.

Posted on
Mon Nov 09, 2020 5:11 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

OK, it's dumping a lot of spurious messages to the log. But if you actually wait the five minutes until the next try, does it connect?

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

Posted on
Mon Nov 09, 2020 5:17 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

Nevermind. I think I see what's going on. I'll have to work on a fix.

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

Posted on
Mon Nov 09, 2020 6:07 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

It continued for > 1 hr, until I performed the authentication.
Looking forward to the fix.

Posted on
Mon Nov 09, 2020 7:04 pm
auto_man offline
Posts: 30
Joined: Oct 04, 2015
Location: Salem County, NJ

Re: Power loss - requires re-authentication

I'm having the same Ecobee problem with the "not authenticated, skipping refresh" messages.

Posted on
Mon Nov 09, 2020 7:07 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Power loss - requires re-authentication

auto_man wrote:
I'm having the same Ecobee problem with the "not authenticated, skipping refresh" messages.


Restarting the plugin fixes it?

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

Posted on
Mon Nov 09, 2020 7:23 pm
SMUSEBY offline
Posts: 507
Joined: Sep 16, 2009
Location: California

Re: Power loss - requires re-authentication

Reloading the plugin, I think, is where the re-authtentication occurs. I can't see that now perhaps because it is running.
In my experience with other plug-ins, reloading is a single click. With Ecobee, it is 4 or 5 additional steps.

Who is online

Users browsing this forum: No registered users and 1 guest

cron