@ethomasii I managed to read through the entire thread and was able to connect both of my RTH9580S thanks to your code. I wanted to thank you personally for your hard work and contributions. Smartthings is far from perfect, but the online community makes up for all the deficiencies.
Thanks a lot… I don’t participate in many discussions other than to throw out code I have that works for me, so I apologize if there was anything I could have answered sooner but missed.
Followed @Lgkahn code but it doesn’t seem to be working. No activity, functions or stats. Added right device ID, user and password. Am I missing something?
plus it looks like the login is successful:
f9696643-a189-47bd-b2bc-310f044ad47a 7:05:27 PM: debug Request was successful, 302
f9696643-a189-47bd-b2bc-310f044ad47a 7:05:26 PM: debug Executing ‘login’
I’ll post if I get it working.
Update I triple checked username/password and got it working! Chrome password manager failed me.
because sometimes the refresh does not work or errors out due to you being on the Honeywell blacklist (you get unauthorized response). or other errors I have seen lately.
I have added a tile for last update time, that gets set when the getstatus command is successful.
note: there is a new input tile tzoffset to set your timezone offset. defaults to -5, you must set yourself to get accurate last update times.
check the url when you actually view the thermostat in the web site… it is common to get the wroing id… there is one id for your whole session and one for each thermostat. you need the thermostat one from this page…
https://mytotalconnectcomfort.com/portal/Device/Control/12345?page=1
the 12345 would be your device id… check that you are not getting unauthorized in the website also.
if you try to refresh or hit it too many times you can get this unauthorized error… let it quite down for an hour if this is the case.
Getting the same “Unauthorized @ line 630” error. Copied the cookie from my browser and used in instead of ‘data.cookiess’ on line 627 and it started working. Obviously, this is troubleshooting info and not a solution.
Dbl checked that device id and I’m pretty darn sure it’s right. I did hit it a lot yesterday and just tried again and same error. Do i put the uname, password device id in the script? I did add the values on the Device tab which seem to be connected with my phone. The presence detection has stopped working since I started trying to connect my thermostat. Thanks.
Interesting. I have a connection now. Not working 100% but a start. I think it may have been the fact that I was logged into the total comfort site. It connected after I logged out.
How do I make this so it is a smart app instead of a device connection so others in my family can use. I can’t paste the code into smart apps because of errors. I may be missing it in the documentation somewhere or misunderstanding.
I can load it into my devices and it shows well on my tablets app. I load in my credentials in “Edit Device”, but when I hit “Done”, the device doesn’t do anything or show anything.
I have two of these thermostats, one labled as Upstairs the other Downstairs. There is no changes when I change the “Device ID”.
@Lgkahn Thanks for your work. I updated my device type (saved and published to me) to the one you posted two days ago, and so far, no joy. I verified login, pw, and device ID by logging into the Honeywell site - no problem there.
All I get on the Device page is the “AUTO” button is green; all else greyed out. Any ideas on debugging?