Ecobee Binding will not generate a valid pin

Using openhabian, I cannot get my Ecobee binding to generate a valid pin. Using ecobee Bindings 2.5.9, 1.14.0, and Ecobee Action 1.14.0. The rules correctly read my items and in DEBUG it shows them populated. It just does not interact via the API. I want to change controls in the ecobee via openhab.

I have an existing ecobee.cfg file with scope=smartWrite and valid appkey previously. I can generate a pin and access/refresh token from the ecobee website, just not from openhabian

I tried various methods previously described to resolve this problem, including the process of stopping openhab2 server, running

sudo rm -rf /var/lib/openhab2/.java/.userPrefs

…then restarting OH2.

The result is null instead of a pin:

` 2020-10-28 14:38:21.243 [INFO ] [inding.ecobee.internal.EcobeeBinding] - #########################################################################################

2020-10-28 14:38:21.246 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # Ecobee-Integration: U S E R   I N T E R A C T I O N   R E Q U I R E D !!

2020-10-28 14:38:21.248 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # 1. Login to www.ecobee.com using your 'DEFAULT_USER' account

2020-10-28 14:38:21.251 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # 2. Enter the PIN 'null' in My Apps within the next null minutes.

2020-10-28 14:38:21.254 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # NOTE: Any API attempts will fail in the meantime.

2020-10-28 14:38:21.259 [INFO ] [inding.ecobee.internal.EcobeeBinding] - #########################################################################################

2020-10-28 14:38:21.262 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.`

I tried using just the 2.5.9 binding, and just the 1.14.0 binding (which is obsolete). Supposedly, both have to be installed to employ the Action.

Any help is appreciated.

Are you sure you’ve configured your apiKey and thermostatId correctly as documented at getting started.

As stated, the items and things are recognized, it just does not connect to the API:

2020-10-28 15:24:39.529 [INFO ] [inding.ecobee.internal.EcobeeBinding] - #########################################################################################

2020-10-28 15:24:39.537 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # Ecobee-Integration: U S E R   I N T E R A C T I O N   R E Q U I R E D !!

2020-10-28 15:24:39.539 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # 1. Login to www.ecobee.com using your 'DEFAULT_USER' account

2020-10-28 15:24:39.541 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # 2. Enter the PIN 'null' in My Apps within the next null minutes.

2020-10-28 15:24:39.544 [INFO ] [inding.ecobee.internal.EcobeeBinding] - # NOTE: Any API attempts will fail in the meantime.

2020-10-28 15:24:39.546 [INFO ] [inding.ecobee.internal.EcobeeBinding] - #########################################################################################
2020-10-28 15:24:39.548 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.

2020-10-28 15:24:44.149 [DEBUG] [inding.ecobee.internal.api.EcobeeApi] - API: Perform thermostat summary query

2020-10-28 15:24:44.151 [DEBUG] [inding.ecobee.internal.api.EcobeeApi] - API: Didn't get an AccessTokenResponse from OAuth service - doEcobeeAuthorization!!!

2020-10-28 15:24:44.153 [DEBUG] [nding.ecobee.internal.api.EcobeeAuth] - EcobeeAuth: State is NEED_PIN: Executing step: 'authorize'

2020-10-28 15:24:44.597 [INFO ] [nding.ecobee.internal.api.EcobeeAuth] - Awaiting entry of PIN in Ecobee portal. Expires in -26731944 minutes

2020-10-28 15:24:44.609 [DEBUG] [nding.ecobee.internal.api.EcobeeAuth] - EcobeeAuth: Got null authorize response from Ecobee API

2020-10-28 15:25:15.743 [DEBUG] [inding.ecobee.internal.api.EcobeeApi] - API: Perform thermostat summary query

2020-10-28 15:25:15.747 [DEBUG] [inding.ecobee.internal.api.EcobeeApi] - API: Didn't get an AccessTokenResponse from OAuth service - doEcobeeAuthorization!!!

2020-10-28 15:25:15.749 [DEBUG] [nding.ecobee.internal.api.EcobeeAuth] - EcobeeAuth: State is NEED_PIN: Executing step: 'authorize'

2020-10-28 15:25:16.179 [INFO ] [nding.ecobee.internal.api.EcobeeAuth] - Awaiting entry of PIN in Ecobee portal. Expires in -26731945 minutes

2020-10-28 15:25:16.181 [DEBUG] [nding.ecobee.internal.api.EcobeeAuth] - EcobeeAuth: Got null authorize response from Ecobee API

I cannot authorize it if openhab binding does not generate a pin

Upgrading to 2.5.10 and updating/upgrading openhabian to the most recent stable version (2.5.10-1 Release Build) resolved the issue.

Thanks, Rob.

1 Like