PLUGIN: Honeywell Total Connect Comfort Thermostats

Can you look in your L_HoneywellTCC.lua file, close to the top of that file he sets a local var, tblLoginCookie.
Does your version look like this ?

local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

local tblLoginCookie = {} -- table of cookies for refresh authentication.

[quote=“CudaNet, post:281, topic:185402”]Can you look in your L_HoneywellTCC.lua file, close to the top of that file he sets a local var, tblLoginCookie.
Does your version look like this ?

local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

local tblLoginCookie = {} -- table of cookies for refresh authentication.

Mine looked like the first, so I made the change (adding the " = {}". Everything is still working fine.

OK, well that’s good news. Let’s see if that corrects the authentication issue. You can search and see that it’s used by various functions throughout. Fingers crossed (c’mon, it can’t be that simple).

Edit: cohibafan, I wouldn’t expect that this would correct your situation.

[quote=“lingerba, post:282, topic:185402”][quote=“CudaNet, post:281, topic:185402”]Can you look in your L_HoneywellTCC.lua file, close to the top of that file he sets a local var, tblLoginCookie.
Does your version look like this ?

local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

local tblLoginCookie = {} -- table of cookies for refresh authentication.

Mine looked like the first, so I made the change (adding the " = {}". Everything is still working fine.[/quote]

I’m going to head home, I’ll see if I have time tonight to debug the, “HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.” issue…

I lied, I’m really heading home now… Did a quick trace to see why (not why I didn’t go home, why the err) ? This is what I have so far…
All starts with this guy… updateCredentials()

>>>>>CUDA<<<<< Function 1010 Called: getLocationIDsFromHTML
>>>>>CUDA<<<<< Function 80 Called: trim
>>>>>CUDA<<<<< Function 80 Called: trim
>>>>>CUDA<<<<< Function 80 Called: trim
>>>>>CUDA<<<<< Function 932 Called: getDevicesInLocation
>>>>>CUDA<<<<< Function 439 Called: createCookieStringFromTable
>>>>>CUDA<<<<< Function 132 Called: log
HNYWL TCC: Unknown error when tryinh to get devices with GetLocationListData.  HTTP Code 500
Issue with processing getDevicesInLocation.  (Issue already logged)
task Honeywell TCC Authorization passed, but no devices were found.
>>>>>CUDA<<<<< Function 509 Called: refreshAllStatus

So we need to find out why the ‘500’, clean it up and move on with our lives…

So I have suspended my scene to re-login to Honeywell. It can take multiple days for the issue to reoccur. So I will let you know if I ever see anything.

Good plan, toes crossed…

Ugh. I just want a simple thermostat I can control with my Vera. The TRANE works, sort-of; it wants to set the heating set-point vs cooling, whereas I can simply delete any heating elements entirely from the Honeywell.

Did some looking around at the Nest and it looks buggy on UI7 according to the more recent forum posts.

I’d prefer a nice visual interface like the Honeywell with outside temp and humidity, but all this hassle :frowning:
Plus there’s always a change the manufacturer changes their code and we’re back to square one.

Is there a solid unit out there that just works? Sorry for the rant :-/

I’m curious, exactly what kind of Honeywell stat where you trying to use with this plugin ?

[quote=“cohibafan, post:288, topic:185402”]Ugh. I just want a simple thermostat I can control with my Vera. The TRANE works, sort-of; it wants to set the heating set-point vs cooling, whereas I can simply delete any heating elements entirely from the Honeywell.

Did some looking around at the Nest and it looks buggy on UI7 according to the more recent forum posts.

I’d prefer a nice visual interface like the Honeywell with outside temp and humidity, but all this hassle :frowning:
Plus there’s always a change the manufacturer changes their code and we’re back to square one.

Is there a solid unit out there that just works? Sorry for the rant :-/[/quote]

RTH9580

When my Vera lite died they offered me an upgrade to the Edge. That was the beginning of my hassles.

I’ll keep digging through the code, I can’t see why it wouldn’t work. If it can be accessed/controlled via TCC then it should work. As you indicated, my concern is small changes to their undocumented API which causes this plugin to stop working. It’s always a risk and I just wish that Honeywell would just release an official API.

Nest is a great product and Watou’s plugin worked great (still works I believe). Now with the latest WWN, yes - it had/has issues (perhaps they’ve been corrected since). As I understood it, the plugin generates a persistent connection to Nest. I guess later versions of the plugin would just drop the connection and wouldn’t re-establish. Perhaps it’s been corrected since I last looked.

[quote=“cohibafan, post:290, topic:185402”]RTH9580

When my Vera lite died they offered me an upgrade to the Edge. That was the beginning of my hassles.[/quote]

Well, part-techies like me appreciate the dedication you guys put in and wish we could do more (besides learning luup, xml, json, etc.) :wink:
Maybe I’ll pick up a Nest over the holiday and see how it works, then return whatever two thermostats I like the least.

In any case I’m happy to make my system available for testing on UI7.

[quote=“CudaNet, post:287, topic:185402”]Good plan, toes crossed…

So I logged in to my Vera this morning and I had a blue error message saying that authentication failed wit Honeywell. I waited a little while (20ish minutes) before clicking anything. I then clicked the “Devices” tab. The error message went away. When I looked at the main TCC app, it says authentication was successful.

However, when I go back to the Dashboard screen, there is a general notification that says, “cannot write user data”. I have no clue if this is related to Honeywell TCC or not, but I have never seen this notification before.

In regards to that official API, Honeywell has finally released on for their Lyric platform. https://developer.honeywell.com/

It is weird they released that before TCC, but per the website they say TCC is coming soon.

@CudaNet, if you are willing to write a plugin for the Lyric platform, I have a Lyric thermostat that I will give you (brand new, never opened).

Yes, I too noticed the same old error message this morning. I’ll have more time tomorrow to look at this. I truly appreciate the offer for the Lyric, however I’ve never built a plugin and honestly will leave this up to the experts…
Maybe we’ll be surprised and MCV will support TCC when it’s officially released. Sounds like the API for Lyric is specific to that device, might be more difficult for TCC as it supports many products.

We’ll see…

In regards to that official API, Honeywell has finally released on for their Lyric platform. https://developer.honeywell.com/

It is weird they released that before TCC, but per the website they say TCC is coming soon.

@CudaNet, if you are willing to write a plugin for the Lyric platform, I have a Lyric thermostat that I will give you (brand new, never opened).[/quote]

This is the error I see from the plugin… Every little bit helps, this may be a case whereby he’s testing for a condition and it defaults to failure.

LastRefreshed:Sun, Dec 13,03:11:32 AM
RefreshStatus:Unsuccessful. 
Error code: nilLast 
Authorization Attempt:Sun, Dec 13, 03:11:32 AM
Authorization Status:Unsuccessful. Error code host not found

I think you’ll like the Nest product. I have one for my main HVAC system but I also have mini-splits throughout the home for zoning purposes so I really have no other choice but to use Honeywell products. There are alternatives but I’d rather make this work…

[quote=“cohibafan, post:292, topic:185402”]Well, part-techies like me appreciate the dedication you guys put in and wish we could do more (besides learning luup, xml, json, etc.) :wink:
Maybe I’ll pick up a Nest over the holiday and see how it works, then return whatever two thermostats I like the least.

In any case I’m happy to make my system available for testing on UI7.[/quote]

I started to look at the code again this morning. What a pain ! I found another area whereby a variable isn’t properly set so I think what I’ll do is just go line by line through his code. Bypassing all the Luup gets,sets etc. is getting intensive and I have no API documentation to confirm or deny what he coded to. So in short, this might take some time but I’ll keep working on it. Once I have something that works I’ll post a new file out here…

Thanks @CudaNet! Again, if I can be of any assistance, let me know!

…and we’ll all owe you a Christmas present. Seriously, thank you!