@gwithers105, @Drewbert34, @swamplynx, @gator94 and others who lose their connection to ecobee:
I made some changes today to avoid as much as possible the ecobee3’s connection issues that can happen from time to time. I made some changes to reduce the amount of data events generated for temp/motion sensor updates, so that it reduces the overall workload on the ST platform (and hopefully avoid some app execution time or memory constraints related to ST)
The new code will check on a regular basis the number of exceptions. If the number of exceptions since the last refresh_tokens() call is too high, it will send an event indicating to re-authenticate via MyEcobeeInit and will log an errror. After some testing, I’m sorry to say that I cannot automate the re-authentication with ecobee.
However, I’m confident that the new code is better optimized for ecobee3’s remote sensor data polling. As I don’t own an ecobee3, this is a shot in the dark based on your input ( I can’t test any changes myself).
If you have any recurrent connection issues every couple of days (i.e. losing authorization), as ecobee3’s remote sensor data polling can be data intensive, I’d recommend the following:
(1) If you have My Ecobee Device’s trace set to ‘true’, please set it back to blank to avoid detailed logging
on a continous basis (this input parameter is used just for debugging purpose only)
a) Go to https://graph.api.smartthings.com/device/list
b) Click on My Ecobee device
c) Edit the preferences (middle of the page)
d) Set verboseTrace to blank (remote the true value if any)
e) Click Save at the bottom of the page
(2)Grab the latest version of MyEcobee Device at github:
Save and Publish.
(3) Clear your cache as the old Device may be cached
On Android, you’d need to go to settings/apps/smartthings and clear cache.
On iOS, you’d need to uninstall the smartThings app and reinstall it.
(4) Update the ecobee3RemoteSensorInit smartapp
Grab the latest code at
Save and publish.
(5) After a while, if you still have some recurrent connection issue, try to increase the polling interval within ecobee3RemoteSensorInit from 5 minutes (or from 10 minutes) to at least 20 minutes in order to avoid reaching any ST platform’s constraints (ex. max app execution time constraint or some memory constraints that I’m not aware of).
Let me know how it goes!
Thnx for your patience.