Found two issues that were causing the reported crashes. New ecobee-connect.groovy v0.10.8 and ecobee-thermostat.groovy v0.10.4 should resolve the problems seen by @dwg and @femwitjava.
These new versions may also fix @kyparamedic’s problems, but I can’t be sure, since I could not replicate it.
My sincere apologies, and thank you for working with me to resolve these issues!
Thanks so much- unfortunately the same outcome- no data- the logs are a bit different.( opened thermostat then refresh waited 30 seconds closed, opened sensor then refresh wired 30 seconds then closed - the error in Connect then appeared. Also enclosed a screen shot from the ST app.
Have tried installing from scratch twice with the .7 version of connect.
I’ve been following this thread because I own an Ecobee3 but am still running the older version of the smart app.
This is a longshot, but wanted to ask David what Ecobee thermostat he has and could there be something different on the Ecobee side like a different version of the firmware. Unless I missed something, all of the focus is on the ST side, but could your thermostat be running a different version of firmware?
Could you please get me one more piece of data? In the IDE, go to My Locations, Select SmartApps, and then right-click on the Ecobee (Connect) smartapp in the list, and open that link in a new browser tab or window. If you could then either attach that content as a file, or copy/paste the entire page as Preformatted Text (</> icon in the message editor). I’m trying to figure out what isn’t getting populated…the null+null shouldn’t be happening.
Also - do you have the setting to have the Thermostat display as a separate sensor? And what is your Precision setting (default is 0 for F, 1 for C).
It would also be helpful if you could set your Debug Level to 5, and then send me the entire stream of the Live Logging for both Ecobee (Connect) and the device(s) in the 2-3 seconds prior to the error occurrence.
BEFORE DOING ANYTHING ELSE, please install ecobee-connect.groovy VERSION 0.10.8 … .7 doesn’t have all the fixes you need…
Also PLEASE INSTALL ecobee-thermostat.groovy VERSION 0.10.4
I updated both of these this morning (7:20am PST) - they fix (related) problems…but if they don’t solve the problem, then please send the above-requested info…
I’m trying to install your updated code and am running into a loop.
As shown in the last screenshot, I can authorize the app but Done doesn’t appear and the settings don’t get saved.
Weird, that isn’t happening for me, but it looks like you are using Android - is that correct?
If so, could you capture the Live Logging for Ecobee (Connect) for the time you are trying to login/register? I’ll PM my personal email so that you can send it to me directly.
But please double check that you have installed and published ALL of the latest code - 5 SmartApps and 2 Devices.
And MOST IMPORTANTLY verify that you have turned on OAuth for Ecobee (Connect) in the IDE… without that it will never work…
I updated to the latest versions but still got the same error when trying to run the smart circulation app. I tried running it on my iPhone though and it worked, so it must be something with Android. Even after setting it up on the iPhone, when I try to open on Android I get the same error. Something else that’s strange is that it’s not listed under SmartApps in Automation. The only way I can get to it is by selecting the thermostat in Things and then going to the SmartApps attached to it.
Smart Circulation wont show up in Automation - it is a child app of Ecobee (Connect). If you open Ecobee (Connect), the first section is for “Helper Applications” - you should create your Smart Circulation instances from this seb-menu, and you should also modify and remove them from here as well…
This is similar to the way Smart Lighting and CoRE work, the intention being to avoid pages and pages of SmartApps, grouping them instead with similar/related apps.
Most importantly you should not create Smart Circulation helper instances from the MarketPlace menu - only from within Ecobee (Connect). If you did, I suggest you should remove these instances and recreate them from within Ecobee (Connect). (You can remove them from the IDE if necessary: Go to Locations / SmartApps, then Edit, select and delete the offending Helper App).
I did not realize that your original report was for the Smart Circulation SmartApp - after cleaning up as I described separately, could you try adding the Smart Circulation helper from within Ecobee (Connect) with Live Logging running? If it fails, I need to know what errors are thrown in both the Smart Circulation and the Ecobee (Connect) SmartApps. If the problem is happing immediately when you try to open it, it may not show up in the logs, but it’s worth a shot.
I will also check it out on my own Android device when I get back home at the end of this week…
Oh ok, well that clears things up. I had like 10 instances of the smart circulation app when I went into the IDE. I uninstalled all of them and tried to add it from within ecobee (Connect) but got the same error when using my Android device. It still created the app in the IDE though. When I try to access it from Android I get the the message that an unexpected error has occurred. I can only access it using my iPhone. I also had live logging running when I tried to add it and it didn’t show anything.
Grab the just-updated ecobee-smart-circulation.groovy and see if it works on Android…I think the problem was in the preferences for changing the name of the SmartApp…
It now appears that you CANNOT install this version if you currently have the Standard SmartThings DTH installed and running in your ST environment. I believe the original intent was for this to be a simple drop-in replacement for the stock support, but this no longer appears to work.
I’ll have to do a little bit of research over the weekend to see if this can be fixed. If not, I may have to move this version OUT of the SmartThings namespace (since it is no longer a drop-in replacement). Moving to a separate namespace would allow you to run this version alongside either the original SmartThings version and/or @StrykerSKS version (and any other version you may have). This might be a Good Thing, since it also would allow you to move SmartThings over from the Old to the New without having to recreate them…
I’ll give it some thought…comments/feedback welcome.
ecobee-connect.groovy v0.10.11 fixes the problem where thermostat data was not being updated if no events were running or pending. Thanks to @dwg for supplying the data I needed to find and fix the problem (and for your patience, David).