The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Honeywell WiFi Thermostats => Topic started by: JoeyD on January 18, 2015, 04:10:37 pm

Title: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 18, 2015, 04:10:37 pm
Version 1.2 of the Honeywell Total Connect Comfort ("TCC") app is now available from the MiOS marketplace.

Executive Summary: Control and automate your Honeywell WiFi enabled thermostats with this plug-in.  Any thermostat that you can access with My Total Connect Comfort (https://mytotalconnectcomfort.com/portal) shoud be accessible with this app.  Currently, the app supports up to 3 thermostats.

Vera Compatibility:  Compatible with vera UI5 and UI7.  It also supports degrees F and degrees C.  (Your thermostats may or may not be set to the same temperature units that your Vera is set-up to display.)

Set-up:

Once vera reloads,  You may need to refresh your browser a couple times (F5) to see all of the data.

If there are thermostats in your mytotalconnectcomfort account that you don't want Vera to interact with, go to the TCC Setup tab and click on "D" next to that device and then click refresh at the bottom.  This disables that device and removes it from your Vera devices. You can re-enable it at any time by clicking "E".

Removing a device (click R and then Refresh) is only needed if you physically removed the thermostat from your mytotalconnectcomfort account.  (You no longer own the thermostat.)

Normal Operation:

The app adds a vera standard child thermostat device for each of your TCC thermostats.  This will be accessible through the web UI, the vera moibile app, and should be accessible through any other 3rd party apps that support thermostats.

You can use the UI to change the thermostat "switch mode" (off / heat / cool),  and change the fan operation (Auto, Continuously On, or Circulate).   If you're running UI7 you can change the set-point for the current mode (if you're heating, change the heat point, if you're cooling, change the cool point).   If you're running UI5 you can set the heating and cooling points independetly no matter which mode (heating or cooling) your unit is currently operating in.

When you change the set-points using the UI, they will be applied to your unit as either temporary or permanent, depending on how you set-up the default. (See set-up step 5 above.)

The plug-in polls Honeywell's TCC website / API every 5 minutes (or whenever you make a change) to keep up to date.

Known Issues / Enhancements to be addressed in Future Release:

4) Improve handling of set-points / data when in AutoChangeover mode.
5) Improve handling of data based on reported capabilities of the thermostat Does it have a fan, supports heating, cooling, changeover, etc.)

Special Thanks to the following forum members who assisted with development and testing: mikee, CudaNet, mvader, rayp, ServiceXp, and watou.  They all served to make this as robust an implementation as possible.

Changelog:

Version 1.0 : Jan 19, 2015 - Initial Release

Version 1.1 : Feb 3, 2015 - Set-up now automatically finds the thermostats associated with your account.  (No need to figure out your own thermostat ID numbers).  Number of thermostats supported increases from 3 to 8.  A few other minor fixes.

Version 1.2 : Feb 10, 2015 - Fixed an issue where the plug-in was not automatically trying to re-authenticate when authentication fails.  The plug-in will now try and authenticate every 5 minutes upon any kind of authentication failure.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 18, 2015, 04:11:29 pm
Documentation for Advanced Users:

This implementation supports the following standard thermostat services / actions for child thermostat devices:

Service      Action      Parameter = Values
------------------------------------------      ---------------------------      ------------------------------------------
urn:upnp-org:serviceId:HVAC_UserOperatingMode1      SetModeTarget      NewModeTarget = Off, HeatOn, CoolOn, AutoChangeOver
urn:upnp-org:serviceId:TemperatureSetpoint1      SetCurrentSetpoint      NewCurrentSetpoint = [Temperature]*
urn:upnp-org:serviceId:TemperatureSetpoint1_Heat      SetCurrentSetpoint      NewCurrentSetpoint = [Temperature]*
urn:upnp-org:serviceId:TemperatureSetpoint1_Cool      SetCurrentSetpoint      NewCurrentSetpoint = [Temperature]*
urn:upnp-org:serviceId:HVAC_FanOperatingMode1      SetMode      NewMode = Auto, PeriodicOn, ContinuousOn, FollowSchedule

* The temperature must be passed to the action in the display units of your vera (degrees F or C).  It doesn't matter what units your thermostat is set to.



This implementation supports (sets) the following standard thermostat variables for child thermostat devices:
Service      Variable      Supported Variable Values
------------------------------------------      ---------------------------      ------------------------------------------
urn:upnp-org:serviceId:HVAC_UserOperatingMode1      ModeStatus      HeatOn, CoolOn, Off, AutoChangeOver
urn:upnp-org:serviceId:HVAC_FanOperatingMode1      Mode      Auto*, ContinuousOn, PeriodicOn
urn:upnp-org:serviceId:TemperatureSetpoint1      CurrentSetpoint      [set-point for the current ModeStatus]**
urn:upnp-org:serviceId:TemperatureSetpoint1_Heat      CurrentSetpoint      [Temperature of heat setpoint]**
urn:upnp-org:serviceId:TemperatureSetpoint1_Cool      CurrentSetpoint      [Temperature of cool setpoint]**
urn:upnp-org:serviceId:TemperatureSensor1      CurrentTemperature      [Temperature Reading]**
urn:micasaverde-com:serviceId:HVAC_OperatingState1      ModeState      Idle, Heating, Cooling ***
urn:upnp-org:serviceId:HVAC_FanOperatingMode1      FanStatus      Off, On ****

*   If your Honeywell unit's fan is set to "Auto" or "Follow Schedule", the Fan Mode will be reported as "Auto"
** Values will be in the display units of your vera, regarless of the temperature unit setting of your thermostat.

*** Honeywell's API does not report the actual ModeState of your system.  The plug in will set the ModeState based on the CurrentTemperature, ModeStatus, and your CurrentSetpoint(s).  For example, if your unit is in HeatOn ModeStatus, and the temperature reading is less than your heating set-point, the plug-in will set the ModeState is "Heating".

**** Honeywell's API does not report the actual FanStatus of your system. The plug-in will set the FanStatus based on the ModeState and FanMode.  If the FanMode is "ContinuousOn", the FanStatus will be set on "On".  If the ModeState is "Heating" or "Cooling", then the FanStatus will be set to On.  Otherwise, it will be set to "Off".  There is no reasonable way to report the FanMode if your FanStatus is set to "PeriodicOn" (also known as "Circulate".)



The following additional Honeywell specific variables are available on the child thermostat devices.  The service for all of these is:
urn:honeywell-com:serviceId:ThermostatData1
A note about Heat/CoolSetpopintUntilTime:  even if your thermostat is in a permanent hold, you will still see a time indicated here.  This is the time that the thermostat would change the set-point if it were not in a permanent hold.

The following actions are supported on the Parent Honeywell TCC device:


Action Name: CancelSetpointHold
Parameters:{ThermostatID=XXXXXX}

Sample luup call to remove the setpoint holds, for a thermostat with id 123456 and your plugin parent device ID of 10.  After the execution of this command, yout thermostat number 123456 will revert to "following schedule" for the set-points:
[/t]
Code: [Select]
local lul_arguments = {}
lul_arguments["ThermostatID"] = 123456
luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","CancelSetpointHold",lul_arguments,10)



Action Name: HoldSetpoint
Parameters: {
                    ThermostatID=XXXXXX,
                    newSetpointValue=[Temperature in the DISPLAY UNITS of vera],
                    SetpointMode = ["COOL" or "HEAT"]
                    SetpointType = ["TEMPORARY" or "PERMANENT"]
                    SetpointEndtime = [Time in 24 hr format, eg: "15:25"]
                    }

You must supply the ThermostatID and the NewSetpointValue.  All other arguments are optional.  If you omit the SetpointMode, the action will determine which mode your thermostat is currently in (heating or cooling) and apply the setpoint accordingly.  If you omit SetpointType, the action will look to your default setting for the type, and apply that.

The SetpointEndtime parameter only applies as an option for the TEMPORARY SetpointType.  This is equivalent to going to your unit and selecting "hold until 5:30 PM."  After that time is reached, your thermostat reverts to "following schedule."  Note that the Honeywell thermostats support 15 minute increments only.  You can supply any time in the parameter, but the action will in effect round that to the nearest 15 minutes.  Example, if you enter in "15:50", your temporary set-point will be held until 4:00 PM.

Sample luup to set the heat-point to hold at 70 degrees until 11:00 PM:

Code: [Select]
local lul_arguments = {}
lul_arguments["ThermostatID"] = 123456
lul_arguments["newSetpointValue"] = 70
lul_arguments["SetpointMode"] = "HEAT"
lul_arguments["SetpointType"] = "TEMPORARY"
lul_arguments["SetpointEndtime"] = "23:00"

luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","HoldSetpoint",lul_arguments,10)

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Tank on January 18, 2015, 10:26:54 pm
Thanks, this is great! 

Any thoughts on supporting remote temperature sensors like the radio thermostat plugin?  Does Honeywell even provide support for this?  I know some of their higher end thermostats can have remote temp devices but I'm not sure if you can feed values to it from the API like the radio thermostat.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 18, 2015, 11:14:09 pm
Hi Joey,
That all depends on if those temperature sensors are made available to the API.  Basically, if you log into https://mytotalconnectcomfort.com/portal  and you can access the data from the temperature devices, then it should be possible.

Unfortunately, Honeywell has not made their API publicly available at this time (I have inquired again to try and become a partner in their API program), so much of what we're doing is based off of experience with actual devices.  My thermostat (http://yourhome.honeywell.com/home/Products/Thermostats/7-Day-Programmable/Wi-Fi+Smart+Thermostat.htm) does not support external sensors, but it is linked to a local weather station and it reports the "outside temperature" and "outside humidity" based on that data.  The plug-in exposes that outside temperature and humidity as variables on the thermostat device.

The "beauty" of a home automation server / ecosystem like Vera is of course that you don't need to actually have "Honeywell" supported external temperature sensors.   You can use any temperature sensor that Vera works with....or even use an additional plug-in like the Weather Underground App to get information on location conditions.  Then use scenes to make your thermostat respond based on the data from those devices / apps.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rayp on January 18, 2015, 11:52:17 pm
Thank-you so much for this plug in JoeyD!  :)
Well done.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 19, 2015, 08:47:10 am
You're welcome, and thanks for the kind words. :)  I only hope that Honeywell grants me access to the API so that I can make this plug-in as good as it can possibly be, including potential support for any other Total Connect Comfort devices that they report on.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: awetsock on January 19, 2015, 07:04:10 pm
Joey,

This is absolutely awesome!  Up an running in a just a few minutes.  I had just about given up and sold my pair of Honeywell Prestige 2.0 stats so that I could move over to something that was supported with an existing plugin.

I remember seeing the announcement from Honeywell in September of 2013 stating that they would soon release an API.  Here we are in 2015 and I am still waiting for them.  I searched that APPS section for Honeywell just a bit ago and about fell out of my chair when I saw your plugin.

Thanks for all of the time, effort, and energy that you and everyone put into this.  I know that it will just get better from here...  ;D
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bconrey on January 20, 2015, 02:33:48 am
Great plugin - support for Honeywell wifi stats has been a long time coming!

Please note that this plugin doesn't appear to apply to the Lyric as it doesn't use TCC, but rather uses its own app for stat management. (If you have tips on getting a Lyric to work, please share them - bought one today to take advantage of this plugin, to no avail).

The Lyric got some rough reviews in the early days but apparently Honeywell stepped up their game and folks seem a lot more satisfied with recent updates than they were with the initial release. I'm pleased so far, enough so that I'll keep it even though I can't include it in my Vera.

Lyric is a great thermostat so far, just wish I could plumb it in with everything else!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 20, 2015, 08:08:23 am
Thanks, everyone...glad it seems to be working well!  All feedback is appreciated!

Unfortunately, Lyric (as far as I know) does not have a web interface that you can use to sign on to and manage / control your thermostat...it's strictly smartphone apps.  Without an API...I would need to utilize a web app so I could examine the network calls to potentially build support of Lyric.  This snooping could also potentially be done with smart-phone apps...though I just don't know how to do it, or if I could do it, if they use https calls / sockets like their Wifi thermostats do.

In Honeywell WiFi related news...

I'm looking into simplifying set-up even further by automatically determining your device numbers and names once you supply your log-in credentials.  (This won't help anyone already up and running, but would make things pretty much automatic for new users going forward.)  I've got it mostly figured out...just one more issue to work through.

Also, I have been in touch with Vera support (who has been great so far).   I will be lobbying to get auto-changeover thermostat support added to UI7.  This will require that the UI enable you to independently set the heat and cold points when your HVAC system is set to "auto changeover" mode.  No promises on if they can or will deliver, but at least we're having the conversation.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bconrey on January 20, 2015, 10:10:06 am
When I set up my Lyric last night and realized TCC was independent of the Lyric app, I created a TCC account and attempted to add the Lyric's MAC address. TCC told me I couldn't add that thermostat because the MAC address was already assigned to another account. I then removed the Lyric from its app and attempted to add it to TCC, and was greeted by an error message that it was unable to register my thermostat on my TCC acount.

Just providing the additional info as an FYI. Hopefully someday they'll actually make their API available (seems odd they'd create a web page that talks about it but then not actually make it available).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: awenger on January 21, 2015, 04:52:08 am
Does this plugin also works in European setups? I have an Honeywell evohome thermostat which I would like to control.
To login to the portal I have to go to https://europe.mytotalconnectcomfort.com/

I found a python script which works on my unit. Can be found here: https://github.com/watchforstock/evohome-client
This script makes calls to the API on https://rs.alarmnet.com/TotalConnectComfort/WebAPI/api.
Is this plugin using the same API?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 21, 2015, 07:46:10 am
Does this plugin also works in European setups?

I have not explicitly coded any support for European setups.  If you can't access your device by going to http://mytotalconnectcomfort.com/ then I suspect it is not likely to work.  I did not look at the python script you linked to yet, but the API calls that I make look to be slightly different.  (Mine are generally to rs.alarmnet.com/TotalComfort).

Anyway I'll be sending you a PM and we can see if there is a possibility I could try and work in formal support.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ilikelife on January 21, 2015, 07:22:53 pm
Awesome!

It took me just a few minutes to get this up and running.  The instructions at the start of this thread are very good.  No problems so far.

Comments:  I also have a Honeywell "Remote Control" but I have never found any readings (or controls) for it on  the mytotalconnectcomfort.com/portal.  But it seems that with this plugin to Vera, any remote temperature sensor can now effectively be used as a remote.

I find the Outside Temp and Humidity readings in the Advanced Tab of the thermostat child device, but they do not show on the UI7 device display screen.  Is that as intended, and if so, is it documented?  (I've read through several threads quickly so may have missed it.)  I can set those to display on HomeWave and others, so it's not a problem, just checking.

Thanks, JoeyD (and others that helped) to make this excellent addition to Vera's functionalit!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 21, 2015, 07:40:29 pm
I find the Outside Temp and Humidity readings in the Advanced Tab of the thermostat child device, but they do not show on the UI7 device display screen.  Is that as intended, and if so, is it documented?

It's only "intended" to the extent that there is no way to get the outside temperature or humidity to display on UI7 device screen. :)  The UI7 child device is a MCV standard so that if you use other 3rd party and mobile apps, they will automatically support your honeywell device as long as they support thermostats.

The second post in this thread documents the honeywell specific variables that I store with the child device, as well as the honeywell specific actions that are available to use.

Glad it's working well for you!  Let me know if you find any issues or have any suggestions.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Tank on January 22, 2015, 09:51:47 am
Thanks, everyone...glad it seems to be working well!  All feedback is appreciated!

Unfortunately, Lyric (as far as I know) does not have a web interface that you can use to sign on to and manage / control your thermostat...it's strictly smartphone apps.  Without an API...I would need to utilize a web app so I could examine the network calls to potentially build support of Lyric.  This snooping could also potentially be done with smart-phone apps...though I just don't know how to do it, or if I could do it, if they use https calls / sockets like their Wifi thermostats do.

In Honeywell WiFi related news...

I'm looking into simplifying set-up even further by automatically determining your device numbers and names once you supply your log-in credentials.  (This won't help anyone already up and running, but would make things pretty much automatic for new users going forward.)  I've got it mostly figured out...just one more issue to work through.

Also, I have been in touch with Vera support (who has been great so far).   I will be lobbying to get auto-changeover thermostat support added to UI7.  This will require that the UI enable you to independently set the heat and cold points when your HVAC system is set to "auto changeover" mode.  No promises on if they can or will deliver, but at least we're having the conversation.

In the past I've used VirtualBox with Android x86 to run mobile apps on my PC and sniff traffic.

https://www.virtualbox.org/wiki/Downloads

http://www.android-x86.org/download

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: auto on January 23, 2015, 02:09:08 pm
Hi JoeyD-

Thank you for the great app!  Everything working great so far.  One request is to add the ability to change the fan mode in a scene.  For example: If my Netatmo CO2 shows higher than 900 turn fan on.  Currently there is not an option to control the fan in create new scene on UI7.

Thanks again!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 23, 2015, 03:29:50 pm
Hi JoeyD-

Thank you for the great app!  Everything working great so far.  One request is to add the ability to change the fan mode in a scene.  For example: If my Netatmo CO2 shows higher than 900 turn fan on.  Currently there is not an option to control the fan in create new scene on UI7.

Thanks again!

Hi auto,

You should be able to do this by using the thermostat device actions (not the parent honeywell device).  For the fan, the plugin supports the following action:

service    /      action
urn:upnp-org:serviceId:HVAC_FanOperatingMode1   /         SetMode

This action takes one parameter "NewMode", and you can set it to any of the following:

(PeriodicOn is used for "circulate" mode). 

Again, you need to run the action against the child device thermostat, not the parent "honeywell" device.  You co do this via luup code, or with the "advanced editor" in UI7 scenes.  Give it a shot and let me know how it goes. :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: auto on January 24, 2015, 01:08:35 pm
JoeyD-

You are the best!  Works great.  I did not even notice the advanced editor in the scene creator.

Thanks again.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 24, 2015, 03:06:39 pm
Yes, as you start getting more and more into creating scenes, you'll quickly find out that for many devices the default actions you can perform are very limiting.  (They are limited to the actions you can perform on the dashboard UI).

So then you'll start using the advanced scene editor more and more for the next level of complexity.

Pretty soon you'll probably find out that even the advanced editor is too limiting for more complicated logic.  So then you'll start entering snippets of luup code...

...and then you'll start writing plug-ins. ;)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on January 24, 2015, 10:24:44 pm
Thanks so much for this plugin!  I was struggling about what to buy to replace my crappy Remotec thermostat.  When I saw you had it working, I knew I had the answer.   Honeywell has a much better method for setting the schedule than Vera has.  What I want to do is to set the thermostat to a specific temp when away, and then just set it back to it's program when done.  Can this be done with the current plugin?


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 25, 2015, 12:01:09 am
Hi Grwebster,

Yes, this can be done (See post 2 (http://forum.micasaverde.com/index.php/topic,30125.msg214456.html#msg214456) in this thread.)  Specifically, the sections near the bottom for "CancelSetpointHold" and "HoldSetpoint" actions for the parent Honeywell device (not the individual thermostat devices).  You will want to set the set-point with a permanent SetpointType when you go away, and when you return you'll want to cancel the setpoint hold.

You can use (assuming UI7) either the advanced editor, or use luup code.  (Luup code examples are given.)

Let us know if you need additional help, and good luck!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on January 25, 2015, 12:37:12 pm
Perfect.   Thanks very much JoeyD.  The Honeywell program has a great interface for setting the schedule for the whole week, and the Vera can be used for override only.  Makes me glad I did not buy the z-wave version, because then I would be stuck trying to do it using many scenes in Vera to get things done.  Definitely this is the way to go.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 25, 2015, 04:55:01 pm
Yup...I tend to agree about the scheduling.  In fact this is a rare device in that the UI that honeywell built for it is actually pretty damn good on the whole!

There are however a couple downsides to using the WiFi version vs. a Z-Wave version...which mainly comes down to using the internet as an interface between the thermostat and vera:

1)  If your internet goes down at your home, you won't be able to control or get the status of the thermostat...which means that any scenes you build also won't work if the internet goes down.  With a z-wave device this is not an issue since z-wave devices talk directly to vera.

2) Because the thermostat can't "push" status updates to vera, we have to actively "poll" to get its status.  In order to avoid the overhead of constantly polling all the time, we limit this to once every 5 minutes.  This means that in a worst case scenario, your vera unit won't know something has changed with your thermostats until 5 minutes after the fact.

The take-away is that for "mission critical" applications, you probably want a z-wave thermostat.  For most of us (myself included), the internet limitation isn't a problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on January 26, 2015, 11:20:19 am
Yes, Vera would do well to take a look at how they have it set up.  It is too bad that that it can't be local, but the stat has the program and will do it's thing so I am not that concerned.  I did see the delay when playing with it after I set it up.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rsaroki on January 26, 2015, 11:43:34 am
Hi there i am having trouble communicating with the thermostats i am getting a error code 500 when i refresh the units. I am able to log in to my account but no luck talking to the stats i did input the stats id any idea what im doing wrong thanks. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on January 26, 2015, 02:06:55 pm
Works great so far. Really amazing work. Took about 10 minutes to set up (for some reason it wasn't saving my thermostat IDs), but once I got the IDs saved, it added the thermostats when I did a reload.

Currently, the app supports up to 3 thermostats.

 Any idea if you might support more than 3 stats? I have 5, if you need me to test something, let me know.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 26, 2015, 02:31:51 pm

 Any idea if you might support more than 3 stats? I have 5, if you need me to test something, let me know.

As a matter of fact, the next release will support up to 8. :)  I've changed the set-up so that it should automatically find and install all your thermostats (up to 8 ) pretty much automatically.

Since you asked, I may use you as a guinea pig and post beta files here that you can upload and try out.  I just need to check my code and make sure it's suitable for a beta or release candidate....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 26, 2015, 02:57:39 pm
Well I've been running this version for about a week now with no surprises, so I guess it's safe to post as a beta.  You can download the attached zip, and upload the included files to your vera (no need to uninstall your current version).  The set-up tab will change (after a luup restart and a browser refresh) to what you see in the second attachment.

The new set-up tab will automatically "find" up to 8 of the thermostats you have included in your account.  By default, new thermostats that are found are automatically added to your vera devices.

 If, however, you don't want a given thermostat to show up in your vera devices, disable it by pressing the "D" button and then "refresh", and that device will be removed from Vera.  (It will still show up on the list of thermostats as "disabled."

Let me know how it goes!

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on January 26, 2015, 06:50:35 pm
Does the "D" thing work in U1.5?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on January 26, 2015, 06:51:25 pm
Nevermind..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 26, 2015, 07:07:34 pm
It should work, though I believe the display in UI5 doesn't update unless you switch tabs back and forth.  (Press the D button, then switch to another tab, then switch back to the set-up tab).  The actual variable get set when you click "D", but you don't see the results unless you refresh the screen by switching tabs back and forth.

Unfortunately, there isn't much I can do about that aside from potentially coding a custom Javascript tab, and even then I'm, not sure if that will solve that UI5 glitch.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on January 26, 2015, 07:42:38 pm
....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 26, 2015, 08:16:25 pm
Thanks, ServiceXP.

Those formatting issues are ones I've had to work around in the past.  I don't have a UI5 unit at the moment to test against, but I will in the next couple days.  Despite the formatting issues, it should still technically work.

Just on a hunch though, you could try the attached JSON file and see if it gets rid of the display issues.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: techieferret on January 27, 2015, 09:06:04 am
I may not be doing something right, but my stat won't accept a set point. Also, when you hold down the up arrow, the set point is goofy.  (Sometimes jumps back down by 10-20)
I can only change the fan and heat/cool mode.  (Mine is an auto-changeover model)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 27, 2015, 11:17:05 am
I may not be doing something right, but my stat won't accept a set point. Also, when you hold down the up arrow, the set point is goofy.  (Sometimes jumps back down by 10-20)
I can only change the fan and heat/cool mode.  (Mine is an auto-changeover model)

Hi techieferret,

We'll try and get this sorted....I'll a bit more information:

1) What UI version are you on (5 or 7)?  If you're not sure, is your screen mostly green and white (7) or blue and white (5).

2) If you press the up arrow one click at a time (slowly) does it work, show odd behaviour? 

3) What mode is your thermostat currently in when setting the setpoint fails?  (Heating, Cooling, Off, or Auto Changeover?)

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on January 27, 2015, 11:32:50 am
Thanks, ServiceXP.

Those formatting issues are ones I've had to work around in the past.  I don't have a UI5 unit at the moment to test against, but I will in the next couple days.  Despite the formatting issues, it should still technically work.

Just on a hunch though, you could try the attached JSON file and see if it gets rid of the display issues.

The "Enabled" text is now showing for the thermostat but......

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 27, 2015, 12:15:52 pm
The "Enabled" text is now showing for the thermostat but......

Unfortunatley, I have found no away around this UI5 issue. (http://forum.micasaverde.com/index.php/topic,29998.0.html)  If I put variables on the dashboard control (in this case, last refresh time and status), they "leak" (for a lack of better term) on to subsequent tabs.  They corrupt other controls / variables unless I "dump" the contents into dummy variables somewhere on the tab...and the result you see is the garbled mess that I must place somewhere on the screen.  (where it is not overlapping other controls.)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 27, 2015, 12:37:40 pm
@JoeyD,

Noticed today when logging into Vera that a 'refresh' error occurred (log data below). Quick question, if the device can't authenticate (for whatever reason), does it re-attempt at any point (e.g. refreshInterval) ? Seems it was just waiting for me to restart LUUP. Once I did, voila - it reconnected. I believe the error reason was Host Unavailable or something like that..

Just curious..

Code: [Select]
06      01/27/15 11:26:49.773   Device_Variable::m_szValue_set device: 235 service: urn:joeyd-com:serviceId:HoneywellTCC1 variable: statusRefreshDate was: Tue, Jan 27, now: Tue, Jan 27, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2facd680>
06      01/27/15 11:26:49.773   Device_Variable::m_szValue_set device: 235 service: urn:joeyd-com:serviceId:HoneywellTCC1 variable: statusRefreshTimeSuccess was: Tue, Jan 27, 10:34:05 AM now: Tue, Jan 27, 11:26:49 AM #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2facd680>
06      01/27/15 11:26:49.774   Device_Variable::m_szValue_set device: 235 service: urn:joeyd-com:serviceId:HoneywellTCC1 variable: getStatus was: Unsuccessful.  Error code: nil now: Successful #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2facd680>
06      01/27/15 11:26:49.775   Device_Variable::m_szValue_set device: 235 service: urn:joeyd-com:serviceId:HoneywellTCC1 variable: t.1.refreshStatus was:  now: Successful Refresh: Tue, Jan 27, 11:26:49 AM #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 27, 2015, 01:33:04 pm
Without checking, I believe this is how I implemented it... :)

1) The thermostat refresh is set for every 5 mintues.
2) If during a refresh the previously acquired authentication cookie fails, it tries to re-log in again with your user name and password to establish a new authentication cookie.  It tries this once.  If successful, it will refresh the thermostats without issue.  If not you will see a refresh error and an authentication error on your control tab.
3) This process repeats every 5 minutes.

The control tab will tell you when the last time it had to "authenticate" (needed to re-login with your ID and password.), and when the last automatic device refresh occurred.

At the end of the day, if authentication fails, it should re-try again every 5 minutes...at least that how I designed it to work.  Whether or not it does is of course another story. 

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 27, 2015, 09:44:15 pm
Not a problem, I'll continue to monitor it and if it happens again I'll devise a test to see if polling is somehow interrupted...

At the end of the day, if authentication fails, it should re-try again every 5 minutes...at least that how I designed it to work.  Whether or not it does is of course another story.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on January 27, 2015, 10:15:35 pm
Did you see the work of this person the Honeywell Wifi thermostat.  Here is the link:

http://www.bradgoodman.com/thermostat/



Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 28, 2015, 07:49:47 am
Yup.  When I started initial development and trying to figure out how to do the authentication and basic i/o, that was one of my initial sources.   
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on January 30, 2015, 05:11:18 pm
Sorry, never tested plugins before, not that hard, just uploaded the files.

Luup kept restarting, but after it settled in, it looks stable.

Works like a charm, even named the thermostats. Awesome.

Still have some glitch with numbers on UI5, doesn't bother me though.


See picture

(btw, these captchas are hard, and I learned that the tower bridge is in London)

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on January 30, 2015, 06:59:40 pm
Thanks for the feedback, memonstatus.

Yes, there will be a few restarts when you first install it.  It will restart at least twice:  Once when you upload the files, and once again after it gathers your thermostat information.  (Luup is required to restart when it adds the new devices to your system.)

The "numbers" glitch is a UI5 thing which I can sort of work around.  What I can't find a way to work around at the moment, is if you click on "D" (for disable) for example, the setting updates but the screen does not reflect it unless to click on another tab and click back.

Apparently, UI5 does not like having multiple "flash" type tabs.  At some point I may develop javascript style tabs instead, but I've got some learnin' to do before I tackle that. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Tank on February 01, 2015, 09:47:33 am
(btw, these captchas are hard, and I learned that the tower bridge is in London)

The captchas go away after 5 posts.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 01, 2015, 11:53:52 am
I'll be posting this version to the app store for approval.  It should be publicly available sometime next week.  It's the same version as what I recently posted as a beta with just a couple minor tweaks, including one to fix the UI glitch mentioned by memonstatus ).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 01, 2015, 03:19:17 pm
I lost authentication over 2 days ago.  Never recovered.  Had to manually enter the credentials that were already present to get it working again.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 01, 2015, 04:11:27 pm
I lost authentication over 2 days ago.  Never recovered.  Had to manually enter the credentials that were already present to get it working again.

Thanks...I'll have another look at the authentication code.  I already pushed an updated version to the app store (pending approval), but when I find the bug it will be corrected for the next release.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 01, 2015, 04:12:25 pm
Thank You Sir.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: electricessence on February 01, 2015, 06:00:07 pm
Please advise how you could monitor "OutdoorTemperature" and wire triggers to it?

I have an outdoor thermostat that works with this and the value is updated in the plugin under advanced settings...
But I am not certain how to track the value in way that Vera can fire triggers from.

I really want to do this without coding, but if I was to do so, I imagine I would need to have a timer that checked the value every so many minutes and then if the value goes below/above a threshold I could turn OFF or HEAT the thermostat.  Your documentation here is exceptional and I'm sure I could easily code this, but I'm thinking there's a no-code way of establishing a trigger.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 01, 2015, 06:18:06 pm
Please advise how you could monitor "OutdoorTemperature" and wire triggers to it?

Unfortunately, OutdoorTemperature is a honeywell specific (non-standard) variable.  Because it's not part of the standard Thermostat Device, the variable is not exposed to be able to be used directly as a trigger in Vera scenes.

A way you should be able to do this "without code" is to use another plug-in called PLEG (http://forum.micasaverde.com/index.php/board,48.0.html).  I do not have experience with that plug-in though, so I would not be able to help you configure it. 

You are correct that you could use code that runs in a scene that you have scheduled to run every few minutes, checks the temperature and then performs an action based on that.  I can assist you with that should you decide to not use PLEG. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 02, 2015, 01:38:45 am
Having a glitch with the beta, updating multiple stats in a scene , at least one stat goes to temporary while plugin is configured for permanent, this is also first thermostat on honeywell. Tried running scene a few times, sometimes stays permanent, sometimes goes on schedule right after the scene is run.

With that said mostly everything is running fine. Awesome work.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 02, 2015, 07:59:46 am
@memonstatus,

Can you show me (screenshots or describe) how your scene is set-up?  What triggers it, and what commands are you sending? Is this repeatable if you only have two thermostats in the scene or do you only experience it with more than that?

I only have two thermostats but I will try and replicate.  Also, once I get an idea of the scene you are trying to run, I'll probably provide a custom file, and ask you to run it and show the log contents.

Appreciate your help in tracking this down!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 03, 2015, 07:57:21 am
Version 1.1 is now available from the app store.  The first post in this thread has been updated with the latest release information.  (Basically new auto-detect set-up with support for up to 8 thermostats, better UI5 support and a couple minor tweaks.)

Auto updating does not always seem to work in UI7, but this link (copy and paste the link a browser windown when you are on your local network) should work to update your plug-in.  Just replace YOURIP with the IP address of your vera:

YOURIP:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8132&Version=25956

@memonstatus:  Please let me know if you are still having issues with multiple thermostats in a scene.  I assume you will since I have not done anything to specifically address the issue in this release.

@ServiceXP...I have found the re-authorization issue...I'm just letting the code run locally on my own unit for a while and I will wait and see if I can also address memonstatus' issue before publishing an update.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 03, 2015, 11:03:11 am
Was trying to replicate problem, could not replicate problem with temporary vs. permanent.

When checking the stats this morning, I saw some of them weren't refreshed, so went into the plugin settings

1. I got Authentication error, host not found at 3am, doesn't automatically try to refresh - I don't know if this is by design
2. When I manually pressed refresh in the plugin settings, it worked, authenticated, and refreshed
3. Pending changes were not applied to thermostats (this is probably more difficult to implement, and understood if this is not supported)

With respect to the scenes, I have a scene set to run at 8am that sets all the thermostats, and another scene at 8pm that again sets all the thermostats. I have 15 ct-100s on z-wave and these 5 honeywells.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 03, 2015, 12:15:55 pm
1. I got Authentication error, host not found at 3am, doesn't automatically try to refresh - I don't know if this is by design

The issue of not automatically attempting to re-authenticate was also brought up by ServiceXp, but not until I had already published version 1.1.  I have fixed that issue and it will be included in the next release.  Starting with the next release it will continue to try and re-authenticate every 5 minutes if authentication fails.

Quote
3. Pending changes were not applied to thermostats (this is probably more difficult to implement, and understood if this is not supported)

It may be possible to support that.  (If authentication fails when a command is issued, to queue the commands and send them once authentication is restored.)   I'll look into that as a possible enhancement.

Quote
With respect to the scenes, I have a scene set to run at 8am that sets all the thermostats, and another scene at 8pm that again sets all the thermostats. I have 15 ct-100s on z-wave and these 5 honeywells.

Just so I'm clear....All 5 are updating with correct temporary or permanent setting when the scene runs?  Or is it still an issue?

Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 03, 2015, 12:43:14 pm
Thanks for the quick response. All 5 are at the correct (permanent) setting. I'm not on 1.1 yet, still on the 1.1 beta with the extra json file you attached.

So I'm still troubleshooting some quirky behavior in that the plugin is not refreshing in the background. When I click the plugin, it does refresh, and subsequent commands after the refresh work and the scenes work. However, when it hasn't been refreshed, and commands are issued by me or the scene,  those commands don't get sent to the honeywell system. On the refresh (thats triggered by me clicking the plugin settings), it then shows the old temperature settings, not the ones that were issued by the scene / me.

Do I have to enable a background update option in the settings?

Edit: attached variables
Btw, any way to access log besides USB? I can't find a spare USB (Vera apparently formats it?)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 03, 2015, 02:15:04 pm
I'm not on 1.1 yet, still on the 1.1 beta with the extra json file you attached.

When you get a chance please upgrade to the latest version. (see my previous post with an upgrade link)  It will be easier to troubleshoot if we're both working with the exact same code base.

Quote
So I'm still troubleshooting some quirky behavior in that the plugin is not refreshing in the background. When I click the plugin, it does refresh, and subsequent commands after the refresh work and the scenes work. However, when it hasn't been refreshed, and commands are issued by me or the scene,  those commands don't get sent to the honeywell system.

I'm not 100% sure what you mean.  So I'll explain how things are working right now, and you can tell me if this explains the experience you're having.

1) During set-up, you provide credentials, it logs-in and sets-up your thermostats, etc.
2) Every 5 minutes the plug-in requests status from Honeywell on all your thermostats, and refreshes your vera thermostat devices to display the current settings.  (So if someone changes a setting on your physical unit in your house, within 5 mintues the change will be reflected on Vera).
3) If during one of these refresh attempts Honeywell returns an error (authentication fails) then basically the plug-in stops working.  You'll see the "Unsuccessful" message on the plugin.  Commands you send won't work, scenes won't work, etc.
4) If you go to the plug-in and manually "refresh" or re-log in, it will re-authenticate...and go back to step 2.

The next version will fix this, so that if during a refresh authentication fails, it will try again to reauthenticate every 5 minutes automatically.  (This is what it was supposed to do all along, but I had a logic error preventing this from happening.)  I think that explains the behavior you're communicating.

Quote
Btw, any way to access log besides USB? I can't find a spare USB (Vera apparently formats it?)

By default, the logs are not on the USB.  (That is an option to move the location where the logs are stored).   The easiest way to "see" your log is to use this...you must be on your local network.  Replace YOURIP with the IP address of vera:

YOURIP/cgi-bin/cmh/log.sh?Device=LuaUPnP

At least I think that method works. :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 04, 2015, 08:08:51 pm
All,

You may or may not be aware the Vera is in the process of pushing out the latest firmware update for UI7.  There are a few changes in the changelog (http://support.getvera.com/customer/portal/articles/1851597-ui7-%E2%96%BE-version-7-0-4-1-7-513-1-7-957-%E2%96%BE-feb-3-2015) related to the thermostat control.

Once my UI7 unit is updated, I'll test the honeywell plug-in against it to ensure it works.  I've been meaning to take a look at the 'Energy' button (since it's visible on UI5), and now that button is also apparently available on UI7.  I'm not aware of any WiFI honeywell thermostats supporting an "energy" mode (and I don't see any indication of such in the data returned from Honeywell), but if anyone's thermostat has such a mode, please let me know so I can see about supporting it.

The other addition is "Add the possibility to edit the thermostat set point value".  By this, I assume they mean that instead of "clicking the spinner" to increase set-points one degree at a time, you'll now also have the option to type in the set-point directly.  (Again, UI5 had this ability, now UI7 is catching up).

Unfortunately, there still does not seem to be native support for "autochangeover" mode.  I'll still pester Vera about getting that included.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: arfield on February 06, 2015, 07:56:23 am
Hi,
I've just found this thread, and was quite excited as I've got a totalconnect account (evohome system).

Umfortunately I'm in the same boat as an earlier poster - I'm in the UK, so it connects to
https://europe.mytotalconnectcomfort.com/

Anyway, just wanted to say that I'd be more than happy to be a tester for anything you may develop that includes european support!
I've got units running UI5 and UI7, and the system is an evohome with 5 TRVs on it.

Rupert

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 06, 2015, 10:27:36 am
Hello arfield,

Unfortunately for my friends across the pond, support for European total connect comfort is a different animal.  Essentially, it would require a completely new plug-in.  It's a different API, different log-in scheme, and the thermostat topology is even different (multiple sensors, etc.)

I have been given access to European account by that eralier poster, and if I get any free time away from my current projects there is a possibility I could consider development.  But to be honest...it's a long shot I'm afraid.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: arfield on February 07, 2015, 04:43:38 pm
Hello arfield,

Unfortunately for my friends across the pond, support for European total connect comfort is a different animal.  Essentially, it would require a completely new plug-in.  It's a different API, different log-in scheme, and the thermostat topology is even different (multiple sensors, etc.)

I have been given access to European account by that eralier poster, and if I get any free time away from my current projects there is a possibility I could consider development.  But to be honest...it's a long shot I'm afraid.

Hi,
thanks for the reply. 
A long shot is better than no shot at all ;D


Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on February 10, 2015, 12:39:48 am
JoeyD,
Been using your plugin for several weeks now. Struggled trying to get my Venstar T5800 to work with VeraLite for months.  Finally decided to get a Honeywell RTH9580.  Your plugin works great for me. Simply installed, registered my thermostat and typed in my credentials. I was also wondering about adding the ability to increase/decrease temps by several degrees. I am assuming your issue is the MCV standard files. I use AutHomationHD on my Android tablet and I can simply slide to the temperature I want. Would love to see that ability added to the MCV webpage screen. Also, any word on the API? Not really comfortable with logging into my VeraLite to simply go out and log into the Honeywell TCC site. Would prefer a more direct link on my local network if possible. Would also allow us to get more frequent updates from the Thermostat.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 10, 2015, 07:52:59 am
Hi Kendad,

No word on the API yet.  For now we're just going to have to live with going through Honeywell's web portal.  I'll keep trying though.

Yes, I am using the standard thermostat control for Vera's web UI.  I don't plan on using a customized version, because if I do that would (for example) not allow you to control the thermostat with AutHomationHD at all.

That being said, the latest UI7 firmware revision did make a couple changes to the standard device, including the ability to directly type in the set point instead of clicking up / down repeatedly.  Just click on the temperature, and then type in the new temperature.  I agree that I like the idea of using something similar to a dimmer or volume type slider, but that would be up to MCV to change the default device.

I'm still lobbying with them to include both heat and cooling set-points for thermostats that support auto changeover.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 10, 2015, 08:00:16 am
All,

Version 1.2 is now available from the app store.  This version fixes the issue where the plug-in was not automatically recovering from a timed-out connection or invalid credentials.  Now the plug-in will always retry to get a valid security cookie (and refresh) every 5 minutes after an unsuccessful authorization.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on February 10, 2015, 09:05:38 pm
JoeyD,

Thanks for the quick reply.  Just checked my system and got v1.2 automatically. It now allows me to click the up or down arrow multiple times to change temp without the annoying MCV circle delay in between each click. So, I can go from 70 degrees to 66 degrees with 4 quick clicks. Like that much better.

I was wondering, have you considered using the Energy button to turn on Schedule and the Normal button to turn it off? All Honeywell documentation refers to "Energy Savings" as using their schedule. It seems using the buttons that way would be appropriate. I did an Internet search and couldn't find any other use for Energy versus Normal.

Still impressed with your APP. Keep up the good work. MCV is only as good as the APP developers that support it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 10, 2015, 09:58:38 pm
I was wondering, have you considered using the Energy button to turn on Schedule and the Normal button to turn it off? All Honeywell documentation refers to "Energy Savings" as using their schedule. It seems using the buttons that way would be appropriate. I did an Internet search and couldn't find any other use for Energy versus Normal.

Hi kendad,

Glad you like the app!  These plug-ins are a bit of a labor of love...I just like "making things work" :)

I hadn't thought about what to do with the new "energy/normal" buttons...I like your idea!   I don't see anything in the JSON results that come back from the honeywell API to indicate any kind of energy savings mode, so tying that into the "follow schedule" mode makes sense to me.  I would propose doing the following:

Clicking the energy button:
1) Forces the set-points to "follow-schedule"
2) Forces the fan to "follow schedule"

Clicking the "Normal" button:
1) Changes the set-points to "permanent" or "temporary" (depending on what your default settings are)
2) Changes the fan to "auto".  (I could also make a new default setting for the fan, "auto" or "circulate", so clicking the Normal button would put it in the specified mode).

In addition, the energy button would only display as as "clicked" when both the fan and temperature set-points are set to follow-schedule.  Any other settings the "Normal" button would appear clicked.

Does that make sense to everyone?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on February 11, 2015, 08:39:08 pm
Clicking the energy button:
1) Forces the set-points to "follow-schedule"
2) Forces the fan to "follow schedule"

Clicking the "Normal" button:
1) Changes the set-points to "permanent" or "temporary" (depending on what your default settings are)
2) Changes the fan to "auto".  (I could also make a new default setting for the fan, "auto" or "circulate", so clicking the Normal button would put it in the specified mode).

Not sure what you mean by "permanent" or "temporary" (depending on default setting). Could you make the button change the set-points to permanent when pushed? There is no way for me to tell the thermostat hold status in Vera. I could be setting the thermostat to temporary hold for 30 seconds if the schedule was set to change in the next minute. I would prefer setting to permanent hold and then clicking Energy/Schedule to change it back if I decided to go back on schedule.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 11, 2015, 09:44:40 pm
Not sure what you mean by "permanent" or "temporary" (depending on default setting). Could you make the button change the set-points to permanent when pushed?

Yes...go to your parent Honeywell device (not your thermostat device) and click on the TCC Defaults tab. Here you can set the behavior when you click the thermostat buttons....either Permanent or Temporary.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on February 12, 2015, 08:43:10 pm
Very nice, hadn't even realized the default buttons were there. Tested and it worked just like advertised. Even more impressed with your plugin.

Also, I noticed something weird about the controls and was wondering if you see the same?

If I go to the Dashboard or Devices screen and push the up arrow, I get the little green MCV spinning wheel each time I push the button. So, if I want to go from 70 degrees to 67 degrees, I click down arrow and wait for spinning wheel to stop, click down arrow and wait for spinning wheel to stop then click down arrow and wait for spinning wheel to stop before I get to 67 degrees. If I go into the Device Control screen for the thermostat I can click the up or down arrow multiple times and it adjusts the thermostat to that degree setting. So, if I want to go from 70 degrees to 67 degrees, I click the down arrow 3 times in a row without any spinning circle and my thermostat goes to 67 degrees. Do you get the same response on your system? Any idea why?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 12, 2015, 08:56:32 pm
Yes...same behavior here.  Its a known characteristic of UI7 at the moment....it even happens with  light switches. Some controls are slow on the dashboard...but responsive on the device tab.

With the latest firmware update though, you can type in the temperature directly.  Just click on the number and type..makes it a little easier.

I should have support for the energy / normal button ready for release early next week. I have it mostly working now but I have to add a new default setting for the fan.  Thanks for suggesting that!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cbo on February 13, 2015, 07:48:43 pm
Thanks So much for the app.  I have a 9850 I was thinking about the ecobee as a replacement because I wanted my Vera to talk to my stat.  You Saved the day! I hope you get the API so you can really put some work in.  Do you have a webpage so I can donate a cup of coffe or something? It is the least I can do since you saved me the cost of a new stat!! ;D


Keep up the Great work!!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 13, 2015, 08:27:54 pm
Hi cbo,

You're welcome, and glad you're enjoying the app. :)  While it would be nice to take some donations to take myy wife to a nice dinner for the time spent "away," it's not necessary.  I do sincerely appreciate the gesture though!  Instead, I would encourage you or anyone else so inclined to donate a few dollars to the charity of your choice.

I put another inquiry in about the API...but they seem to go into a black hole...we can only hope.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 16, 2015, 08:02:58 pm
Still doesn't look like V1.2 has solved the update problem.. Still not updating. (just took those pics.)



EDIT: I should add the house was at 65F also (as was set point)... :-)



Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 16, 2015, 08:49:01 pm
Still doesn't look like V1.2 has solved the update problem.. Still not updating. (just took those pics.)

Hmmm....not sure what I'm seeing there.  Based on the pics it looks like it did recover (last "login" was at 2:38 AM), and it continued refreshing.  Last refresh was at 8:45 AM.

It doesn't look like a refresh / update problem but potentially an issue of a failed command.  What was your set-point suppossed to be (and what was supposed to set it: honeywell schedule, or Vera scene?  And when?)

Quote
I should add the house was at 65F also (as was set point)... :-)

Ok, well technically you stumbled upon my secret extra-energy efficient mode. :)



Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: abolton99 on February 20, 2015, 08:08:42 pm
I'm also having an issue where it authentication fails at randoms times and requires me to type in my credentials again. Other than that its a great plugin thanks for the work! Is there any info I can provide that may help in tracking the issue down? I see in the logs where 'credAuthorized was: Unsuccessful. Error code host not found' followed by a cookie refresh at the time that connection was lost. The next line is a cookie refresh displaying the time I typed my UN/PW back in. Next is a  't.2.RefreshStatus was: Fail'. and then a getStatus was: Unsuccessful. Error Code: nil now
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 21, 2015, 12:55:47 am
Sorry, wasn't able to respond or test the system. I'm having somewhat the same problem, does not auto reconnect, and the temperatures that are showing up are old temperatures. It also shows the last update time as being before the host not found error. I confirmed I have 1.2, did a reload, reboot, power cycle, still same problem. Works (and refreshes) for a few hours then stops working until I login to the portal.

May upgrade to UI7, will let you know if that fixes things.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: guitphreak on February 24, 2015, 08:25:33 am
Same issue here. Works for almost a day, then "host not found"
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on February 24, 2015, 06:11:46 pm
I'll see if I can reproduce...though mine has been "connected for weeks.".
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: abolton99 on February 24, 2015, 07:32:24 pm
For those experiencing 'connection' issues do you have you child device (thermostats) in the same 'room' as the parent device(HTCC)? I had originally moved the parent to a room I have setup that contains devices that aren't used frequently. Timers, PLEGs that sort of thing. Helps keep my AutHomation interface a bit cleaner. I moved the parent back into the same room as the child devices and haven't noticed a connection issue since. Curious if that may have been the issue.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Brientim on February 24, 2015, 07:46:13 pm
Please note schedule maintenance 25 Feb 2015

Dear Total Connect Comfort user,
 
This is notification that Honeywell will be performing planned maintenance on the infrastructure providing our Total Connect Comfort service.
This planned outage is necessary to keep the environment secure and continue to deliver the best possible service.
 
Total Connect Comfort will not be available to use - 25th February between 08:00 - 14:00 CET  (07:00 ? 13:00 GMT)
 
Users of our connected products will not be able to issue commands remotely via the Total Connect Comfort App, or any other partner interfaces such as IFTTT.
 
Local control of the products will not be impacted by this planned maintenance and will continue to operate at they should.   You are not required to perform any actions as the system will resume without any interaction.
 
We apologise for any inconvenience caused.
 
The Total Connect Comfort Team
 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 24, 2015, 08:48:10 pm
Mine has always been in the same "room" and I have the issue.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 24, 2015, 11:33:17 pm
Mine were all in same room, and now moved to separate rooms, i had the connection issue both ways.

Did not attempt upgrade to UI7 because of horror stories.

Hardware: Vera3
My Vera 3 WAN port is plugged into my router, it keeps a consistent IP on the local network, and even when I log in remotely, all changes take place instantaneously, its just the plugin keeps getting host not found errors and fails to reconnect.

Is LUA/Luup updating handled differently in your UI7 test environment? How long is the certificate/cookie being kept? Any time variables hardcoded? My Vera is on EDT, I checked the clock because I thought it was strange that it always happens 1-2 hours after I close the browser, which makes me think all is well until it goes to re-authenticate in the background.

When authenticating manually, or when control panel is open in the browser, it works fine.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: zhenggb on February 25, 2015, 11:00:04 am
plugin seems broken since last night? The total connect comfort were down for maintenance last night, not sure if something has changed.
Basically, the authentication is successful, however the refresh is unsuccessful with error code 2.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on February 25, 2015, 08:42:46 pm
Just checked my system. Vera was giving error message. Logged directly into TCC webpage myself and found they had new Use Agreement I had to check and sign. Once I did that the Vera could get back in. Nothing wrong with your plugin. It just didn't know what to do with the new agreement prompt.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: zhenggb on February 26, 2015, 12:58:12 pm
Yeah, that does the trick. Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on February 27, 2015, 04:55:44 pm
Still have host not found and no auto reconnect. Strange. Any suggestions Joey?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: YAMS on February 28, 2015, 03:40:56 am
JoeyD --
Thank you for this plugin.  It was easy to install and was up and working within minutes. (UI5).

I'm not a techie and so I have a couple of very basic questions I'd like to ask you.

1.  Will the TCC schedule I currently use - keep working now that I am using the plugin?

2.  Currently, my thermostat has no temperature "high and low locks".  If you stand in front of the thermostat you can increase or decrease to whatever temp you want with out limits.  Can I establish limits using this plugin? 

3.  In the past I've been locked out of my thermostat if someone puts the thermostat in Vacation Mode.  Will be able to "disable" vacation mode or keep someone from using it?

4.  On the HTCC Parent Advanced tab it says "Controlled Via"  - No Parent/Please Select.  What do I select as the parent?

5.  On the Child device - did you make a decision about the Energy function with the Energy and Normal buttons?

6.  I've gotten a failed command issue.  I saw a question below -- "What was your set-point suppossed to be (and what was supposed to set it: honeywell schedule, or Vera scene?  And when?)" - could you tell me where I find this information.

Thanks for you help and patience with my questions .  I appreciate it!


Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 28, 2015, 03:32:30 pm
Did anyone bother to read the EULA?? WOW.....

I tell you what these companies are getting out of hand with the data being collected and shared..

Here is a small snippet.

Quote
HONEYWELL CONNECTED HOME PRIVACY STATEMENT This Privacy Statement covers the use of certain Honeywell products and services delivered to you via apps or web pages, including Honeywell software for use on Honeywell products and communications networks, Honeywell software allowing web-based interface and underlying functionality and access to Honeywell services, Honeywell web and mobile device applications software, Honeywell websites, and any Honeywell networks related to any of the foregoing (collectively, the ?Honeywell Services? or ?Services?) and the licensure of software products identified above, which includes computer and application software and may include associated media, printed materials, and "online" or electronic documentation, and any future versions, releases, updates, patches, error fixes and bug fixes of the above software ("Honeywell Software").  For convenience, we refer to the combination of products, software, websites, apps, and services we provide to you as the ?System.?
You understand that through your use of the System you consent to the collection and use of certain information as described in this Privacy Statement, including the transfer of this information to the United States and/or other countries for storage, processing and use by Honeywell.  Although the laws that protect personal information in those countries may differ from the laws where you live, we will take reasonable steps to ensure that your privacy is protected.  By using our websites and giving your information to us, you consent to the transfer of the data outside of your country of residence.  This Privacy Statement is subject to change and we will notify you in the event of a material change by posting such change prominently on the System; your continued use of the System after such changes will indicate your consent to the revised Statement.
Honeywell collects information relating to you and your use of the System in order to provide services and features that are easy to use and responsive to your needs. We use the term ?Consumer Information? to refer to any personally identifiable or anonymous information relating to you or your use of the System. We use Consumer Information for a wide variety of purposes, as described below:
 
  • Unless otherwise stated in this Privacy Statement, we do not share your Contact Information with anyone without your express consent.
  • ?Contact Information? means information that allows someone to identify or contact you or any user authorized by you to contact or interface with the System (e.g., your name, address, telephone number, email address).  We may use your Contact Information to market Honeywell and third-party products and services to you via various methods.
  • You can stop the delivery of future promotional emails from us by following the specific instructions in advertising emails you may receive.  These choices do not apply to the receipt of mandatory service communications that are considered part of the Services.
  • ?Service Information? means information necessary or useful to us in providing the System to you. Examples of Service Information includes, but is not limited to, your home profile (e.g., zip or postal code, home size), home system configuration (e.g., appliances monitored by the System, schedule, mode, automation, thermostat, security, and lifestyle system settings), devices you use and how/when you use them (e.g., types, model numbers, software version numbers, OS types) which will enable us to provide you with information regarding upgrades, error fixes, and software updates, and the level of Service.  This information is used by us for the operation of the System, to provide the Services, to maintain quality of the System and Services, and to provide general statistics regarding use of the System, among other things. We may also use Service Information for customer support, System restoration, and research and development activities for new products and services, and other similar purposes.  Finally, we may provide certain Service Information to selected third parties, such as our business partners, for marketing purposes, where we have obtained your specific consent.
  • ?Usage Information? related to thermostats is information including, but not limited to, actual indoor and outdoor temperature and humidity information, GPS/geolocation information, thermostat usage data such as heating, ventilating, and air-conditioning (?HVAC?) relay status, runtimes, settings, time of events in home, audio clips, HVAC diagnostic and usage logs from the HVAC system and alerts from the HVAC system, as well as information about your electrical usage relating to electrical loads monitored by the System, your overall household electrical usage, the interaction of your thermostat and third party devices and your use of the System, among other things.  ?Usage Information? related to security, video, fire or lifestyle systems is information including, but not limited to, the time of events in the home, scheduling, arm/disarm or other usage schedules, usage and alert logs, including your use of the functions and features available in the System, video or audio clips of activities in the home or business, GPS/geolocation information, and photos stored in the System.  We receive this type of information from your System and we may collect this information and other similar Usage Information for other products we may offer now or in the future.  Usage Information may also include your IP address, browser type, domain names, access times and referring website addresses and Wi-Fi service set identifier. This information is used by us for the operation of the System, to provide the Services, to maintain quality of the System and Services, and to provide general statistics regarding use of the System. We may use personally identifiable Usage Information to provide you with feedback about your energy use, your security and home automation system and controls, to help you set energy goals/budgets and track your progress, and to provide you customized content (such as tips and recommendations for reducing energy usage, home security tips, home automation advice, trend monitoring, energy analytics, etc.) and other purposes similar to the foregoing. We may also use Usage Information for customer support, System restoration, and research and development activities for new products and services, and other purposes similar to the foregoing. Finally, we may provide certain Usage Information to selected third parties, such as our business partners, for marketing purposes, where we have obtained your specific consent.
  • Sometimes we may ?anonymize? Consumer Information by removing any identifier that can be associated with your personal Contact Information.  Anonymous Consumer Information helps us develop reports and analyses about how our customers use our System and for other research such as behavioral inferences. We may publically share or sell anonymous Consumer Information and reports and analyses based on anonymous Consumer Information. We may disclose aggregated, anonymous Consumer Information, and analyses and reports derived from such information to third parties including utilities, our service providers, suppliers, advertisers, merchants, consumer and market research companies and other organizations.
  • We use tools to collect information from users of the System, including cookies and web beacons; we may use these tools to remember personal information when you use the Services in order to understand and analyze trends, to administer the System, to learn about user behavior on the System, and to gather demographic information about our user base as a whole.  We may use this information in our marketing and advertising both on and off the System.  You can change the settings to stop accepting cookies or to prompt you before accepting cookies from a website you visit.  If you decline cookies your service with the System may be slower and not optimal. We use 4 types of cookies at Honeywell: (1) Strictly Necessary, (2) Performance, (3) Functionality & Profile and (4) Advertising.
And it goes on and on and on....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on February 28, 2015, 03:35:37 pm
Oh I should add, that even agreeing to the EULA didn't fix the plug-in for me.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 01, 2015, 06:42:38 pm
I have used this plugin for weeks without an issue.  Now the refresh is failing, and the current temp is either not updating or is off a couple of degrees.   Wonder if Honeywell changed something?


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 01, 2015, 06:53:31 pm
To add to the issue, temperature changes in Vera are reflected in HTC, but changes in HTC, are not reflected in Vera.  I get an error code 2 on the refresh.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 01, 2015, 07:00:32 pm
Actually going on the web interface for HTC seemed to cure my issue after a few minutes .  Very strange.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on March 04, 2015, 08:45:21 pm
Have had several internet drops and one power outage in the last few weeks. Have to go into the plugin TCC Setup and click Login each time to get a good connection once again. Is there some refresh setting I don't have set or is this the norm? The power outage was at 2 AM and I was still disconnect at 7 AM until I did the manual login in the TCC Setup.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JoeyD on March 05, 2015, 05:58:40 pm
I noticed today that my own unit was not refreshing.  I went to honeywell's TCC site and when I logged in there I needed to accept a new licensing agreement upon logging in.  That might be the root of many people's recent refresh issues.

Go ahead and log directly into TCC, accept the licensing agreement, and then after waiting a few minutes try re-logging in again with the Vera plug-in.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ServiceXp on March 05, 2015, 06:01:44 pm
I noticed today that my own unit was not refreshing.  I went to honeywell's TCC site and when I logged in there I needed to accept a new licensing agreement upon logging in.  That might be the root of many people's recent refresh issues.

Go ahead and log directly into TCC, accept the licensing agreement, and then after waiting a few minutes try re-logging in again with the Vera plug-in.

Yep, and I just wanted to add, in my case it took almost 2 hours before I could authenticate so be patient.. ;-)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on March 05, 2015, 08:11:40 pm
JoeyD,

look back at post #84. I responded to and cleared the new agreement on Feb 25. That should be a one time deal. I just checked and it wasn't there. I think there is something else happening with the plugin refresh. This seems to happen to me whenever there is a power outage or I lose connection to the web.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 05, 2015, 09:49:39 pm
The Honeywell app didn't have the agreement to accept, and only the site had it.  It does seem that it helped although the connection isn't proven by any means.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: battars on March 06, 2015, 04:02:20 am
Accepting the agreement on the website helped for a few days, but it's back to not working for me. Everything was working smoothly prior to the maintenance night last week. Crossing my fingers for a permanent fix for this awesome plugin...having to log in each time on the Android app is annoying!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 07, 2015, 09:56:23 am
Still is working OK for me.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on March 10, 2015, 12:31:21 am
JoeyD,

Just finished updating to the latest Vera firmware (1.7.541) and now I see the Auto Mode for my thermostat once again.  I configured my RTH9580WF to be able to use the Auto Mode in the Advanced Preferences. Here are my results so far.

1. Can set my thermostat to Off Mode from Vera
2. Can set my thermostat to Cool Mode from Vera
3. Can set my thermostat to Heat Mode from Vera
4. Cannot set my thermostat to Auto Mode from Vera
5. When I set my thermostat to Auto Mode from the thermostat
   - The Auto button on the Vera indicates properly (see image)
   - The Temperature Setting on the Vera indicates 0 (see image)

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 11, 2015, 09:12:05 pm
Thanks for continuing the great effort!


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on March 25, 2015, 05:54:05 pm
Got this email from honeywell:

Quote
You are receiving this email as an alert that we have temporarily disabled your access to your Honeywell thermostat app. We?ve done so as a precaution because your account was generating an abnormally high amount of traffic and causing service disruptions
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on March 25, 2015, 06:25:59 pm
This will not end well if they continue to isolate those attempting to use outside of their circle (so to speak). Reducing (or eliminating) the polling rates may provide some longevity but once they get wise to what's occurring, all they have to do is make a change and this is done. These guys need to up their infrastructure (really, service disruptions) and more importantly, build a single API for their product line. I'm seriously done with this and will start looking for alternatives to control my mini-split systems.

Got this email from honeywell:

Quote
You are receiving this email as an alert that we have temporarily disabled your access to your Honeywell thermostat app. We?ve done so as a precaution because your account was generating an abnormally high amount of traffic and causing service disruptions
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: zamazing on March 25, 2015, 09:54:41 pm
Got this email from honeywell:

Quote
You are receiving this email as an alert that we have temporarily disabled your access to your Honeywell thermostat app. We?ve done so as a precaution because your account was generating an abnormally high amount of traffic and causing service disruptions

I received this exact same email from Honeywell today.  I'm using this plug-in on a Veralite running the latest UI7 firmware.  I'm also using Homewave on an Ipad to control the thermostats as well as the other Z-wave devices in my home.  Does anyone know whether the traffic that Honeywell is complaining about is being generated from the standalone plug-in OR possibly from Homewave?
 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: memonstatus on March 26, 2015, 12:07:09 pm
Just spoke to honeywell, they said my account generated 4200 pings over the course of one day, and they asked me to update the refresh rate to 600 seconds from the default 300 seconds. I asked about the API and they said because of the traffic being generated from 3rd party plugins, they are working to get it out sooner.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on March 26, 2015, 12:34:33 pm
Yes either implement a webhook (or equivalent) for an event or allow us to communicate with the device directly. This polling the cloud crap gets old..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Grwebster on March 28, 2015, 09:57:56 am
Mine is still working fine.  I can see that if you had a number of thermostats with lots of changes that it could be a problem. I hope Honeywell doesn't cut us off, but it does look like they are not entirely happy with what is happening.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on April 02, 2015, 10:10:07 pm
JoeyD, haven't seen you on in a while.  Wondering if there is going to be an update to your plugin?  Would like to see the Auto Mode feature working properly.  Also wondering if you have heard anything from Honeywell on the API?  I am hoping that will solve a lot of connection problems.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: LGSONE on April 09, 2015, 02:23:45 pm
Thought I'd chime in.  I am a programmer for URC's Total Control equipment.  I imported this plugin into the UI6, and now I am able to program controls into my automation system simply by using this.  I was able to see the entire command structure imported in from my ZW1 into my programming utility.

Thanks and I hope the issues with Honeywell do not kill this.  Many of us on the programming forums have been waiting for this for some time.  Honeywell needs to release the API.

Great work,

LGSONE
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: curiousB on April 15, 2015, 11:53:14 am
Joining this late. Have installed the plugin and it seems to work fine. No apparent blocking from Honeywell web site.

Trying to understand what Cycle means on the fan control. If it is some sort of duty cycle running of the blower then I'd like to use that but not sure if duty cycle is configurable or fixed. Can you point me to some clarification of Cycle? I tied setting it but a minute or so later it just reverts back to Auto

I also don't know what energy and normal buttons are for.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on April 15, 2015, 08:56:17 pm
I believe the "Fan Cycle" equates to "Circulate" on the RTH9580. The manual defines this as ... Circulate: Fan runs randomly about 35% of the time (home use only). I can set my thermostat to "Fan Cycle" in the Vera and it does change to "Circulate" on the thermostat. The fan does cycle on and off randomly. It does not revert back to Auto by itself. I am not sure how efficient Circulate really is though. You can find many opinions on the subject throughout the Internet.

I was hoping the plugin developer would set the energy and normal buttons to represent the schedule on and off, look back at reply 66 dated February 10. Haven't heard anything from JoeyD in a while. As of today, the buttons don't do anything.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: curiousB on April 17, 2015, 11:33:23 pm
Thanks. I have the lesser rth8580 thermostat so it lacks this circulate mode. I did get a scene to achieve the same thing. It is scheduled to run every 45 minutes and it turns fan from auto to on. Then 15 minutes later it reverts back to auto.


I was doing this in hopes of warming up my cold basement. Moved it up from 61 to 63 degrees but that is still 8-10 degrees cooler than main floor.


Sent from my iPad using Tapatalk
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: simple1234 on April 23, 2015, 03:41:29 pm
I am unable to change unit of temperature to F, my vera is only showing C
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: fullmoonguru on April 30, 2015, 07:58:45 am
I've only had this installed for several days but I get "user authentication failed" errors a lot of the time.  Sometimes it connects, sometimes it doesn't.  I can log in directly to the HW site fine.

The energy and normal modes will only be available (if they work - I don't know) if your thermostat has that functionality to begin with.

I am a building performance consultant.  One of the things we do is HVAC design.  Unless you have a strong reason to be cycling your system every 20 minutes or whatever, you shouldn't.  Be aware that all ducts leak.  If they are outside of conditioned space you will be exaggerating that leakage by running the air handler more, which costs money and reduces indoor air quality.  There is also heat gain/loss through the duct insulation to that space.  Finally, running the air handler blower motor costs money regardless of where the ducts are located.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: nstratton on May 13, 2015, 06:33:23 pm
I am building a new house and want to put a thermostat in every room, right now I only have 5, but plan to have 18. What is the best way to support this? My guess is that I should just get 3 Vera Lights one for each floor with 3 Honeywell accounts?

-Nathan
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Brientim on May 14, 2015, 05:11:21 pm
Nathan the issue that has already been encountered is over polling the TCC account from Vera. This resulted in account being locked out. The above was a result of multi thermostats and polling frequencies, so you may want to do a search on the forum for ore information or contact HW to see how they approached this. Constant polling could be treated as attacking TCC
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Tank on May 16, 2015, 08:35:29 am
I am building a new house and want to put a thermostat in every room, right now I only have 5, but plan to have 18. What is the best way to support this? My guess is that I should just get 3 Vera Lights one for each floor with 3 Honeywell accounts?

-Nathan

Look at radio thermostat, much less complicated.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on May 20, 2015, 10:19:46 pm
Hello all you Honeywell WiFi Thermostat users. Looks like we may have lost JoeyD. We have two options at this point. Convincing someone with programming experience to take over the app. Not sure if anyone has the skills and is reviewing this particular forum but, we could really use your help if you are. All the others who use the Honeywell WiFi thermostat and know of a programmer who might be willing to assist should reach out and ask for help. Or, we could convince MCV to add direct support from within the Vera. I am not sure how to accomplish this. I don't think MCV is interested in expanding their direct support unless they see a large user base for a given product. I assume that is why they started doing direct support for the Nest Learning thermostat. It is pretty and it is popular. The last time I had an issue and opened a ticket with support, I suggested they do direct support for Honeywell thermostats in my reply to the support email I received. The tech said they would pass the request onto the development team. Perhaps we could show our numbers by emailing support asking they start direct support. I have seen several comments in these and other forums that Honeywell has an API and should be releasing it soon. This would be the perfect time for someone to pick up on this plugin and convert it to a local connection instead of the current web login via TCC. Anyone else have any suggestions?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: BrewFixer on May 27, 2015, 07:25:16 pm
I just installed this app and it installed with no problems. However despite after entering my user name and password and, I have a login success confirmation it tells me "no devices were found"

I have 6 thermostats all visible on the TCC however I am running them through a Honeywell Gateway at Home. My system is 4 zoned all Honeywell equipment. Would this make a difference?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on May 27, 2015, 09:53:57 pm
Conceptually this should work if you can control your devices (stats) via the TCC website. Have you reloaded LUUP ? I know when I first executed the plugin I had to and it short took awhile but the child devices were eventually created.

I just installed this app and it installed with no problems. However despite after entering my user name and password and, I have a login success confirmation it tells me "no devices were found"

I have 6 thermostats all visible on the TCC however I am running them through a Honeywell Gateway at Home. My system is 4 zoned all Honeywell equipment. Would this make a difference?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: tommygear@gmail.com on June 01, 2015, 09:36:04 pm
Does it work with Honeywell TH9320WF5003?

Link to model: -->  http://www.alpinehomeair.com/viewproduct.cfm?productID=453067712&linkfrom=froogle&gclid=CjwKEAjwhbCrBRCO7-e7vuXqiT4SJAB2B5u7YKy8endr6QfZsFbHINn016NEGwR8HgnepaaXaAy0IhoCPh7w_wcB

Thanks,

Tommy
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on June 07, 2015, 12:41:21 pm
Does it work with Honeywell TH9320WF5003?

Thanks,

Tommy
The Honeywell website indicates the TH9320 works with the TCC service. Just make sure you have a C wire available to the thermostat to power the WiFi. The plugin should work with that thermostat. I have the RTH9580 and it work great.

Ken
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: blindman75 on June 13, 2015, 12:34:28 pm
I have a Honeywell WiFI thermostat that can be seen in the Honewell Total Connect Comfort portal online. But whe I add the plugin I get the following error message "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found." Any ideas on why Vera Edge cannot see the thermostat?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on July 15, 2015, 02:13:51 pm
Seems today I just noticed that message as well. Running UI5 (last release) on Vera3. Seems the temps are reporting properly (matches that of TCC) so I'll have to analyze the logs to see what's going on.

I have a Honeywell WiFI thermostat that can be seen in the Honewell Total Connect Comfort portal online. But whe I add the plugin I get the following error message "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found." Any ideas on why Vera Edge cannot see the thermostat?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on July 16, 2015, 12:00:26 am
I have a Honeywell WiFI thermostat that can be seen in the Honewell Total Connect Comfort portal online. But whe I add the plugin I get the following error message "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found." Any ideas on why Vera Edge cannot see the thermostat?
I just noticed the same thing today. I am running firmware version 1.7.619 on a VeraLite. Have same symptoms as CudaNet. Have error message at top of screen but, still able to control my thermostat.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: blindman75 on July 16, 2015, 12:08:13 am

My Vera Edge is now communicating with the thermostat.  Not sure if I did anything but I can set temperature if it's on cool or heat but not auto.

Sent from my SM-G925V using Tapatalk

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: watek2k on July 16, 2015, 07:45:05 am
Same Error.  Started 7/15/2015.

Running Firmware: 1.7.619
Plugin Version 1.2
UI 7

HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mvader on July 16, 2015, 09:32:10 am
ui 5 1.5.672

same error msg.

I did notice the other day on my honeywell app they said they were going to be doing maintenance and the servers would be down over night.. i wonder if that had something to do with this?

when i look at TCC setup in the device properties, i says it found my thermostat with the  number and everything says successful all over the place. but still that msg.. odd

logged into portal. everything looks fine.. made changes. they were reflected in vera.. made changes in vera, they were reflected back in the portal.. so as far as i can tell, this is just a msg, with no meaning.. everything works as it should.. but why the msg all of a sudden is the mystery.

edit: so having a look at this (and i may be totally wrong) I think honeywell updated LocationList.js on their site to a newer version. and looking at my beta files for this plugin. the function function getDevicesInLocation(locNumber) will need to be modified to correct that.
also some URL's don't seem to be valid any longer
local URL_DEVICE_STATUS="https://mytotalconnectcomfort.com/portal/Device/CheckDataSession/"
local URL_SET_DEVICE_STATUS="https://mytotalconnectcomfort.com/portal/Device/SubmitControlScreenChanges"
(again this is from my beta files - he may have changed this stuff in the final)
but someone who is smarter than I can take a look and comment.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: wezley69 on July 16, 2015, 06:58:43 pm
I have the same message after a luup restart.

Running firmware:1.7.1248
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: TheSummit on July 23, 2015, 02:02:57 pm
I too am getting the same error, though operation seems to be working fine. I'd still like to get rid of that error message though ;)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kendad on July 25, 2015, 04:19:07 pm
For those of you who are getting the message but, your thermostat is still connecting to Vera. I do not suggest you uninstall and reinstall the plugin. I tried that and I still get the message at top of screen and there was no thermostat device. I had to manually create the thermostat device and link it back to the parent. I am able to interface with my thermostat once again but, it doesn't appear to be refreshing properly. I can make change in my VeraLite and they appear on the thermostat. If I make changes on the thermostat they don't seem to update on the VeraLite for a long time. For instance even though the Thermostat Device indicates the current setpoint is 76, the Advanced Variable for CurrentSetpoint is 0 and for CurrentSetpoint Cool is 75. Once the system cooled the house to 76 the Advanced Variables finally updated. The RefreshInterval on the Parent is set to 300. The RefreshAfterChangeInterval is set to 15. I don't believe it waited the full 5 minutes to update regardless of which side the change was made before I did the uninstall and reinstall.

I guess mvader is correct, this will take some code modification. Anyone out there able to assist? I believe JoeyD has moved on to other priorities.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Kmitchel on July 27, 2015, 11:34:05 am
I made the mistake of uninstalling/reinstalling to add my newly installed second controller.  Ugh, now I can't access either of the devices.

Bummer, it had been working great!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Gandalf on July 28, 2015, 10:33:07 am
New to z-wave and Vera... I have a Vera Edge and only have 2 things to setup so far as I am still researching.

Really bummed when I found out that they broke this plugin!

Does anyone have instructions on how to set the thermostat up manually?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: pkcosgrove on July 31, 2015, 10:46:38 pm
Any idea why I am seeing this message
"HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found."
It is finding the thermostat and it is working. so the error message is not true
The message started appearing about a month ago
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Kmitchel on August 01, 2015, 10:08:00 am
Seems like everyone is getting the same error now.  The plug-in stopped working and the developer who wrote it is no longer active.  :(
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: turbo97se on August 03, 2015, 02:58:54 am
It really is too bad that this no longer works. I just got my Wifi thermostat and discovered the plug-in does not work. Does anyone know how to add the device manually then? That might help.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: pkcosgrove on August 03, 2015, 06:34:36 pm
Bummer
Does anyone know if Vera will pick it up. They appear to officially support the Nest.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: guitphreak on August 05, 2015, 09:01:29 am
You can try the beta from a while back. Works for me.
http://forum.micasaverde.com/index.php?topic=29938.0
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 05, 2015, 09:22:18 am
You can try the beta from a while back. Works for me.
http://forum.micasaverde.com/index.php?topic=29938.0

Which set of files did you use?  "Alpha", "Beta1" or "Version 1-0" from that thread?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 05, 2015, 09:53:43 am
I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on August 12, 2015, 08:35:49 pm
I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:
  • Completely uninstall the existing Honeywell TCC Plugin.
  • Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
  • If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
  • Reload luup
  • Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
  • Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
  • After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.

Just had my Mitsubishi splits installed, Followed these instructions and it worked great. Just wish it could do more than 3 thermostats as I have 4.

Thanks for posting.

Ken
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 12, 2015, 08:38:14 pm
I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:
  • Completely uninstall the existing Honeywell TCC Plugin.
  • Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
  • If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
  • Reload luup
  • Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
  • Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
  • After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.

Just had my Mitsubishi splits installed, Followed these instructions and it worked great. Just wish it could do more than 3 thermostats as I have 4.

Thanks for posting.

Ken

It might be worth trying to install a 2nd instance of this plugin to see if you can have 4-6.  I only have 3 thermostats so I haven't tried this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on August 13, 2015, 04:27:43 pm
Quote

It might be worth trying to install a 2nd instance of this plugin to see if you can have 4-6.  I only have 3 thermostats so I haven't tried this.

This worked , I am now able to have more than 3 thermostats. Great idea to add another instance, I often forget you can do that.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Boundary on August 17, 2015, 09:59:04 am
Follow the above listed instruction, app seemed to install, communicate and pulled down the initial readings. Since the initial contact the app in my situation does not seem to receive updates from thermostat.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 20, 2015, 07:59:03 am
Follow the above listed instruction, app seemed to install, communicate and pulled down the initial readings. Since the initial contact the app in my situation does not seem to receive updates from thermostat.

hmm...that is interesting.  I am assuming you know the refresh interval is default set to 300 seconds and you have not changed that value?

I would open the parent app, click Advanced, then Variables.  From there you can see "t.1.refreshStatus" (as well as 2 & 3).  When the app is working properly the field should say something similar to, "Successful Refresh: Thu, Aug 20, 07:50:53 AM".  You should be able to check that ever five minutes or so and see the time updated.  If it doesn't say sucessful, then maybe it will give some indication as to what error there is.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on August 20, 2015, 11:33:32 am
Thanks for all of the instructions and links on how to install the LUUP files and set this up. I specifically went and bought a Honeywell TSTAT because it would work with Vera and was quite disappointed when I could not get it set up. This really helped a lot!

Since I'm new, I read that UI7 will not allow an "Auto" temp setup. In Texas, and in many states, heat needs to run in the morning and AC in the afternoon. Is this something that can be set up as a scene rather than in the device settings?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 20, 2015, 12:23:00 pm
Thanks for all of the instructions and links on how to install the LUUP files and set this up. I specifically went and bought a Honeywell TSTAT because it would work with Vera and was quite disappointed when I could not get it set up. This really helped a lot!

Since I'm new, I read that UI7 will not allow an "Auto" temp setup. In Texas, and in many states, heat needs to run in the morning and AC in the afternoon. Is this something that can be set up as a scene rather than in the device settings?

I don't use AUTO so I wasn't aware of this issue, but I just tried it and I see what you are talking about.  There is a separate set point for the heating mode as compared to the cooling mode.   For example, the way my system is setup, when I  am "away" Vera performs the following actions:
"urn:upnp-org:serviceID:TemperatureSetpoint1_Heat" "SetCurrentSetpoint" to 62
"urn:upnp-org:serviceID:TemperatureSetpoint1_Cool" "SetCurrentSetpoint" to 78

So this way, regardless of mode I have the thermostat in, it applies both set points and I am covered whether I am heating or cooling.  I am not 100 sure if this will work properly for AUTO, but it might be worth a try.  You would just set your thermostat to AUTO either at the thermostat or using Honeywell's website.  Then, just use Vera to change the set point(s).  You could accomplish this with a scene, but PLEG may be easier/more efficient for you and give you a lot more ability to customize what you want.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: johnnboy on August 21, 2015, 02:44:24 pm
I looked into this a little and it looks like it's getting an HTTP 500 Response (Internal Error) when it tries to access:

https://mytotalconnectcomfort.com/portal/Location/GetLocationListData

Going to this page directly also gives an error so it's likely that Honeywell has made changes on their side.  The code that makes this call looks like it's just looping through the device list to get the ids.  But it seems to work fine with out it though and wasn't in the initial 1.0 version.  I could remove the calls to this function and prevent the error from showing, but it'd be nice if JoeyD was around to give a definitive answer.

~John
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on August 24, 2015, 11:47:10 pm
Thanks lingerba. There is so much to learn coming from years using Nexia.
Where did you insert the instructions for the heat and cool temps? It looks a lot easier than the scenes I threw together.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 25, 2015, 06:34:41 am
I did it using the PLEG app.  Search the forums and there is tons of information about it.  You can do the same thing by using a scene.  When you are setting up the  actions that should be taken in the scene (called "Finish the Scene" in UI7),  you choose "Advanced Editor", select "Add First Action", select your thermostat, then select the items from my post above.  You will see there are several headings in the list that match the first part in the quotes above (i.e urn:upnp-org:serviceID:TemperatureSetpoint1_Heat) then below there are the options which match the second part of the quotes (i.e. SetCurrentSetpoint).  You will actually only select the second part, just make sure it is under the proper heading.  Once you do that, you will have a field where you can enter your desired setpoint.  This is very similar in PLEG when defining an action.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Uranday on August 25, 2015, 09:13:36 am
Is there any news on a european version? I would realy like to have that running :D
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: johnnboy on August 25, 2015, 12:37:48 pm
I was able to get the error message to go away by commenting out the following lines in L_HoneywellTCC.lua:

Code: [Select]
      -- now we can make API calls to add the device thermostat information
      for i,v in pairs(tblLocations) do
--        local devResult, decText, theDevice = getDevicesInLocation(i)
--        if devResult == 1 then
--          for j,k in pairs(theDevice) do
--            tblLocations[i].Devices[j] = {Name = k}
--          end
          resultCode = 1 -- successful retrieval of location and device info
          resultText = "Success"
--        else
--          resultCode = 3
--          resultText = "Issue with processing getDevicesInLocation.  (Issue already logged)"
--        end
      end

It's a hack until a proper fix can be made but I did a quick test and everything seems to be working properly.

~John
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on August 28, 2015, 11:01:05 pm
I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:
  • Completely uninstall the existing Honeywell TCC Plugin.
  • Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
  • If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
  • Reload luup
  • Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
  • Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
  • After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.
Total Vera noob here (just received my VeraEdge today). 

This app is one of the things I had my eye on when researching automation and it's sad to find out it's no longer maintained.  I'd really like to be able to push some setpoint overrides on "away" status, while keeping the regular "occupied" schedule within native realm of TCC & thermostats.

I initially installed the app store version of this, and ran into the same error message as the last few posts.  Searching the error led me here.  The app would login to my TCC account but would not list any thermostat devices.

I followed the instructions quoted above to install previous version of the app manually, and am unfortunately stuck.

I have files installed, parent device created, and have entered the thermostat IDs for my two t-stats, causing the app to create two child thermostat devices.  Unfortunately the Vera is not pulling any info from TCC regarding either of the thermostats - it shows 0*F setpoint, mode:off, fan:off for both units.  There is no log activity showing under either unit.

I don't even know where to begin with looking at event logs on this device or other troubleshooting.  I'm a 15 year IT pro but this is all new to me - so if anyone could give me a pointer or two on troubleshooting this configuration, I might be able to fix it. :)

Any help would be most appreciated!

Edit to add: due to a LAN settings fiasco I ended up factory defaulting my Vera and reinstalling this as the first plugin on the new install.  Same behavior.  The app says it is refreshing every 5 minutes (I have tried adjusting the refresh timeout variable down to 60 from 300 and it seemingly has no effect).  The thermostat devices are not showing any data for current setpoint, mode, fan mode, or indoor temp.  I attempted to change setpoint and mode in Vera and did not see any change on Honeywell's website or at the stat.

Logfile has some errors... I can't attach here so here is a google doc.

https://docs.google.com/document/d/1YjrX4r1ssRkDxrlQLm3LR_RrVQEOQBCEF-q1dk4Lk_w/edit?usp=sharing
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on August 31, 2015, 08:22:09 am
I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:
  • Completely uninstall the existing Honeywell TCC Plugin.
  • Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
  • If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
  • Reload luup
  • Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
  • Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
  • After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.
Total Vera noob here (just received my VeraEdge today). 

This app is one of the things I had my eye on when researching automation and it's sad to find out it's no longer maintained.  I'd really like to be able to push some setpoint overrides on "away" status, while keeping the regular "occupied" schedule within native realm of TCC & thermostats.

I initially installed the app store version of this, and ran into the same error message as the last few posts.  Searching the error led me here.  The app would login to my TCC account but would not list any thermostat devices.

I followed the instructions quoted above to install previous version of the app manually, and am unfortunately stuck.

I have files installed, parent device created, and have entered the thermostat IDs for my two t-stats, causing the app to create two child thermostat devices.  Unfortunately the Vera is not pulling any info from TCC regarding either of the thermostats - it shows 0*F setpoint, mode:off, fan:off for both units.  There is no log activity showing under either unit.

I don't even know where to begin with looking at event logs on this device or other troubleshooting.  I'm a 15 year IT pro but this is all new to me - so if anyone could give me a pointer or two on troubleshooting this configuration, I might be able to fix it. :)

Any help would be most appreciated!

Edit to add: due to a LAN settings fiasco I ended up factory defaulting my Vera and reinstalling this as the first plugin on the new install.  Same behavior.  The app says it is refreshing every 5 minutes (I have tried adjusting the refresh timeout variable down to 60 from 300 and it seemingly has no effect).  The thermostat devices are not showing any data for current setpoint, mode, fan mode, or indoor temp.  I attempted to change setpoint and mode in Vera and did not see any change on Honeywell's website or at the stat.

Logfile has some errors... I can't attach here so here is a google doc.

https://docs.google.com/document/d/1YjrX4r1ssRkDxrlQLm3LR_RrVQEOQBCEF-q1dk4Lk_w/edit?usp=sharing

Open the device settings for the plugin and go to the TCC Setup page.  It shows "authorization status", that should be "Successful".  Below that, where you enter your thermostat IDs, to the right of each one should be details of when it was last refreshed.  For example, mine says, "Successful Refresh: Mon, Aug 31, 08:20:34 AM".  If you aren't seeing "successful" in both of those locations, something is wrong with your login credentials and/or thermostat IDs.  If they are both successful, then I am at a loss for what the issue could be.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on September 01, 2015, 08:35:30 pm
Open the device settings for the plugin and go to the TCC Setup page.  It shows "authorization status", that should be "Successful".  Below that, where you enter your thermostat IDs, to the right of each one should be details of when it was last refreshed.  For example, mine says, "Successful Refresh: Mon, Aug 31, 08:20:34 AM".  If you aren't seeing "successful" in both of those locations, something is wrong with your login credentials and/or thermostat IDs.  If they are both successful, then I am at a loss for what the issue could be.

Thanks for replying!  The user/pass authorization has always shown successful, and for a while I had a message next to the 1st tstat stating "successful refresh", but no temperatures (indoor or setpoint) would trickle into the child device for that tstat.  The 2nd tstat did not say anything next to it and its child device also had no info coming through.  The refresh timestamp (on the 1st tstat) did not seem to change very often and I could not push a setpoint adjustment to either tstat.

In the past couple days I've noticed (while working on other projects in Vera) it has started refreshing the current indoor temp more regularly, but setpoint still said 0.0.  Refresh interval is set to 120 and I just watched it refresh a few times while typing this post.  I'm not sure what the issue was but perhaps it was transient - my Vera being busy (odd since it's not doing much yet), or something on Honeywell's end - who knows.

I just remembered from reading this thread months ago that having the tstats in Auto heat/cool changeover mode creates issues.  I put one of my tstats in Cool mode and was able to push a setpoint to it from Vera. Success! :D  Verified with the 2nd tstat as well.

Time to go back and re-read the thread....  looking for any info on Auto mode, to see if I could accomplish the same type of functionality another way in Vera.  Texas transitional seasons have wide temp swings and Auto changeover is too convenient to lose.

(Edited to remove bit about cancelling holds programatically - info is in the first few posts and sample luup code provided is tested and working on my Vera.  I am setting this up to place temperature holds on arming security system Away, and release the holds upon disarm.)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on September 02, 2015, 03:05:08 am
Late night tinkering with the vera and tstats...

I've created a scene that pushes cool/heat setpoint holds to both tstats when the alarm is armed Away or Maximum, and another scene that removes hold on disarm (tstats revert to schedule).  Gave it a trial run earlier and it worked, takes about 20 sec after arming to change.  Tomorrow is the first real test. :)

I also think I have a strategy, albeit a rough one, to accomplish auto mode changeover using scenes that could be triggered by schedule (say every 15-30 min, or whatever is appropriate to how quickly weather in your house changes, lol).  Requires 2 scenes per tstat.  Pseudocode...

Scene 1: TStat Heat Switchover
Trigger: Schedule
Action: Set TStat mode to Heat
Lua Code: If AmbientTemp >= HeatSetPoint then abort scene (do not change mode)

Scene 2 would be the inverse, evaluating ambient temp vs cool setpoint and changing to cool if necessary.

Lua for scene 1 looks like this....

Code: [Select]
local lul_temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature",4)
local lul_setpt = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat","CurrentSetpoint",4)
if (lul_temp >= lul_setpt) then
  return false
end

That code worked (had to manually set tstat to 77 heat / 80 cool / cool mode; ambient was 76).

I'll add a conditional to check what mode the tstat is in.  No need to it to change to heat mode if it's already there - only need to change if it's on cool.  I also specifically only want to change from heat to cool or cool to heat.  I do not want vera to change it from off, in case the system was manually turned off.

I think it's pretty rough to have to code 4 objects to manipulate 2, but in my noobness to Vera that's the best and only idea I've got right now.  If someone knows a better and/or easier way, please do share. :D

This vera thingy is fun!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on September 03, 2015, 07:59:37 pm
Having dug into some documentation I found how to change thermostat operating mode in lua code, so I can do this in one scene instead of four.  Typical process for me - have an idea late at night and make it better when I'm more awake.

I did not yet find a way to trigger the scene whenever the TCC parent app performs a refresh - that would be ideal I think.  So for now, I'll set it to run on a scheduled basis.

Code below is working for me on veraedge/UI7. This example controls one thermostat (device ID 4).  Like most things you need to know the device ID of your child thermostat device and edit that in place of the 4 at the end of each line.

Code: [Select]
-- Declare and get ambient temperature, heat setpoint, cool setpoint, and operating mode

local lul_TS1_CurrentTemp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature",4)
local lul_TS1_HeatSetPoint = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat","CurrentSetpoint",4)
local lul_TS1_CoolSetPoint = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool","CurrentSetpoint",4)
local lul_TS1_ModeStatus = luup.variable_get("urn:upnp-org:serviceId:HVAC_UserOperatingMode1","ModeStatus",4)

-- evaluate conditions and change operating mode if necessary

if lul_TS1_ModeStatus == "CoolOn" and (lul_TS1_CurrentTemp < lul_TS1_HeatSetPoint) then
  luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1","SetModeTarget",{NewModeTarget = "HeatOn"},4)
elseif lul_TS1_ModeStatus == "HeatOn" and (lul_TS1_CurrentTemp > lul_TS1_CoolSetPoint) then
  luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1","SetModeTarget",{NewModeTarget = "CoolOn"},4)
end

One could perform the auto-changeover function for multiple thermostats by copy/pasting the entire codeblock for additional thermostats and editing in their device ID.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: wbvanglabbeek on September 07, 2015, 04:37:37 am
A shortcut to get this working in Europe is to create us US account and register your device on that account.

So far it works just fine for me.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: wbvanglabbeek on September 09, 2015, 04:09:32 am
Sadly, I have to report that making a us account is not the way to go for me. Setting up the account was no problem and the plugin was working fine using my new account.

Downside is, that you can only select a US or Canadian location and therefore the clock on my Evohome is automatically set to that location. 

I switched back to my European setup and hope that there will be a European version soon.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 11, 2015, 12:26:46 am
What a bummer...when I saw this app, I was so excited as I have 3 of their WiFi thermostats!! Sadly, I am getting this error. Is there any hope for making these work???

ERROR:
HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.

I am using Vera Lite: V 1.5.622

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on September 11, 2015, 01:13:53 am
What a bummer...when I saw this app, I was so excited as I have 3 of their WiFi thermostats!! Sadly, I am getting this error. Is there any hope for making these work???

ERROR:
HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.

I am using Vera Lite: V 1.5.622
Unfortunately the version of the plugin available in the Vera app market is no longer working, and its developer JoeyD appears to have moved on to other things.

There is a previous version that many of us are using, myself included.  Another member posted the instructions in reply #140 to this thread, which I've quoted below for you.

I couldn't wait for the reply.  :P So I went for it and I had success,  ;D 8)

here is what I did:
  • Completely uninstall the existing Honeywell TCC Plugin.
  • Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
  • If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
  • Reload luup
  • Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
  • Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
  • After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.

It will control your 3 thermostats.  The thermostats have to be in Cool or Heat mode; you can't use the Auto mode on the tstat.  I think my early issues with the manual install version of the app were due to auto mode; once I changed to Cool mode it has been working well.

If you want auto mode, check the info I posted a few posts above this one.  I have my tstats in Cool mode currently and I have Vera handling the changeover to Heat mode if the conditions call for it, using a scene that runs on a scheduled basis with the lua code in my post.

Good luck & let us know how it goes!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 11, 2015, 01:48:14 am
That's great news. I discovered that post as well and had a glimmer of hope ;-) I have 3 heat pumps here and they each run in cool mode or off about 340 days out of the year. It's a hot box down here in FL. That being said, the mode (system) is either cool, heat or off but the fan is always on auto. I don't use any of the programming features really I just turn the stats on or off/on as needed.

Check the attached photo and that should better explain my settings.

Also, I assume in the old app there is an option to manually enter the individual stat info? I didn't see anything like that for the current app.
Finally, I do understand that only one app will run all 3 stats, correct? Not a separate app (vera device) for each of the 3 stats?

Thanks very much for reaching out..very excited to make this work with Vera. Will absolutely keep you posted.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 11, 2015, 07:27:24 am
The old app will work fine for your application.  The "auto" that is being referred to is the auto switch over between heat and cool mode, not the fan mode.

Yes in the old app there are text boxes where you enter your thermostat ID numbers that you get from Honeywell's website per the instructions above.

The way this works is that you have one "main app" where you enter all of you Honeywell login info, thermostat IDs, etc.  That app will create "child devices" for each thermostat that you have.  So in your case you will end up with a total of four new devices in Vera (the app + 3 thermostats).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 11, 2015, 05:17:11 pm
LOVING IT!! Followed the simple instructions, all 3 stats were up and running in about 5 min without a single hitch. Can't wait to get into scenes and triggers!! This has been the missing link in my system for so long. It paid off to wait and not take the plunge on Zwave Stats. To all involved in getting it this far and working, I thank each and every one of you!! Thanks for your quick reply on the questions Lingerba!!

Vera is good, no doubt about it...what makes it great though, this community!!

Super Stocked!!  ;D ;D

BTW - for those that came in late on the thread and were wondering, this app works GREAT for controlling all 3 stats by voice with the AutHomationHD App (Android)!!

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Kmitchel on September 16, 2015, 03:34:36 pm
THANK YOU LINGERBA!!!!

Simple instructions and had it working again in less than 10 minutes!!  KUDOS to you, my friend!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on September 21, 2015, 06:36:41 pm
Has anybody had any issues with the version, listed in #140, not updating? I haven't made any changes to the base setup parameters, and I have not activated any scenes today, but the last time it polled the website was at 5:21 am today. Also, if I manually change the temp on the thermostat in Vera, the change is not actually made on the thermostat.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 23, 2015, 08:34:00 am
I have been having an issue recently where the authentication with Honeywell isn't working properly.  I see the error message int he blue bar at the top of the screen in Vera.  If I open the app in Vera, go to "TCC Setup" and click the "Update" button, it logs back in and works again.  Everything is fine for a couple of days and then the same issue happens.  I have no clue how to fix this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on September 23, 2015, 04:44:17 pm
I have been having an issue recently where the authentication with Honeywell isn't working properly.  I see the error message int he blue bar at the top of the screen in Vera.  If I open the app in Vera, go to "TCC Setup" and click the "Update" button, it logs back in and works again.  Everything is fine for a couple of days and then the same issue happens.  I have no clue how to fix this.

I echo this, both mine are showing this issue as well.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 23, 2015, 05:29:11 pm
WORKAROUND:

Had my stats up and running for about a month and then they stopped working. Seeing the same issue as you Lingerba, if I manually update in the app, it works again and clears the message.

I don't know if this will work or not as I have to wait until the app fails authentication again. I simply created a new scene, went to the ADVANCED TAB and added the following parameters shown in the photo. Find your device in the PICK A DEVICE drop down, click ADD. Next, find SetUsernamePassword in the drop down. Then, go to SCHEDULES, I told it run the scene every 4 hours, just to be safe. Let me know if this works for you guys. When I run the scene, see below for messages I get. The #HONEYWELL AC MAIN is what I call the parent device for the AC's. Also, I do notice that once I run this scene, the status is updated on that parent device.

Hope this helps!!! Keep me posted guys...Would be great to contribute to the cause!!

THIS IS WHAT I SEE IN THE VERA GUI WHEN I RUN THE SCENE SHORTLY AFTER CREATING:
HNYWL TCC: : Please wait....Re-initializing Honeywell TCC.

AFTER WAITING A FEW AND TRYING AGAIN:
AUTHORIZATION PASSED (same message I see when I manually hit the update)


SHORT VERSION:

1) Create NEW SCENE
2) ADVANCED TAB
3) Find your Parent AC Device in the PICK A DEVICE Drop Down
4) Press ADD
5) Choose "SetUsernamePassword" in the Drop Down
6) Provide your USER ID and PASSWORD
7) SCHEDULES TAB - ADD (every 4 hrs)
8) SAVE


Wait a few minutes and try RUN on the new scene to confirm working - Look for AUTHORIZATION PASSED in Vera GUI (top of web app).



Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on September 24, 2015, 06:20:45 pm
POSSIBLE WORKAROUND:

Had my stats up and running for about a month and then they stopped working. Seeing the same issue as you Lingerba, if I manually update in the app, it works again and clears the message.

I don't know if this will work or not as I have to wait until the app fails authentication again. I simply created a new scene, went to the ADVANCED TAB and added the following parameters shown in the photo. Find your device in the PICK A DEVICE drop down, click ADD. Next, find SetUsernamePassword in the drop down. Then, go to SCHEDULES, I told it run the scene every 12 hours, just to be safe. Let me know if this works for you guys. When I run the scene, see below for messages I get. The #HONEYWELL AC MAIN is what I call the parent device for the AC's. Also, I do notice that once I run this scene, the status is updated on that parent device.

Hope this helps!!! Keep me posted guys...Would be great to contribute to the cause!!

THIS IS WHAT I SEE IN THE VERA GUI WHEN I RUN THE SCENE SHORTLY AFTER CREATING:
HNYWL TCC: : Please wait....Re-initializing Honeywell TCC.

AFTER WAITING A FEW AND TRYING AGAIN:
AUTHORIZATION PASSED (same message I see when I manually hit the update)


SHORT VERSION:

1) Create NEW SCENE
2) ADVANCED TAB
3) Find your Parent AC Device in the PICK A DEVICE Drop Down
4) Press ADD
5) Choose "SetUsernamePassword" in the Drop Down
6) Provide your USER ID and PASSWORD
7) SCHEDULES TAB - ADD (every 12 hrs)
8) SAVE


Wait a few minutes and try RUN on the new scene to confirm working - Look for AUTHORIZATION PASSED in Vera GUI (top of web app).


Thank you. I set this up, but I set it on a 4 hour schedule instead. Once I created the scene and saved the scene, the parent device updated automatically. Let's see if this works.

I wonder what happened that it won't auto update anymore. Hmmm.....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on September 24, 2015, 06:53:06 pm
By the Way, Shawn, did you ever figure out the auto changeover thing? South Texas is just like Florida when it comes to heat/cool. Freezing in the morning and steaming in the afternoon.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 25, 2015, 01:11:21 am
I changed the directions I posted to 4 hrs as well...why not ;-) Working so far for me...hope it works well for you too. As for the changeover. Sorry, that doesn't apply for me. Here, I usually just leave it on one or the other modes (cool/heat) and most of the time the stats are off. The house is super energy efficient. I would think you could turn on the changeover in the actual programming on the stat but maybe that would require it to be in AUTO mode and not work with this app in Vera. Sorry, I am not familiar with the issue or the mode. Again, I just use COOL/HEAT/OFF with the fan of AUTO and all works great :-) Do keep me posted please on how this scene works for you. GL with the changeover.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 25, 2015, 12:06:17 pm
The way I decided to perform the auto change over is by using PLEG to monitor the indoor temperature.  If it ever gets below a certain point, it will change the system to Heat.  If it gets above a certain point, it changes to cool.  These points are outside of my typical heat/cool setpoints.  It is by no means perfect, but it works for me.  During times like now (Fall/Spring), I will still manually intervene since I know what the weather forecasts are and if I open the windows, etc.

Home Heat SP: 68
Away Heat SP: 66
Switch-over SP: 64

Home Cool SP: 74
Away Cool SP: 78
Switch-over SP: 80
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 26, 2015, 10:36:14 am
Is it just me???

I woke up this morning to find that I can no longer control any of my stats from the honeywell site. All appear red and show they have no connection to the internet on the honeywell site. However, the stats themselves are in fact connected to the internet just fine. I have removed each stat from the wall, wait and then reconnect, they each reconnect to the network no problem. Restarted my router, no help. Also, I can see the status of the stats in my Vera GUI, I can not contorl the stats though. The parent device in VERA shows I am successful and even after an update within the parent device, no worky. I am wondering if Honeywell is somehow blocking us at every turn? At this point, I am a bit bummed out because I no longer have remote control of any of my stats, through Vera or through the manufactures website. The mytotalconnectcomfort.com site. Is anyone else seeing these issues? Any suggestions?

As a long shot, I added another user to my honeywell account, just to make sure it wasn't blocking my current account, no luck, still all 3 stats are red.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 26, 2015, 10:48:59 am
I have issues with 2 of my 3 thermostats.  I didn't realize it until you posted this message.  I wonder if something is just messed up on their site..?  I remember seeing a message a week or so ago that their servers were schedule for maintenance, but I don't remember when that was supposed to occur.  I guess this could be related to that maybe..?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 26, 2015, 10:52:52 am
Very odd....question, had you tried the scene I mentioned above yet? THat would be a big help to isolate the problem. I added to my last post as well. Tried adding a new user to the honeywell account. Did the registrations, all that jazz, no worky though...still see red on all three
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 26, 2015, 10:55:56 am
I have not tried that scene yet.  I was planning to implement it the next time I had the authentication issue.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 26, 2015, 11:00:16 am
That's a good thing then, we now atleast know the scene is not the issue. I am going to dive in and call these folks...OH JOY!!! Last time I talked to their service, it was not so good. Not sure if they are even open on the weekend. Just a thought. Not sure if you are signed up for alerts on the honeywell site but that's how I noticed they were all down. I get emails if I lose connection ;-) Will keep ya posted, thanks for the update!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on September 26, 2015, 11:02:37 am
Sounds good.  I am hitting the road for the day so I won't be able to respond anymore after this.  I have just realized that the 1 thermostat that shows it is still working, it doesn't actually work.  Any changes I make via Vera, the website or the android app are not applied to the thermostat.  Also any changes I make at the thermostat do not show up on any of the interfaces.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 26, 2015, 11:13:24 am
WE ARE NOT ALONE IN HAVING DOWN STATS - GOOD NEWS!!!

After speaking with the Honeywell customer support, it appears Honeywell did an upgrade last night and they are having issues with many customers seeing the same issues we are seeing. SO, they said the usual sorry and give it a few hours. The good news to me, it's nothing we did or them blocking folks like us trying to get workarounds to suit our needs. Will keep ya posted if I get any update info. I too will be out later though.

Absolutely nbothing to do with my scene or us trying to interface Vera.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on September 26, 2015, 06:23:00 pm
FYI All my stats are back up and running. They must have resolved the issue on the servers.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on October 01, 2015, 05:54:58 pm
Another issue I found was that I had to change my user name in the plugin from the username I created with TCC to my registered email address with them. This worked for a while, but then the plugin didn't save my new login credentials. It took a few days but I discovered Ihad to update the username fields on both the TCC setup page AND the advanced tab.

So far, so good.

Now to figure out the auto changeover.

Lingerba, did you create that as a separate scene or is it combined with another one?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on October 01, 2015, 09:01:42 pm
I have not created this scene yet, it was ShawnInFL's idea.  I have not had the authentication issue in a couple of weeks, so I am just keeping my fingers crossed at this point.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 02, 2015, 06:02:48 pm
It might be that the reason the update was done by Honeywell (the one that knoceked out all remote access, even their own website) was in fact the same reason for our issue requiring the scene. I have had no trouble since the scene but it could be that there is in fact no need for the scene since the last update to honeywell servers.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on October 02, 2015, 09:15:20 pm
So of course right when I brag about not needing that scene, I had the login issue again.  I created the scene per ShawnInFL's instructions and it logged back in fine.  I set the interval for 4 hours.  We will see how it goes.

On a different but related note, I have applied for the Honeywell TCC API multiple times using my personal email address and I never got a response.  I applied a couple of months ago using my work email address and I actually got a response from Honeywell.  The guy I talked to was real nice and he admitted that Honeywell was keeping a tight grip on their API.  He said they were actively working on integration with multiple other vendors but he was not sure if Vera was one of them.  He went on to tell me that they were aware that people had reverse engineered the online access and were able to control the thermostats that way.  He said that was against what Honeywell was trying to do, so those accounts were suspended (people noted this with frequent poll times earlier in this thread).  Anyway, the point I am trying to get to with this is that the Honeywell guy told me that they want to push data out to other systems (i.e. Vera) rather than those systems polling for the data.  In its current state, the Vera plugin does not operate this way so I think we should expect to continue to see issues...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on October 03, 2015, 10:09:18 am
I guess Honeywell just doesn't want to relinquish control of their systems to someone else, like the end user. The reason I purchased the thermostat was to have Vera control and backup Wifi control should it lose interface with Vera.

Thank you for trying and pushing to get the API. I hope they loosen their reigns and finally grant it. So many talented developers here and its too bad they won't work with them or allow them access.

I finally had to delete the device and reload it. I hope that solves some of my issues. For some reason, the device would not allow me to update the login username and password.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on October 04, 2015, 10:24:35 am
I tried making sure that they understood that their main competitors for this (mainly the Nest) were a lot more open with their API.  Honeywell didn't seem to care...

I got mine for the same exact reasons why you are mentioning.

Since I just activated the re-login scene, we will see how it goes for me.  I'll let you know if I have any issues.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spentnickles on October 06, 2015, 05:30:11 pm
Awesome suggestions on reverting back to Ver. 1.0.  I want say that it worked for me, adding device ID and I'm back to being able to see/use my thermostats, when I had to reload the app after a full reload about a month ago...  I was getting frustrated till I dug through this, found lingerba's and Joey's old notes and followed what they said.  I'm not a programmer (actually an Exchange Admin who deals a lot with powershell), but I might play around with this to grab the newer interface (which I liked better) - if I can make it happen...  I've missed having the ability to control my tstats from Vera.  Thanks for helping me get it back...   :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on October 15, 2015, 10:02:01 am
Well, mines back down again. I deleted and reinstalled the device and it worked for a while, but can't control the Tstat from Vera or get updates unless I manually update the login credentials. I even changed the refresh time to 15 minutes.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on October 19, 2015, 04:58:21 pm
same here lost functionality. What a shame :( to think I wasted nearly a grand so I could control them from vera.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 19, 2015, 05:04:29 pm
All 3 of mine are working just fine...have you tried my scene?

SEE REPLY #169 for photos if needing additional explanation

SHORT VERSION:

1) Create NEW SCENE
2) ADVANCED TAB
3) Find your Parent AC Device in the PICK A DEVICE Drop Down
4) Press ADD
5) Choose "SetUsernamePassword" in the Drop Down
6) Provide your Honeywell USER ID and PASSWORD
7) SCHEDULES TAB - ADD (every 4 hrs)
8) SAVE


Wait a few minutes and try RUN on the new scene to confirm working - Look for AUTHORIZATION PASSED in Vera GUI (top of web app).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on October 20, 2015, 10:54:40 am
Shawn, it's sad that we have to resort to this as Honeywell isn't working with the end user at this time. I had set the scene up earlier, but without the username/password action. I will try and see if it works.

I'm about ready to replace the Honeywell Tstat with another, dedicated zwave one if this doesn't work. The whole idea was to have one controller running the house and Honeywell does not like to play nice.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 20, 2015, 10:56:57 am
I hear ya but would save my money for now. The scene and plug in seems to be working fine. For now at least :-) GL
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on October 20, 2015, 11:01:50 am
Honestly, I think the issue is with the fact that we are using the old plug-in.   I think (guessing) that the old plug-in is not handling a failed login attempt properly and failing there rather than trying to login again.  So I don't fully blame Honeywell for this specific issue.  However, if Honeywell would be more helpful, the newer version of the app would still be working so I agree I wish they would get their act together.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 20, 2015, 11:06:02 am
I never got to use the newer app, for me, I'm just super happy I can control all three stats with my voice and add them to my many scenes. Working great here, just hope that don't cut us off at the pass LOL
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on October 20, 2015, 04:12:02 pm
I am using UI7 and your scene does not seem to have the same options as shown in your pics
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 20, 2015, 04:20:02 pm
Sorry, I am on you UI5. Perhaps another member can assist you with UI7. This solution seems to work very well on UI5.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on October 20, 2015, 04:30:40 pm
I am UI7 and it works fine.  I will not be in a position to help you much for a couple of days, but I just wanted to reply and confirm that it does indeed work with UI7.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Scoutmedic on October 21, 2015, 12:10:33 pm
Yesterday, I created the scene and set it to update the username/password every hour. I also changed the parameters for the thermostat device to poll every 15 minutes thinking this would not be too frequent. It was working fine last night, but when I got up this morning to check and the interface device named HONEYWELL APP, it said the refresh was successful, but I could not adjust the temperature in the Vera web interface from the device from a scene or from a third party app.  :-\

I'm just about to go straight z-wave and forget the web interface Tstat. Too much hassle to get it to work reliably.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 21, 2015, 12:19:37 pm
Why you are changing variables on something that was already working fine for others? Stick to the working solution is my suggestion. You were not working...we provided a working solution...instead of taking the working route you go it alone and it's not working. Process of elimination could be applied here....

If it ain't broke...don't fix it...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on October 21, 2015, 01:26:41 pm
I just installed this plugin but when I set the TCC I'm getting the following error in UI7. I can see and set my device in MTC for whatever reason this plugin isn't picking it up.

Honeywell TCC Authorization passed, but no devices were found
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 21, 2015, 01:33:26 pm
I use UI5, not 7...that being said, I hope you did not use the plugin on the mios site. The only way it seems to work at this point is to use these two posts together. One will get you the working app, the other is a needed patch (scene) that will keep the connection going between the Vera and the Honeywell servers. GL

WORKING PLUGIN METHOD:
Completely uninstall the existing Honeywell TCC Plugin.
Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
Reload luup
Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.

PATCH (scene) needed to maintain connection between Vera and Honeywell servers:
SEE REPLY #169 for photos (UI5) if needing additional explanation

SHORT VERSION:

1) Create NEW SCENE
2) ADVANCED TAB
3) Find your Parent AC Device in the PICK A DEVICE Drop Down
4) Press ADD
5) Choose "SetUsernamePassword" in the Drop Down
6) Provide your Honeywell USER ID and PASSWORD
7) SCHEDULES TAB - ADD (every 4 hrs)
8) SAVE


Wait a few minutes and try RUN on the new scene to confirm working - Look for AUTHORIZATION PASSED in Vera GUI (top of web app).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on October 21, 2015, 01:44:54 pm
Shawn, thanks for the detailed info. I followed the process got authorization passed but got this error when updating the id

Unsuccessful. Error code: 500

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 21, 2015, 01:58:14 pm
My plesaure...this was a working plugin but has kinda fallen from grace and this is all we have to work with at this point. Not sure what that error means but this method works for me bud...perhaps another member can give some advice. Make sure you have the correct thermostat ID numbers??
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on October 21, 2015, 02:01:27 pm
My plesaure...this was a working plugin but has kinda fallen from grace and this is all we have to work with at this point. Not sure what that error means but this method works for me bud...perhaps another member can give some advice. Make sure you have the correct thermostat ID numbers??
You nailed it, my system showed a different # depending on the screen. Perhaps one is my user ID the other is my tstat id. The correct one showed up only AFTER i went into the Tstat.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on October 21, 2015, 06:21:17 pm
Kick A$$...Glad to hear it's working for you...It's a real bonus to have the stats in Vera...Enjoy making/including in your scenes!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ptarac on October 22, 2015, 04:48:14 pm
I'm looking for a solution that will allow me to control a large number (more than 10) thermostats on radiators. I wonder what the maximum number of thermostats type HR92 (http://www.vesternet.com/honeywell-evohome-radiator-zone-kit) (http://(http://www.vesternet.com/honeywell-evohome-radiator-zone-kit)) can control this plugin?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Javi767 on October 31, 2015, 08:43:01 pm
Can someone pls help me. 
I installed the Honeywell APP. I have the module install and communicating with Thermostat. I created an account with Honeywell and it works find with my thermostat. But I cannot get it to work with vera. I get the following message:
"Honeywell TCC Authorization passed, but no devices were found."
Obviously it's have working... but but finding the device.  I try to enter the IP and MAC under

name
Honeywell Total Connect Comfort
device_type
urn:schemas-joeyd-com:device:HoneywellTCC:1
altid
ip
192.168.0.114
mac
00D02D*******
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on November 08, 2015, 08:02:28 am
Can someone pls help me. 
I installed the Honeywell APP. I have the module install and communicating with Thermostat. I created an account with Honeywell and it works find with my thermostat. But I cannot get it to work with vera. I get the following message:
"Honeywell TCC Authorization passed, but no devices were found."
Obviously it's have working... but but finding the device.  I try to enter the IP and MAC under

name
Honeywell Total Connect Comfort
device_type
urn:schemas-joeyd-com:device:HoneywellTCC:1
altid
ip
192.168.0.114
mac
00D02D*******

Did you install the plugin from the "app store" ? If so that does not work. Uninstall it and follow the instructions in post #202 a few posts above yours. That method works fine.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ShawnInFL on November 08, 2015, 08:16:27 am
WORKING PLUGIN METHOD:

Completely uninstall the existing Honeywell TCC Plugin.
Install all of the files form the file called "Version 1-0 RC.zip" that is on page 7 of the above referenced thread or here: http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790
If you need help on how to install these files, the instructions are on page 2 of the above referenced thread or here: http://forum.micasaverde.com/index.php/topic,29938.msg212975.html#msg212975
Reload luup
Open your new device and provide your Honeywell TCC login credentials.  Make sure you can successfully log in.
Manually enter your Thermostat ID numbers.  If you don't know these, you can get them from going to www.mytotalconnectcomfort.com, login and select one of your thermostats.  You will see a 6-digit number at the end of the URL on your browser.  This is the Thermostat ID.
After you enter these numbers in and click the Update IDs button, the thermostats will be added.  Please note that in Vera, the Thermostat names will just be the ID numbers, but you can manually change this.

Overall, this version of the app works fine.  It is a lot more "manual", than the other version, but it gets rid of the error message and will work fine for those who didn't already have the app set up when the issue started.  Also, this version of the app is limited to 3 Thermostats...just be aware of that if you have more than 3.

PATCH (scene) needed to maintain connection between Vera and Honeywell servers:
SEE REPLY #169 for photos (UI5) if needing additional explanation

SHORT VERSION:

1) Create NEW SCENE
2) ADVANCED TAB
3) Find your Parent AC Device in the PICK A DEVICE Drop Down
4) Press ADD
5) Choose "SetUsernamePassword" in the Drop Down
6) Provide your Honeywell USER ID and PASSWORD
7) SCHEDULES TAB - ADD (every 4 hrs)
8) SAVE


Wait a few minutes and try RUN on the new scene to confirm working - Look for AUTHORIZATION PASSED in Vera GUI (top of web app)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: goldriver on November 08, 2015, 10:26:06 am
I am on UI7, I've used the version 1 method as described by many BUT I have an issue where in Ui7 there is not advance scene so I have not find a way to set a scene where I can select the TC device with user password and have it retry the login every 4 hours.

Anyone have a solution for creating the auto relog scene in UI7 ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on November 08, 2015, 10:34:58 am
I am on UI7, I've used the version 1 method as described by many BUT I have an issue where in Ui7 there is not advance scene so I have not find a way to set a scene where I can select the TC device with user password and have it retry the login every 4 hours.

Anyone have a solution for creating the auto relog scene in UI7 ?

Just create a scene to do something insignificant, once created go in and edit it, select advanced Editor from the edit menu and you can then get to all the advanced options. Here you will be able then set the setting to set password and login information as you wish.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: goldriver on November 08, 2015, 10:42:57 am
Hi mystic860, thanks for the reply, I tried what you mentionned BUT the problem is that I can't see the mother device (honeywell TCC), I only can see the thermostat itself when I go in scene so I can't set the user/password...

Note that I do see the parent device if I go in the "Device" tab

p.s. is it possible that I don't see the parent device in scenes because the device was added manually as per post 169 propose ???
 if so how could I have it appear in the scene device list ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on November 08, 2015, 10:58:29 am
Create a scene to do something insignificant and select finish.
Once Finished it should be in your scene list, select Edit.
A new menu will present, under Step 3: there will be an option called Advanced Editor, select this.
in this view select Add action, here its kind of hard to see right away but there will be a new item saying please select (a drop down menu). In this menu you will be able to select the parent device. Once you select the parent device, you will see another drop down where you can then select the property to reset logon and password.


Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: goldriver on November 08, 2015, 11:05:18 am
You just madge my day, Thanks a lot, I'm new to UI7 so now I now where to find the advance feature in scenes !

Now that everything is set, let It run and see how It reacts, let's hope that Honeywell don't change other things
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mystic860 on November 08, 2015, 11:15:47 am
for what its worth I run every thing as described but I do not have to run this authentication fix, it just works, perhaps I am lucky. I would try it without unless you find you need to.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on November 09, 2015, 08:06:33 am
for what its worth I run every thing as described but I do not have to run this authentication fix, it just works, perhaps I am lucky. I would try it without unless you find you need to.

Just give it a couple of days (maybe a week) and you will see that you will need this authentication fix.  I too thought I was in the clear, but one random day it just stopped working.

My theory is that the early version of the app does not "try again" once authentication fails.  It just stays in the failed state until manual user intervention takes place (or this scene to re-login). 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Kmitchel on November 11, 2015, 02:20:02 pm
Is it possible to use this plugin to change the temperature by 3 degrees?  I'd like to have a scene that when executed, would decrease the temp by x-3 where x is the current temperature setting.

 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on November 12, 2015, 02:03:19 pm
Is it possible to use this plugin to change the temperature by 3 degrees?  I'd like to have a scene that when executed, would decrease the temp by x-3 where x is the current temperature setting.

Yes this can be done.  The problem is, I can't tell you how to do it (not very helpful I know...I'm sorry).  I had asked a similar question here: http://forum.micasaverde.com/index.php/topic,33188.msg242807 and if you read the response that RichardTSchaefer gave, I think that will help you out.  What I ended up doing was just using static values.  It works fine for me but the only drawback is that if manually change the setpoint on the thermostat, the logic has no way of knowing this and will override it with the static values.  It's not that hard for me to change the logic if I need to.  Good luck!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MrBoo on November 18, 2015, 02:02:44 pm
I was very excited to see that people were able to get this working.  I followed the detailed instructions and it worked!

But..  I soon found that having the device set up and working caused my Vera to become unresponsive for long periods of time when it reloaded.  I had to take the device out (but left the files in) for now.  I am probably the only person left on UI6  LOL  I'll give it another go when I upgrade to UI7.  I had issues when I first upgraded and had to roll it back.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on November 20, 2015, 01:39:23 am
don't graded to UI5 and plugin no longer works. Tried to uninstall and reinstall using the LUUP upload method but device isn't coming back. Installing through MIOS provided the device and can authenticate but it can't find my device. Not sure where to put the device ID in within UI5
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spydox on November 22, 2015, 10:22:37 am
I have the HONEYWELL TOTAL CONTROL and Vera UI7. It used to work, but today I could no longer control it from the UI. I've now re-installed the AP 2X, waiting for it to say it was done.

I tried entering the IP (and tried leaving it blank), entered the credentials. I can see the HTC and control it from the Honeywell website and my phone.

But all it says on the TCC SETUP page is:

Authorization Status:Successful
THERMOSTATS FOUND:
and NONE are listed. I've refreshed several times- none appear.

I hit refresh many times and it says RE-initializing devices, then the message vanishes and no devices are present.   ???

I dunno what to do I've tried everything I can think of...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on November 22, 2015, 10:34:18 am
You need to go back and read this threat from post #140 - forward.

http://forum.micasaverde.com/index.php/topic,30125.msg243786.html#msg243786
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spydox on November 22, 2015, 11:02:10 am
thanks Ill try that. I tried the *download 6 files manually* thread but that failed too....  :P
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spydox on November 22, 2015, 11:26:16 am
That all went pretty well. #4 was a little dicey:

4) I typically reload luup at this point for good measure:
     - Devices --> The device you just added --> Click on ">", then click on Advanced and scroll to the bottom.  Click on "Reload Engine"

SHOULD read (at least in UI7):

4) I typically reload luup at this point for good measure:
     - Devices --> The device you just added --> Click on ">", then click on Advanced Tab -> Go to NEW SERVICE tab ->  Click on "Reload Engine"
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spydox on November 22, 2015, 11:30:09 am
Thanks Mr JoeyD I finally have the Honeywell back and looking good.  ;D
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: agflight85 on November 25, 2015, 01:03:19 pm
I recently installed this plugin, and having problems with logging into TCC.  It keeps giving me Unsuccessful. Error code 200.  I've verified my credentials, and I don't have anything hidden like trailing spaces or such.  However, it's notable that my email address used to log into TCC has a plus sign in it.  Any chance that's the problem?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on November 28, 2015, 12:38:50 pm
Almost. Running 1.7.1598 Vera Edge.
Installed the beta. Got the parent and child devices, but couldn't control it. The thermo is id 40 with a parent of 38. Also, "Continuous" fan isn't showing as a possibility, but that's what I have my thermostat set at. No controlling of the thermo though.

Read that the plug-in was working, so I tried that next. No luck. Read that I shouldn't have done that so I uninstalled the plug-in and went to Version 1-0 RC.zip. Still no luck controlling the thermo.

I do have the Honeywell scene created and it is working. My credentials are good, but the thermo doesn't show actual inside temp and no control. Am I missing something? Are others able to control their units?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on November 30, 2015, 10:19:03 am
Almost. Running 1.7.1598 Vera Edge.
Installed the beta. Got the parent and child devices, but couldn't control it. The thermo is id 40 with a parent of 38. Also, "Continuous" fan isn't showing as a possibility, but that's what I have my thermostat set at. No controlling of the thermo though.

Read that the plug-in was working, so I tried that next. No luck. Read that I shouldn't have done that so I uninstalled the plug-in and went to Version 1-0 RC.zip. Still no luck controlling the thermo.

I do have the Honeywell scene created and it is working. My credentials are good, but the thermo doesn't show actual inside temp and no control. Am I missing something? Are others able to control their units?

I have verified that I can control my units.  It sounds like your thermostat ID number(s) are not correct.  In the main Honewell app, on the TCC Setup tab, verify that your thermostat ID numbers are correct and that they show a "successful" refresh.  If you are unsure what your thermostat ID numbers are, logon to www.mytotalconnectcomfort.com.  When you click on a specific thermostat, the 6 digit ID number is shown at the end of the URL.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on November 30, 2015, 10:21:30 am
I recently installed this plugin, and having problems with logging into TCC.  It keeps giving me Unsuccessful. Error code 200.  I've verified my credentials, and I don't have anything hidden like trailing spaces or such.  However, it's notable that my email address used to log into TCC has a plus sign in it.  Any chance that's the problem?

Are you installing the version of the plugin from the app store or are you downloading and manually installing the older version of the app?  The version on the app store does not work.  To manually add the older version, you need to go back and read this threat from post #140 - forward. http://forum.micasaverde.com/index.php/topic,30125.msg243786.html#msg243786
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on December 01, 2015, 02:16:32 pm
Quote
Quote from: agflight85 on November 25, 2015, 10:03:19 am
I recently installed this plugin, and having problems with logging into TCC.  It keeps giving me Unsuccessful. Error code 200.  I've verified my credentials, and I don't have anything hidden like trailing spaces or such.  However, it's notable that my email address used to log into TCC has a plus sign in it.  Any chance that's the problem?

Very similar problem here.  I installed the older version of the plugin, but is does not change anything.  I don't have a plus sign in my adress. 
The credentials work in this site: https://europe.mytotalconnectcomfort.com/Locations (https://europe.mytotalconnectcomfort.com/Locations)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 01, 2015, 07:55:37 pm
Quote
Quote from: agflight85 on November 25, 2015, 10:03:19 am
I recently installed this plugin, and having problems with logging into TCC.  It keeps giving me Unsuccessful. Error code 200.  I've verified my credentials, and I don't have anything hidden like trailing spaces or such.  However, it's notable that my email address used to log into TCC has a plus sign in it.  Any chance that's the problem?

Very similar problem here.  I installed the older version of the plugin, but is does not change anything.  I don't have a plus sign in my adress. 
The credentials work in this site: https://europe.mytotalconnectcomfort.com/Locations (https://europe.mytotalconnectcomfort.com/Locations)

I won't swear to it, but I am pretty sure this plugin only works with the US-based thermostats.  https://www.mytotalconnectcomfort.com/portal
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on December 02, 2015, 02:11:58 am
That would be my guess too and what I was afraid for, that's why I mentioned the url...  :(

agflight85: Europe or US?

Thanks for the help.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 02, 2015, 08:31:18 am
That would be my guess too and what I was afraid for, that's why I mentioned the url...  :(

agflight85: Europe or US?

Thanks for the help.

You can try using this updated LUA file.  The only thing I did was I replaced all of the instances of "https://mytotalconnectcomfort.com/" with "https://europe.mytotalconnectcomfort.com/".  I have no clue if this will work, but it might be worth a try.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on December 02, 2015, 01:21:21 pm
Thanks for your help.  For the moment, I get GET_LANG(system_error,System error) :device 233: fail to load implementation file L_HoneywellTCC_json.lua

But I have the impression this is an old device.  This weekend I have more time, I will clean all old devices / files and try to start from scratch.

I will keep you posted.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 02, 2015, 03:44:16 pm
It appears that IFTTT has a Honeywell TCC channel. Has anyone tried to use that in tandem with the Connect Maker ? I haven't had a chance to explore this idea just yet but I did add 'Connect Maker' (within IFTTT) and was immediately generated an API key. Everything seems to occur via web hooks and web requests. It maybe worth something or nothing. It just that I do see this plugin (one day) eventually not working at all for various reasons unless another developer takes it over.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 03, 2015, 10:27:22 am
It appears that IFTTT has a Honeywell TCC channel. Has anyone tried to use that in tandem with the Connect Maker ? I haven't had a chance to explore this idea just yet but I did add 'Connect Maker' (within IFTTT) and was immediately generated an API key. Everything seems to occur via web hooks and web requests. It maybe worth something or nothing. It just that I do see this plugin (one day) eventually not working at all for various reasons unless another developer takes it over.

Good catch and the Honeywell TCC is new with IFTTT.  I know there are some hacks to get Vera to work with IFTTT, but nothing official.  If Vera ever gets setup with IFTTT, that would be great.  (side note, nearly every other home automation hub has been setup with IFTTT.)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 03, 2015, 11:37:47 am
Vera integration would certainly make things easier but I'm trying to only use Vera as a z-wave controller since I've moved to openLuup for pretty much everything else. I'll post back once I've had an opportunity to dig into this 'Connect Maker'.

It appears that IFTTT has a Honeywell TCC channel. Has anyone tried to use that in tandem with the Connect Maker ? I haven't had a chance to explore this idea just yet but I did add 'Connect Maker' (within IFTTT) and was immediately generated an API key. Everything seems to occur via web hooks and web requests. It maybe worth something or nothing. It just that I do see this plugin (one day) eventually not working at all for various reasons unless another developer takes it over.

Good catch and the Honeywell TCC is new with IFTTT.  I know there are some hacks to get Vera to work with IFTTT, but nothing official.  If Vera ever gets setup with IFTTT, that would be great.  (side note, nearly every other home automation hub has been setup with IFTTT.)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: N2wind on December 04, 2015, 02:09:07 am
I have a HoneyWell Thermostat that isn't wifi but Redlink.  I've had it for years.  I cannot get the plugin to recognize it even though it shows up when I log into the Total Connect network.  One thing that I see in several post, it refers to a 6 digit thermostat ID but mine is just a 4 digit one.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 04, 2015, 08:29:43 am
I have a HoneyWell Thermostat that isn't wifi but Redlink.  I've had it for years.  I cannot get the plugin to recognize it even though it shows up when I log into the Total Connect network.  One thing that I see in several post, it refers to a 6 digit thermostat ID but mine is just a 4 digit one.

I just want to clarify, when you say 4 digit, are you talking about the "CRC" which is alpha-numeric?  If so, that is not the ID number being used.  To get the proper ID number, you have to get to the webpage where you can make changes to a a specific thermostat.  Then, look at the URL which should be something like https://www.mytotalconnectcomfort.com/portal/Device/Control/123456?page=1, where the "123456" is your thermostat ID.

If you are looking at the correct place and it is indeed only a four digit number, that must be something different with Redlink.  Have you tried adding zeros to the beginning or end of the ID when you enter it in Vera to see if that works?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: N2wind on December 04, 2015, 08:48:39 am
I have a HoneyWell Thermostat that isn't wifi but Redlink.  I've had it for years.  I cannot get the plugin to recognize it even though it shows up when I log into the Total Connect network.  One thing that I see in several post, it refers to a 6 digit thermostat ID but mine is just a 4 digit one.

I just want to clarify, when you say 4 digit, are you talking about the "CRC" which is alpha-numeric?  If so, that is not the ID number being used.  To get the proper ID number, you have to get to the webpage where you can make changes to a a specific thermostat.  Then, look at the URL which should be something like https://www.mytotalconnectcomfort.com/portal/Device/Control/123456?page=1, where the "123456" is your thermostat ID.

If you are looking at the correct place and it is indeed only a four digit number, that must be something different with Redlink.  Have you tried adding zeros to the beginning or end of the ID when you enter it in Vera to see if that works?
Yes mine is only 4 digits. What I have done is delete it hoping that it will reassign a new 6 digit ID.if not I will try some 0s.

Sent from my Nexus 6 using Tapatalk

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on December 05, 2015, 01:22:12 pm
Thanks for your help.  For the moment, I get GET_LANG(system_error,System error) :device 233: fail to load implementation file L_HoneywellTCC_json.lua

But I have the impression this is an old device.  This weekend I have more time, I will clean all old devices / files and try to start from scratch.

I will keep you posted.

I deleted all the files and devices related to the TCC and created everything again.  But now I have 'Unsuccessful. Error code 404' when I fill in the credentials in the TCC device.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on December 05, 2015, 11:52:50 pm
I have installed the plug in and it gives me an error :  'HNYWL TCC Authentication passed but no devices were found'.  I am able to access the thermostat through Honeywell site.  Can you help me please ?  Regards.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 06, 2015, 10:26:52 am
I have installed the plug in and it gives me an error :  'HNYWL TCC Authentication passed but no devices were found'.  I am able to access the thermostat through Honeywell site.  Can you help me please ?  Regards.

Are you installing the version of the plugin from the app store or are you downloading and manually installing the older version of the app?  The version on the app store does not work.  To manually add the older version, you need to go back and read this threat from post #140 - forward. http://forum.micasaverde.com/index.php/topic,30125.msg243786.html#msg243786
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on December 07, 2015, 12:59:09 am
Hi Lingerba,

You are really a life saver.  Thank you very much especially for your prompt and precise response.  I am a newbie and this is my first experience.  It was really as smooth as silk.  Through your guidance.  I got it through. Regards,
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: flyride on December 07, 2015, 08:45:54 am
I have had this working for a few weeks now, but it keeps coming up with this blue box at the top every few days:
HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup

Then when I go to the device it says:
Unsuccessful. Error code: 503

To fix the problem I simply re-enter the login details and hit 'Update' and it comes back:
Authorization Status:Successful

Then it will work for 3 or 4 days and crap out again and I have to go back in and re-save the details.  I have it set to adjust the temperature twice a day and it works well until this login failure, and then it will not work again until I  re-enter and save the login details again.

Any suggestions would be greatly appreciated!  Thanks in advance!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mvader on December 08, 2015, 01:57:40 pm
Any suggestions would be greatly appreciated!  Thanks in advance!

There is a "fix" documented in the last few pages
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 10, 2015, 05:36:02 pm
Almost. Running 1.7.1598 Vera Edge.
Installed the beta. Got the parent and child devices, but couldn't control it. The thermo is id 40 with a parent of 38. Also, "Continuous" fan isn't showing as a possibility, but that's what I have my thermostat set at. No controlling of the thermo though.

Read that the plug-in was working, so I tried that next. No luck. Read that I shouldn't have done that so I uninstalled the plug-in and went to Version 1-0 RC.zip. Still no luck controlling the thermo.

I do have the Honeywell scene created and it is working. My credentials are good, but the thermo doesn't show actual inside temp and no control. Am I missing something? Are others able to control their units?

I have verified that I can control my units.  It sounds like your thermostat ID number(s) are not correct.  In the main Honewell app, on the TCC Setup tab, verify that your thermostat ID numbers are correct and that they show a "successful" refresh.  If you are unsure what your thermostat ID numbers are, logon to www.mytotalconnectcomfort.com.  When you click on a specific thermostat, the 6 digit ID number is shown at the end of the URL.

Yes, the ID number has been set correctly. I reverted to a TRANE thermostat, but I'd prefer to use the Honeywell, so I'm giving it another try.
I went ahead and recreated the whole set up and the result is the same, I still cannot control the unit, not will it report the current indoor temp.
Attached are pics of the device settings. Scratching my head since I followed all the directions precisely (or so I think).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 10, 2015, 06:05:52 pm
Yes, the ID number has been set correctly. I reverted to a TRANE thermostat, but I'd prefer to use the Honeywell, so I'm giving it another try.
I went ahead and recreated the whole set up and the result is the same, I still cannot control the unit, not will it report the current indoor temp.
Attached are pics of the device settings. Scratching my head since I followed all the directions precisely (or so I think).

I am now scratching my head too.  It looks like you do have everything setup correctly.  I just want to verify that the actual thermostat device in Vera was automatically created once you entered the ID numbers in in the parent app?

In your actual thermostat device in Vera, verify the following items below.  Go to Advanced > Params, I have listed what the items should be.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 10, 2015, 06:13:59 pm

I am now scratching my head too.  It looks like you do have everything setup correctly.  I just want to verify that the actual thermostat device in Vera was automatically created once you entered the ID numbers in in the parent app?

In your actual thermostat device in Vera, verify the following items below.  Go to Advanced > Params, I have listed what the items should be.

  • device_type: urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1
  • altid: TCC_XXXXXX where XXXXXX is your thermostat ID number and matches the number you have entered in the parent app
  • id_parent: XXX where XXX is the device ID number of your parent app
  • device_file: D_HVAC_ZoneThermostat1.xml
  • id: XXX can be any number but should be 1 higher than the parent ID number (unless you added devices between installing the parent app and creating the child devices
  • device_json: D_HVAC_ZoneThermostat1.json

Yes, it was auto-created. I was going to include a pic in my last post, but didn't . Here they are now. 44 is the parent, 45 is the child.
Thanks in advance - I wouldn't even be entertaining this thermostat without the good help of those with the skills!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 10, 2015, 08:22:22 pm

I am now scratching my head too.  It looks like you do have everything setup correctly.  I just want to verify that the actual thermostat device in Vera was automatically created once you entered the ID numbers in in the parent app?

In your actual thermostat device in Vera, verify the following items below.  Go to Advanced > Params, I have listed what the items should be.

  • device_type: urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1
  • altid: TCC_XXXXXX where XXXXXX is your thermostat ID number and matches the number you have entered in the parent app
  • id_parent: XXX where XXX is the device ID number of your parent app
  • device_file: D_HVAC_ZoneThermostat1.xml
  • id: XXX can be any number but should be 1 higher than the parent ID number (unless you added devices between installing the parent app and creating the child devices
  • device_json: D_HVAC_ZoneThermostat1.json

Yes, it was auto-created. I was going to include a pic in my last post, but didn't . Here they are now. 44 is the parent, 45 is the child.
Thanks in advance - I wouldn't even be entertaining this thermostat without the good help of those with the skills!

Haha, I don't know about "skills".  :)  So far I haven't been much help for you.

I don't know what to tell you.  It looks like you have everything setup correctly.  The last thing that I can think to ask you is whether you uploaded all six files when you were installing/reinstalling the app manually.  (D_HoneywellTCC.json, D_HoneywellTCC1.xml, I_HoneywellTCC1.xml, L_HoneywellTCC.lua, L_HoneywellTCC_json.lua, S_HoneywellTCC1.xml) Maybe, if you haven't already, download a new/fresh copy of the zip file containing these files from post #140 and try again?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 10, 2015, 08:33:34 pm
Haha, I don't know about "skills".  :)  So far I haven't been much help for you.

I don't know what to tell you.  It looks like you have everything setup correctly.  The last thing that I can think to ask you is whether you uploaded all six files when you were installing/reinstalling the app manually.  (D_HoneywellTCC.json, D_HoneywellTCC1.xml, I_HoneywellTCC1.xml, L_HoneywellTCC.lua, L_HoneywellTCC_json.lua, S_HoneywellTCC1.xml) Maybe, if you haven't already, download a new/fresh copy of the zip file containing these files from post #140 and try again?

Well, at least you've given me some hope - if it's working for some it must be a setting somewhere.

Yes, I've redownloaded the files from here (post 140): http://forum.micasaverde.com/index.php?action=dlattach;topic=29938.0;attach=21790

...and can confirm they have all been uploaded correctly.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rstrouse on December 10, 2015, 08:49:15 pm
Guys,

I don't use this thermostat but it seems to me that the device #44 should have the I_HoneywellTCC.xml file populated in the impl_file field.  Unless this plugin operates differently, the implementation file will never get loaded for the plugin and the device will never get initialized.  If you populate this field make sure you reload luup and refresh your browser.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 12:15:40 am
Guys,

I don't use this thermostat but it seems to me that the device #44 should have the I_HoneywellTCC.xml file populated in the impl_file field.  Unless this plugin operates differently, the implementation file will never get loaded for the plugin and the device will never get initialized.  If you populate this field make sure you reload luup and refresh your browser.

Thanks for the idea. I tried entering this (actually it should be: I_HoneywellTCC1.xml) on #44, but it didn't help. I reloaded and refreshed, but nada. I then added I_HoneywellTCC1.xml to #45, reloaded and refreshed - still nothing. :-/
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 09:37:52 am
Guys,

I don't use this thermostat but it seems to me that the device #44 should have the I_HoneywellTCC.xml file populated in the impl_file field.  Unless this plugin operates differently, the implementation file will never get loaded for the plugin and the device will never get initialized.  If you populate this field make sure you reload luup and refresh your browser.

Thanks for the idea. I tried entering this (actually it should be: I_HoneywellTCC1.xml) on #44, but it didn't help. I reloaded and refreshed, but nada. I then added I_HoneywellTCC1.xml to #45, reloaded and refreshed - still nothing. :-/

I can confirm that my main app (lower number device) does not have anything for "impl_file" and it is functioning correctly.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 01:32:42 pm
I wonder if my network settings could be causing a problem? I recently turn off wireless since the Vera is hardwired and I was having trouble using VeraMate to connect.
Everything else is working properly though and has been for quite some time. I also just inserted a USB drive to start logging - maybe tonight I can review and see what's what.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 01:42:20 pm
I wonder if my network settings could be causing a problem? I recently turn off wireless since the Vera is hardwired and I was having trouble using VeraMate to connect.
Everything else is working properly though and has been for quite some time. I also just inserted a USB drive to start logging - maybe tonight I can review and see what's what.

I doubt it because the Vera Plugin communicates with servers on Honeywell's end via the Internet.  You have already proven that part is working correctly.  The issue is between the Vera App and the device.

I was thinking earlier, you may was to just try to manually create a device and enter all of the setting manually (per my earlier comments) and see if you can get it working that way. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 01:52:28 pm
Sure - I can try that. Do you recommend manually creating both #44 and #45?
Thx
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 01:53:35 pm
Sure - I can try that. Do you recommend manually creating both #44 and #45?
Thx

No, I am thinking just 45.  44 seems to be working correctly. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 02:13:22 pm
Ok - gave it a try. Took me a few attempts, so the new Thermostat came in at #48. It's missing the "altid" - not sure if I should manually enter it, but it's still not reporting any info and clicking the buttons yield no changes. The Thermostat_Old is my old TRANE, I just haven't deleted the entry yet.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:22:01 pm
Ok - gave it a try. Took me a few attempts, so the new Thermostat came in at #48. It's missing the "altid" - not sure if I should manually enter it, but it's still not reporting any info and clicking the buttons yield no changes. The Thermostat_Old is my old TRANE, I just haven't deleted the entry yet.


The altid is important.  Looking at your screenshots, let's go back to device 45 for a sec.  The altid is TCC_XXXXXXX (7 digits).  It should only be 6 digits and it should be the same as your thermostat ID shown in the TCC setup on device 44.  So try fixing that first (you may have to edit it in the variables tab).  Then if that doesn't get you going, try adding the altid in your new device.  It should be TCC_XXXXXX (6 digits).

I noticed that my thermostat IDs are all in the 900,000s.  So I guess it is possible that your ID is in the 1 millions (7 digits).  If you verify that your thermostat ID is 7 digits long, this could be the issue.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 02:24:26 pm
It is 7 digits, or at least I think it is. Screenshot of the Honeywell site attached.
Maybe I'm not dropping a digit I should?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:27:01 pm
It is 7 digits, or at least I think it is. Screenshot of the Honeywell site attached.
Maybe I'm not dropping a digit I should?

Nope, you shouldn't have to drop a digit.  I am looking through the code to see if anything limits it to 6-digit numbers.  In the mean time, is your system setup for "auto changeover" meaning it changes from heat to cool as necessary?  If so, try putting it in one mode or the other (through Honeywell's interface) and then re-login with the Vera app.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 02:29:19 pm
I hear ya on the digit problem regarding the code. Maybe I'm one of the few with 7 digits.

I currently only have an AC unit, no heat, so I've told the thermostat that I don't have a heat unit and so it only shows the "Cool" option, but I'll play around and see if there's a magic series of clicks to get them chatting.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:42:03 pm
First as a disclaimer: I am not a programmer.  I looked through the six files associated with this app.  Only one of the looked like it could have any impact on this.  Attached is the updated file where I changed "TCC_######" to "TCC_#######".  You can try loading this file and see what happens.  You may have to uninstall what you have and reinstall with this updated file.  But I would try just adding this file first to see what happens.  No promises either way.

Code: [Select]
function refreshAllStatus()
-- performs an immediate refresh of the status for all thermostats.
local childID
local altID
local statResult
local statText

for i=1,3,1 do
luup.variable_set(TCC_SID,"t." .. i .. ".refreshStatus" ,"",TCC_DEVICE)
end

for k, v in pairs(luup.devices) do
-- if I am the parent device
if v.device_num_parent == TCC_DEVICE then
childID = k -- this is the device number as known to vera
altID = v.id -- this is the altID  (TCC_######)
statResult, statText = refreshStatus(altID)
end
end

return statResult, statText
end

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 02:47:09 pm
I glanced at this and it looks like you changed the comment...

First as a disclaimer: I am not a programmer.  I looked through the six files associated with this app.  Only one of the looked like it could have any impact on this.  Attached is the updated file where I changed "TCC_######" to "TCC_#######".  You can try loading this file and see what happens.  You may have to uninstall what you have and reinstall with this updated file.  But I would try just adding this file first to see what happens.  No promises either way.

Code: [Select]
function refreshAllStatus()
-- performs an immediate refresh of the status for all thermostats.
local childID
local altID
local statResult
local statText

for i=1,3,1 do
luup.variable_set(TCC_SID,"t." .. i .. ".refreshStatus" ,"",TCC_DEVICE)
end

for k, v in pairs(luup.devices) do
-- if I am the parent device
if v.device_num_parent == TCC_DEVICE then
childID = k -- this is the device number as known to vera
altID = v.id -- this is the altID  (TCC_######)
statResult, statText = refreshStatus(altID)
end
end

return statResult, statText
end
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:48:44 pm
I glanced at this and it looks like you changed the comment...

First as a disclaimer: I am not a programmer.  I looked through the six files associated with this app.  Only one of the looked like it could have any impact on this.  Attached is the updated file where I changed "TCC_######" to "TCC_#######".  You can try loading this file and see what happens.  You may have to uninstall what you have and reinstall with this updated file.  But I would try just adding this file first to see what happens.  No promises either way.

Code: [Select]
function refreshAllStatus()
-- performs an immediate refresh of the status for all thermostats.
local childID
local altID
local statResult
local statText

for i=1,3,1 do
luup.variable_set(TCC_SID,"t." .. i .. ".refreshStatus" ,"",TCC_DEVICE)
end

for k, v in pairs(luup.devices) do
-- if I am the parent device
if v.device_num_parent == TCC_DEVICE then
childID = k -- this is the device number as known to vera
altID = v.id -- this is the altID  (TCC_######)
statResult, statText = refreshStatus(altID)
end
end

return statResult, statText
end

Ah crap your right, I ignored the "--" since it was not the first characters of the line...see, I told you I'm not a programmer...  :o
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:51:40 pm
We really need someone capable to pick up this plugin since JoeyD isn't around anymore...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 02:52:39 pm
Ah crap your right, I ignored the "--" since it was not the first characters of the line...see, I told you I'm not a programmer...  :o

We really need someone capable to pick up this plugin since JoeyD isn't around anymore...

Agreed about JoeyD.

I did a search through the luua and don't see any other reference to "######". Maybe there is no limitation set in the code to number of digits :(
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 02:54:30 pm
So what is it that you are trying to accomplish between Vera and Honeywell?  Maybe you can do it with IFTTT?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 02:56:01 pm
Hey, kudos for trying and more kudos for helping out others. I'm tempted to go through all of JoeyD's code and see what's going on. He has abundant debug code commented out so that would help. I'm just buried in stuff to do...

Can someone tell me exactly what the issue with this plugin is ? In really short summary.

I glanced at this and it looks like you changed the comment...

First as a disclaimer: I am not a programmer.  I looked through the six files associated with this app.  Only one of the looked like it could have any impact on this.  Attached is the updated file where I changed "TCC_######" to "TCC_#######".  You can try loading this file and see what happens.  You may have to uninstall what you have and reinstall with this updated file.  But I would try just adding this file first to see what happens.  No promises either way.

Code: [Select]
function refreshAllStatus()
-- performs an immediate refresh of the status for all thermostats.
local childID
local altID
local statResult
local statText

for i=1,3,1 do
luup.variable_set(TCC_SID,"t." .. i .. ".refreshStatus" ,"",TCC_DEVICE)
end

for k, v in pairs(luup.devices) do
-- if I am the parent device
if v.device_num_parent == TCC_DEVICE then
childID = k -- this is the device number as known to vera
altID = v.id -- this is the altID  (TCC_######)
statResult, statText = refreshStatus(altID)
end
end

return statResult, statText
end

Ah crap your right, I ignored the "--" since it was not the first characters of the line...see, I told you I'm not a programmer...  :o
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 02:58:03 pm
At first glance, there doesn't appear to be a limitation. Again, first glance. It's been forever since I stepped through his code.

Ah crap your right, I ignored the "--" since it was not the first characters of the line...see, I told you I'm not a programmer...  :o

We really need someone capable to pick up this plugin since JoeyD isn't around anymore...

Agreed about JoeyD.

I did a search through the luua and don't see any other reference to "######". Maybe there is no limitation set in the code to number of digits :(
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 02:58:44 pm
So what is it that you are trying to accomplish between Vera and Honeywell?  Maybe you can do it with IFTTT?

I just want to be able to trigger the AC to turn on and off with my scene controller and manually from my phone.
Right now I can only use the Honeywell app to control the thermostat.

I'd like to set up some scenes to turn on the air for 1 hour. Run the fans for 1 hour, etc.
Then when I leave the house I trigger a "Leave" scene that shuts everything down including the AC.

Simple control really - I'd even be okay if I couldn't control the temp, just on or off would be ideal.
I do like the display of the Honeywell. Having the humidity and outside temp in a color panel is nice.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 03:04:30 pm

Can someone tell me exactly what the issue with this plugin is ? In really short summary.

Real short summary:
First the version of the app at is available at the app store stopped working.  It wold log in successfully, but it wouldn't "find" any thermostats.  Then someone discover a beta version of this app was still working.  My guess is because you have to manually enter your thermostat ID rather than it being discovered automatically.

Then an issue started with this (older) version of the app which was failed authentication after a certain period of time.  My speculation is that once it fails authentication, it doesn't try again.  Most people's work around for this was to create a scene that re-logs in with Honeywell every so-often.  That fix has worked fine for me.

An now this latest issue that @cohibafan is having.  His issue is that the parent "app" is not passing the thermostat data to the actual child "device" that the app created, even though the parent app says it successfully connected to Honeywell and successfully verified the thermostat ID number.  This is the first case that I know of where someone has a 7 digit thermostat ID.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 03:06:53 pm
So what is it that you are trying to accomplish between Vera and Honeywell?  Maybe you can do it with IFTTT?

I just want to be able to trigger the AC to turn on and off with my scene controller and manually from my phone.
Right now I can only use the Honeywell app to control the thermostat.

I'd like to set up some scenes to turn on the air for 1 hour. Run the fans for 1 hour, etc.
Then when I leave the house I trigger a "Leave" scene that shuts everything down including the AC.

Simple control really - I'd even be okay if I couldn't control the temp, just on or off would be ideal.
I do like the display of the Honeywell. Having the humidity and outside temp in a color panel is nice.

You can actually probably do most of that with IFTTT.  https://ifttt.com/honeywell_total_connect_comfort

I would be frustrated not being able to do these simple controls that you are asking to do in Vera. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 03:26:22 pm
Ok, I remember some of this. When JoeyD was developing (like never sleeping developing) we noticed that if a login failed the stat(s) never recovered/refreshed. This was the beta, the store release must be where he corrected it (or tried to). I'm currently running version 1.2 (appid 8132) and the only issue I have is the message:

Code: [Select]
'HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup

Seems this is caused by updateCredentials which in turn calls retrieveLocationsAndDevices. I need to get a dump of what's being returned by that function [return resultCode, resultText , tblLocations] . I don't know when I'll get a chance to do this. I was hoping to defer this until I tried to make this plugin work under openLuup. Let me look through the posts on Cohibafan. I don't see why the [7] digit would cause issues, at least not in the Lua file. I understand Lua really well but I don't know how a plugin is constructed so I'll do what I can to help. No guarantees ...

Edit: I also need to check retrieveLoginCookie


Can someone tell me exactly what the issue with this plugin is ? In really short summary.

Real short summary:
First the version of the app at is available at the app store stopped working.  It wold log in successfully, but it wouldn't "find" any thermostats.  Then someone discover a beta version of this app was still working.  My guess is because you have to manually enter your thermostat ID rather than it being discovered automatically.

Then an issue started with this (older) version of the app which was failed authentication after a certain period of time.  My speculation is that once it fails authentication, it doesn't try again.  Most people's work around for this was to create a scene that re-logs in with Honeywell every so-often.  That fix has worked fine for me.

An now this latest issue that @cohibafan is having.  His issue is that the parent "app" is not passing the thermostat data to the actual child "device" that the app created, even though the parent app says it successfully connected to Honeywell and successfully verified the thermostat ID number.  This is the first case that I know of where someone has a 7 digit thermostat ID.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 04:03:41 pm
Interesting...
Edit: Although it does redirect (302). Now I'm stuck on where he's storing the cookie he received... He mentions it's global.
Mind you I'm hacking his code to straight Lua to see how far I can get...

Code: [Select]
auth_response{ [1] = <html><head><title>Object moved</title></head><body>

<h2>Object moved to <a href="/portal/">here</a>.</h2>

</body></html>
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 11, 2015, 05:16:03 pm
Thanks for the help!

If I can test or provide data (screenshots, etc.) pls do not hesitate to ask.
Hopefully we can get this to work... and maybe even update the official Vera app for Honeywell - that would be ideal for all.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 05:21:34 pm
Same for me, please let me know if there is anything that I can do to help!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 05:41:54 pm
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 ?

Code: [Select]
local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

Code: [Select]
local tblLoginCookie = {} -- table of cookies for refresh authentication.

Same for me, please let me know if there is anything that I can do to help!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 05:59:12 pm
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 ?

Code: [Select]
local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

Code: [Select]
local tblLoginCookie = {} -- table of cookies for refresh authentication.

Same for me, please let me know if there is anything that I can do to help!

Mine looked like the first, so I made the change (adding the " = {}".  Everything is still working fine.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 06:02:49 pm
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.

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 ?

Code: [Select]
local tblLoginCookie -- table of cookies for refresh authentication.

If not then make a change for me to

Code: [Select]
local tblLoginCookie = {} -- table of cookies for refresh authentication.

Same for me, please let me know if there is anything that I can do to help!

Mine looked like the first, so I made the change (adding the " = {}".  Everything is still working fine.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 06:07:08 pm
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...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 06:16:55 pm
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()

Code: [Select]
>>>>>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...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 11, 2015, 06:28:00 pm
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.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 11, 2015, 06:39:06 pm
Good plan, toes crossed...

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.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 12, 2015, 04:45:29 pm
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 :(
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 :-/
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 12, 2015, 04:47:10 pm
I'm curious, exactly what kind of Honeywell stat where you trying to use with this plugin ?

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 :(
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 :-/
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 12, 2015, 04:48:19 pm
RTH9580

When my Vera lite died they offered me an upgrade to the Edge. That was the beginning of my hassles.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 12, 2015, 05:01:31 pm
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.

RTH9580

When my Vera lite died they offered me an upgrade to the Edge. That was the beginning of my hassles.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 12, 2015, 08:44:59 pm
Well, part-techies like me appreciate the dedication you guys put in and wish we could do more (besides learning luup, xml, json, etc.) ;)
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.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 13, 2015, 09:46:09 am
Good plan, toes crossed...

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.

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.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 13, 2015, 09:52:29 am
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.

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).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 13, 2015, 11:44:57 am
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...

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.

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).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 13, 2015, 11:50:12 am
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.

Code: [Select]
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
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 14, 2015, 11:46:28 am
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...

Well, part-techies like me appreciate the dedication you guys put in and wish we could do more (besides learning luup, xml, json, etc.) ;)
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.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 14, 2015, 11:48:42 am
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..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 14, 2015, 12:08:16 pm
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!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 15, 2015, 12:11:49 am
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..

...and we'll all owe you a Christmas present. Seriously, thank you!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: agilani on December 15, 2015, 10:17:58 am
Hi,
I'm new to the forum.  I've decided to start switching from wink to vera.  First reason being I don't want my door locks or cameras controlled in the cloud.  The second reason, wink is bankrupt and I don't want to invest any time or effort if they aren't going to be around.  Having said that, I've been trying to install the Honeywell wifi app in veraedge running the latest firmware and have had a heck of a time.  A few observations...

If my vera is associated to a cloud account the app will not install at all
After lots of trial and error, I was able to get it installed after a full wipe and going to the vera web page directly before associating it with a vera cloud account

Now the only problem is that after going to the device in TCCSetup and enter my TCC credentials, it does not find my thermostat.  I get the following error atop of the screen:

HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.

I've actually logged in and the thermostat is there and both the Honeywell and wink apps work.  It apparently is not refreshing or maybe it is and isn't parsing the data correctly.  Not sure...

Last Refreshed:
Refresh Status:


Last Authorization Attempt: Tue, Dec 15, 06:03:37 AM
Authorization Status: Successful

any help would be greatly appreciate  :)

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 15, 2015, 05:40:09 pm
I grabbed the file and tried it - no change from starting with a non-working system. No harm done ;)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 15, 2015, 05:52:16 pm
OK, thanks for the update... I'll post another file once I can isolate what's choking the debug messages. I suspect it's probably a luup.log that is trying to call a function whereby he loops numerous times and outputs data. A good example is the parsing and storing of the cookie. I was doing this using just Lua and the output was BIG... I'll probably have to go back through all of them again and set them to something like 1 (minimal) to 3 (exhaustive). All in hopes of avoiding loop calls and simply displaying the result.

I grabbed the file and tried it - no change from starting with a non-working system. No harm done ;)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 15, 2015, 09:34:56 pm
@lingerba

I corrected the error that's been hovering over us for a long while ("Honeywell TCC Authorization passed,  but no devices were found.". The URL needed a bit tweaking, also this code puts out a lot of debug messages. It's these very debug messages that helped. I had to create 3 levels for now (only use level 1 which is default; 0 disables). still a bit messy and I have like 3-4 more functions to clean house on. As you can see, if your using 'Info Viewer', basically set you pattern to ">> HYWL:". This will show you everything that's going on. If you could load and keep an eye on the refresh, I'll leave mine running tonight and hopefully we can catch the 'Authorization Issue'. Eventually we'll get to a point where I can help cohibafan.

Please don't distribute this file and by all means, create a backup of the original L_HoneywellTCC.lua file ...
Edit : ANY function that get's called will output a debug message under level [1].

Before
Code: [Select]

50      12/15/15 19:57:45.628   luup_log:245: >> HYWL: 'locNumber [{removed by Cuda}]'. <0x2c324680>
50      12/15/15 19:57:45.629   luup_log:245: >> HYWL: Executing 'createCookieStringFromTable' function | Line 417 << <0x2c324680>
{removed by Cuda; my cookie}
50      12/15/15 19:57:46.072   luup_log:245: >> HYWL: 'Analyzing Device Status [500]'. <0x2c324680>
50      12/15/15 19:57:46.073   luup_log:245: >> HYWL: 'resultCode [3]'. <0x2c324680>
50      12/15/15 19:57:46.073   luup_log:245: >> HYWL: 'resultText [Issue with processing getDevicesInLocation.  (Issue already logged)]'. <0x2c324680>
50      12/15/15 19:57:46.074   luup_log:245: >> HYWL: Executing 'task' function | Line 134 << <0x2c324680>
50      12/15/15 19:57:46.075   luup_log:245: >> HYWL: 'authResult' from 'locResult': 3 <0x2c324680>
50      12/15/15 19:57:46.076   luup_log:245: >> HYWL: 'authText' from 'locText': Issue with processing getDevicesInLocation.  (Issue already logged)

After
Code: [Select]

50      12/15/15 20:21:29.728   luup_log:245: >> HYWL: Executing 'getDevicesInLocation' function | Line 907 << <0x2cb16680>
50      12/15/15 20:21:29.729   luup_log:245: >> HYWL: 'locNumber [{removed by Cuda}]'. <0x2cb16680>
50      12/15/15 20:21:29.730   luup_log:245: >> HYWL: Executing 'createCookieStringFromTable' function | Line 417 << <0x2cb16680>
{removed by Cuda; my cookie}
50      12/15/15 20:21:30.205   luup_log:245: >> HYWL: 'Analyzing Device Status [200]'. <0x2cb16680>
50      12/15/15 20:21:30.206   luup_log:245: >> HYWL: 'Analyzing Device Status [200]'. <0x2cb166
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 15, 2015, 09:55:59 pm
I tried just installing the updated LUA file.  Nothing changed.  What I mean by this is as far as I could tell, the old version of the app was still being shown (which didn't have the issue of not finding devices).  So I uninstalled the entire app, then I installed it fresh from the app store.  Then I updated the app with your updated LUA file.  The error message is now gone.  However, the main parent app is not finding the actual thermostats (and thus, not auto-creating the thermostat devices in Vera).  It shows that my login was successful, but it is not finding the thermostats.  So basically the error still exists, it just doesn't show the error message. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 15, 2015, 10:27:45 pm
OK, so we're running different versions of Joey's code. That makes sense now and it gives me a couple of ideas.
I hope you were able to restore your setup back to the way it was before my file.

I tried just installing the updated LUA file.  Nothing changed.  What I mean by this is as far as I could tell, the old version of the app was still being shown (which didn't have the issue of not finding devices).  So I uninstalled the entire app, then I installed it fresh from the app store.  Then I updated the app with your updated LUA file.  The error message is now gone.  However, the main parent app is not finding the actual thermostats (and thus, not auto-creating the thermostat devices in Vera).  It shows that my login was successful, but it is not finding the thermostats.  So basically the error still exists, it just doesn't show the error message.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 15, 2015, 10:30:05 pm
I can restore, but I have not done so yet (because I don't want to have to do it all over again).  I am okay with not having this functionality for a little while during testing. :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 15, 2015, 10:32:24 pm
Question:
How does one uninstall the manually installed app, or should one simply delete the devices and then install over the top of the files (as occurs automatically)?
I'm happy to test on UI7 (VeraEdge).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 15, 2015, 10:33:21 pm
OK, good - thanks for the quick reply and test...

I can restore, but I have not done so yet (because I don't want to have to do it all over again).  I am okay with not having this functionality for a little while during testing. :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 15, 2015, 10:35:02 pm
I'm hoping no one has to un-install, rather just update their Lua file. No need to test just yet, let me work through all the little details of why. Once we have it stable, I'll see about trying to help you get your stat working.

Question:
How does one uninstall the manually installed app, or should one simply delete the devices and then install over the top of the files (as occurs automatically)?
I'm happy to test on UI7 (VeraEdge).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 10:10:59 am
Man, I really appreciate you working on this.  I'll jump on board for testing and monitoring.  I currently have a Veralite running UI7 and two Honeywell thermostats.  I'll replace the lua file with your current one and let you know.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 10:28:33 am
The error about successful logins went away but I'm still getting an error on refresh: "Unsuccessful. Error code: nil".  I'll step through and see what I can find.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 16, 2015, 11:08:13 am
I actually have a different file if you really want to test. The code is very sensitive to changes so I'm going about this a little different. Are you running version 1.2 or the rc 1.0 ?

Man, I really appreciate you working on this.  I'll jump on board for testing and monitoring.  I currently have a Veralite running UI7 and two Honeywell thermostats.  I'll replace the lua file with your current one and let you know.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 11:22:00 am
Absolutely.  Where can I get it?  I'm new to Luup, but do have some programming experience.  I'm still trying to grasp the parsing cookies thing. 

When I initially loaded your file, I got the refresh nil error; therefore I believe the status from the getStatus function wasn't 200 or 401.  After putting in a log to see, it's been refreshing successfully with a 200. Figures, lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 11:23:15 am
Sorry, running 1.2.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 16, 2015, 11:44:24 am
I think my issue (last night) was I modified a parameter (refresh every 1800s from 300s) when I should have left well enough alone. It may have been a coincidence but my system didn't refresh from that point on (all night). This morning I simply changed the value within the plugin back to 300s (used within init and autoRefresh functions), reloaded the engine and voila, everything is working and updating as it should be.

The whole cookie thing is nuts ! I'm used to Oauth2 and I've never dealt with cookies (glad he was able to work through that part). My log messages show just how crazy it is as it collects it and parses. I corrected the '500' status by altering the URL within the function getDevicesInLocation.'

So is your system refreshing every 300s ? If so then run with that file as it has all the debug data available to you. I'm just slowly introducing changes that I know work rather than blast through his code correcting minor mistakes. I want to know exactly what function is causing the Authentication error (nil ?!?).

Code: [Select]
Cookie: LocalisationCultureCookie=en-US; EccMyTcc=Rnnnnnnnnn; ASP.NET_SessionId=(removed); ADRUM_BT=R(removed); TrueHomeCheckCookie=; checkCookie=checkValue; .ASPXAUTH_TH_A=(removed); thlang=en-US




Absolutely.  Where can I get it?  I'm new to Luup, but do have some programming experience.  I'm still trying to grasp the parsing cookies thing. 

When I initially loaded your file, I got the refresh nil error; therefore I believe the status from the getStatus function wasn't 200 or 401.  After putting in a log to see, it's been refreshing successfully with a 200. Figures, lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 11:54:11 am
I updated it to refresh at that rate (5min) so I could check it more often.  Not getting the Authentication error anymore.  It seems almost like it has to do with the cookie expiring because it's sporadic.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 16, 2015, 12:05:17 pm
Perhaps, the cookie expiration (from memory) was something like 2 days - the logs should provide approximation...

I updated it to refresh at that rate (5min) so I could check it more often.  Not getting the Authentication error anymore.  It seems almost like it has to do with the cookie expiring because it's sporadic.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 16, 2015, 12:23:46 pm
ok, mine failed but I cannot see logs from here. Looks like it ...

[1] Calls 'refreshStatus'
[2] 'refreshStatus' then calls 'getStatus(tcc_ID)'
[3] 'getStatus(TCC_DEVICE_ID)' then prepares to call Honeywell but first has to call 'createCookieStringFromTable(tblLoginCookie)'
[4] 'getStatus' ultimately returns statResult, if this isn't a 1 then it's supposed to refresh the login cookie; retrieveLoginCookie(username,password)

Going to put some more detail to the logs for greater visibility...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 16, 2015, 03:42:14 pm
OK, so mine had the same issue with failing authentication but I didn't catch the log.  Everything else seems to work fine.  It works for an amount of time, then fails and doesn't reattempt.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 16, 2015, 04:47:25 pm
No worries, I finally found time to finish implementing all the debug messages throughout all the functions. We should be able to isolate it now (more messages in the HTTP calls).

OK, so mine had the same issue with failing authentication but I didn't catch the log.  Everything else seems to work fine.  It works for an amount of time, then fails and doesn't reattempt.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 17, 2015, 09:14:38 am
Update: I ran my latest file last night with just the debug messages and very minor corrections (typos, URL updates etc.) to Joey's code. I'm having issues (code keeps stalling) and it's probably not related so much to the code but my Vera. I'm really going to have to do this at home on a weekend if I'm to gain any ground.

My initial impression after thoroughly going through his code is lack of persistent storage. He doesn't store the cookie (string) to a variable within the plugin for repeated use (it's kept global) and he's not writing it to a file on our Vera like Google Calendar does this with it's sem/pem. I can do this either way but will try to store the key along side the credentials.

It seems jlind can get much further than I and it has way more debug messages in it .. Very odd, perhaps my Vera3 is can't handle all the messages.. Regardless, we'll keep dredging forward.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 17, 2015, 10:56:20 am
What I found is that the https.request returns nil if an error occurs.  I imagine not having a valid cookie is an error.  Trying to find something more in depth about this is a little difficult, but I did find this page:
https://github.com/brunoos/luasec/wiki/LuaSec-0.4.1#https_request

Nil is what's being returned from the refreshStatus function after a given period of time. 

My understanding is that although he's setting cookies to "keep-alive", it doesn't guarantee that the server isn't going to kill the session.  The cookie is on the client side and the session is on the server side.  The fact (I tested overnight) that you can reset the username/password on an hourly basis will keep the process running fine is somewhat proof of this.  In the SetUsernamePassword function it runs the updateCredentials which sets the variables and then calls retrieveLoginCookie and stores/restores the cookie into the global variable.  This logic is fine, but we need to break out the refresh cookie variable and call it additionally when nil is returned from the refreshStatus function.  I'm going to try making these mods to my lua file and see if it fixes it.

Any suggestion on how to get this to log to a text file rather then running putty and greping the log? 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 17, 2015, 11:43:12 am
He has a log function that I could modify and direct all messages through that and in turn just log them to a text file. Will Vera like that, not sure ... Also not sure when I'll get around to doing that if that's how we decided to proceed. I'm curious though to see if this will run for you, it has a lot of messages that it outputs during the process of making HTTP calls. Mine kept stalling, if yours grabs all the data then I might look into purchasing a new unit so I can test (I can always use another z-wave controller).

Give this a go and let me know if it runs...

What I found is that the https.request returns nil if an error occurs.  I imagine not having a valid cookie is an error.  Trying to find something more in depth about this is a little difficult, but I did find this page:
https://github.com/brunoos/luasec/wiki/LuaSec-0.4.1#https_request

Nil is what's being returned from the refreshStatus function after a given period of time. 

My understanding is that although he's setting cookies to "keep-alive", it doesn't guarantee that the server isn't going to kill the session.  The cookie is on the client side and the session is on the server side.  The fact (I tested overnight) that you can reset the username/password on an hourly basis will keep the process running fine is somewhat proof of this.  In the SetUsernamePassword function it runs the updateCredentials which sets the variables and then calls retrieveLoginCookie and stores/restores the cookie into the global variable.  This logic is fine, but we need to break out the refresh cookie variable and call it additionally when nil is returned from the refreshStatus function.  I'm going to try making these mods to my lua file and see if it fixes it.

Any suggestion on how to get this to log to a text file rather then running putty and greping the log?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 17, 2015, 11:46:07 am
Do a search in the forums for Info Viewer (not sure if the app store has this), this plugin will allow you (in real-time) to watch the log data. You would basically give it a search term of ">> HYWL:" and it will only display my log messages.

Any suggestion on how to get this to log to a text file rather then running putty and greping the log?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 17, 2015, 12:49:34 pm
I made a bunch of changes to my current file I'm working from.  Give me a bit to work with this one before I switch over.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 18, 2015, 09:51:49 pm
yeah ,I think the cookie parser is not working properly. I tried the code in a unit test framework i use and it failed to login. I replaced the cookie handling code with what I use (originally given to Joey) and it logged in fine. Hope this helps.

function updateCookieTableFromHeaderString(value,cookies)
         -- Remove the superflous comma in the date field                                                                                                         
         value = string.gsub(value, "Sun,", "Sun")
         value = string.gsub(value, "Mon,", "Mon")
         value = string.gsub(value, "Tue,", "Tue")
         value = string.gsub(value, "Wed,", "Wed")
         value = string.gsub(value, "Thu,", "Thu")
         value = string.gsub(value, "Fri,", "Fri")
         value = string.gsub(value, "Sat,", "Sat")
         value = value .. ","
         local next = 0
         while true do
            _,next,cookie = value:find("%s*([^,]*,)", next+1)
            if next == nil then break end
            _,_,cookie,cookieval = cookie:find("([^=]*)=([^;]*)")
            cookies[cookie] = cookieval
         end
end
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 18, 2015, 09:58:10 pm
also, it is only looking at the first set-cookie header instead of all that may be present. Not sure if this is an issue ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 18, 2015, 10:30:17 pm
Thanks Mikee, I'll patch the code I've been working on and see if it corrects the issue. I can't speak to what Honeywell expects regarding the cookie, I'd have to see what others are doing on Github.

also, it is only looking at the first set-cookie header instead of all that may be present. Not sure if this is an issue ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 18, 2015, 10:59:44 pm
yeah, add "return cookies" to the function. ooops. what did you change in the url ? Joey and I started developing a plugin at the same time. I helped as much as he needed. I use my own (which you are more than welcome to). It did not do the auto configure. I have a bit of a Noah's ark of devices in my system, 2 zwave honeywells, 2 wifis I have mini splits but am afraid of the redlink units used to control them and they are expensive but I'll probably grab 2 of those as well one of these days.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 18, 2015, 11:20:52 pm
For this test I left everything exactly as-is (URL's that is and all his original code), with the exception of your cookie changes (which I adapted to his variables). Here's what I'm using at the moment.

Code: [Select]
function updateCookieTableFromHeaderString(cookieString,cookieTable)
-- pass the cookie string that is returned from the lua socket
-- the lua socket returns all set-cookie keys returned as a single comma delimited string.
-- Unfortunately, the contents of some of the values /attribues might also include a comma which
-- makes cookie handling somewhat messy.
-- Thanks to mikee for a crash course on  how cookies work!

-- returns a table of name / value pairs
local rawCookie = {}
local curCookie = ""

  -- remove all the commas related to dates / expiration dates.
      -- ORIGINAL CODE
      --cookieString = string.gsub(cookieString,"Sun,", "Sun ")
      --cookieString = string.gsub(cookieString,"Mon,", "Mon ")
      --cookieString = string.gsub(cookieString,"Tue,", "Tue ")
      --cookieString = string.gsub(cookieString,"Wed,", "Wed ")
      --cookieString = string.gsub(cookieString,"Thu,", "Thu ")
      --cookieString = string.gsub(cookieString,"Fri,", "Fri ")
      --cookieString = string.gsub(cookieString,"Sat,", "Sat ")
     
  -- MIKEE REVISION CODE
  -- Remove the superflous comma in the date field   
  cookieString = string.gsub(cookieString, "Sun,", "Sun")
  cookieString = string.gsub(cookieString, "Mon,", "Mon")
  cookieString = string.gsub(cookieString, "Tue,", "Tue")
  cookieString = string.gsub(cookieString, "Wed,", "Wed")
  cookieString = string.gsub(cookieString, "Thu,", "Thu")
  cookieString = string.gsub(cookieString, "Fri,", "Fri")
  cookieString = string.gsub(cookieString, "Sat,", "Sat")
  cookieString = cookieString .. ","

-- now we can parse the cookie string by commas
--rawCookie = string.split(cookieString,",")
 
--local nvPair = ""
--local theName = ""
--local theValue = ""
--for i,v in ipairs(rawCookie) do
-- disregard everything except the first name=value pair of the cookie.
-- v is a single cookie including name, value and attributes.
--nvPair = trim(string.match(v,".-;"))       
                print (nvPair)
--theName = trim(string.match(nvPair,".*="))
--theName = trim(string.gsub(theName,"=",""))
--theValue = string.match(nvPair,"=.*")
--if theValue ~= nil then
            --theValue=string.gsub(theValue,";","")
            --theValue=string.gsub(theValue,"=","")
        --else
--cookieTable[theName] = nil
--end
--cookieTable[theName] = theValue
--end

  -- MIKEE REVISION CODE
  local next = 0
  while true do
      _,next,cookie = cookieString:find("%s*([^,]*,)", next+1)
      if next == nil then break end
      _,_,cookie,cookieval = cookie:find("([^=]*)=([^;]*)")
      cookieTable[cookie] = cookieval
  end

return cookieTable
end

yeah, add "return cookies" to the function. ooops. what did you change in the url ? Joey and I started developing a plugin at the same time. I helped as much as he needed. I use my own (which you are more than welcome to). It did not do the auto configure. I have a bit of a Noah's ark of devices in my system, 2 zwave honeywells, 2 wifis I have mini splits but am afraid of the redlink units used to control them and they are expensive but I'll probably grab 2 of those as well one of these days.

Edit: I REALLY appreciate the help on this (as I'm sure others do), I have 3 mini-splits in the house which are controlled using Honeywell stats. All linked to a Redlink gateway. I haven't had time to really focus on this and although I understand Lua, I know nothing of how these plugins are constructed.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 18, 2015, 11:30:02 pm
no problem at all. we'll get to the bottom of it. did you get around the 500 error in getDevicesInLocation ? You mentioned you had with a change to the url. I haven't set up my sniffer in a while to capture the traffic but I can try. Will also check the re-login logic.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 18, 2015, 11:43:47 pm
Honestly, with as little time I've had to really focus on this I'm afraid I've been hacking at his code. I've also been bouncing back and forth on openLuup and helping some of the users getting their Linux environments setup. With your revision Joey's original code, we can now work forward ruling any issues along the way. If it's the URL I'll just grab the cookie and use Fiddler to submit the request so I can analyze the payload. I got some time to really focus on the core functions he uses (and learned a little along the way) today and it's impressive for as fast as he turned this out.

For documentation though, the URL change was this [getDevicesInLocation(locNumber)]:
Code: [Select]
url = "https://mytotalconnectcomfort.com/portal/Locations",  -- correction to URL; was /Location/GetLocationListData; now /Locations

This seems (at the time) to correct the problem but then again it may have just suppressed it...

no problem at all. we'll get to the bottom of it. did you get around the 500 error in getDevicesInLocation ? You mentioned you had with a change to the url. I haven't set up my sniffer in a while to capture the traffic but I can try. Will also check the re-login logic.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 18, 2015, 11:48:48 pm
yeah, it might not be doing what you want. I'll try a different URL to get the devices and replace the getDevicesInLocation function...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 12:03:45 am
Sounds good and thanks again for jumping in here and adding clarity...

yeah, it might not be doing what you want. I'll try a different URL to get the devices and replace the getDevicesInLocation function...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 12:33:18 am
Rebooted my system and noticed the error cleared. Before I bounced, I added a couple of select debugs, things look good so far... Tracking the core functions and assembly of the cookie string.
Will report back once this has been running long enough...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 12:07:54 pm
Update: No errors and "Refreshed:11:04:20 AMStatus:Successful" ... It's been almost 12 hours so keeping fingers crossed...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 19, 2015, 12:16:20 pm
Do you have an updated lua file you would want to share for additional testing?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 19, 2015, 01:56:06 pm
Nice. I have a fix for the automatic setup. It logs in and gets the devices IDs ok but when it updates the dialog there are two entries for each device. Not yet sure why but am looking at it ... only one of each device gets created so it seems to work but I don't like the appearance of the dialog. It is also overwriting some entries on the screen so is hard to read ... perhaps my thermo name is too long ?

The auth cookies seem to have an expiration of a couple days so that is the point at which reauth needs to take place. I think we can handle this with an internal timer that reauthenticates before this time. The way it is setup now it will not try to reauth until a failure during status polling. I fear this can mean failed event triggers until the polling is done so probably best to be proactive.

Anyway, progress ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 03:08:49 pm
I like that plan (proactive auth refresh prior to expiry). I am very curious to see what happens when the auth ultimately expires, mine shows the following:

Code: [Select]
expires=Sun 20-Dec-2015 20:07:37 GMT

So 2:37 PM Sunday, Central Time (CT).  As for the automatic setup, I know that Cohibafan was having issues installing the plugin and it ultimately detecting his Wifi stat (id = 7 chars rather than 6). I haven't had a chance to identify why (yet), wanted to get this stable before then. Might need to shorten the name, I remember Joey struggling with the screens.

Progress is good !

Nice. I have a fix for the automatic setup. It logs in and gets the devices IDs ok but when it updates the dialog there are two entries for each device. Not yet sure why but am looking at it ... only one of each device gets created so it seems to work but I don't like the appearance of the dialog. It is also overwriting some entries on the screen so is hard to read ... perhaps my thermo name is too long ?

The auth cookies seem to have an expiration of a couple days so that is the point at which reauth needs to take place. I think we can handle this with an internal timer that reauthenticates before this time. The way it is setup now it will not try to reauth until a failure during status polling. I fear this can mean failed event triggers until the polling is done so probably best to be proactive.

Anyway, progress ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 03:11:52 pm
Attached is Mikee's fix for cookies ! Also contains some debug messages to track the HTTP status and cookie status (minimal log traffic).

Do you have an updated lua file you would want to share for additional testing?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 19, 2015, 04:28:03 pm
The device id is parsed as a series of digits. I don't see anything (obvious) that would limit it. However, if there are non digits in the longer ID this will be a problem (as well as in any device ID).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 19, 2015, 08:01:46 pm
Attached is Mikee's fix for cookies ! Also contains some debug messages to track the HTTP status and cookie status (minimal log traffic).

Do you have an updated lua file you would want to share for additional testing?

I uninstalled the app from my system.  Reinstalled the app version from the app store.  Then I uploaded the LUA file you attached.  After that is when I entered my username/password.  It logged in successfully, however when I clicked the refresh button, it is still not finding any thermostats.  I restarted the luup engine and still nothing.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 08:16:36 pm
I may need to load this on one of my openLuup test systems so I can unit test without causing issues with the stats I use.

Attached is Mikee's fix for cookies ! Also contains some debug messages to track the HTTP status and cookie status (minimal log traffic).

Do you have an updated lua file you would want to share for additional testing?

I uninstalled the app from my system.  Reinstalled the app version from the app store.  Then I uploaded the LUA file you attached.  After that is when I entered my username/password.  It logged in successfully, however when I clicked the refresh button, it is still not finding any thermostats.  I restarted the luup engine and still nothing.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 19, 2015, 08:19:49 pm
I'm pretty sure cohibafan's ID was entirely numeric but it really should be adapted to these cases in the unlikely event alphanumeric is received one day.

The device id is parsed as a series of digits. I don't see anything (obvious) that would limit it. However, if there are non digits in the longer ID this will be a problem (as well as in any device ID).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 19, 2015, 11:28:06 pm
I have not yet sent CudaNet the changes for auto setup. Let me clean them up and I'll post.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 20, 2015, 10:10:44 pm
I'm pretty sure cohibafan's ID was entirely numeric but it really should be adapted to these cases in the unlikely event alphanumeric is received one day.

Correct - currently entirely 7 digits.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 21, 2015, 09:02:04 am
I'm back and able to test again.  I can usually only work on this during the week.  Feel free to post your version of the code and I'll test with my two thermostats.
Title: Re: PLUGIN: TCC: Cannot get credentials to work
Post by: Lindsey on December 21, 2015, 09:48:11 am
Just installed the Honeywell app.  After entering my credentials in the TCC Setup and clicking Login, I receive,

"Unsuccessful. Error code 200"
"HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup"

The credentials do work when I access Honeywell TCC on the website.  I have deleted the app and reinstalled.  Any suggestions???

Thanks...
Title: Re: PLUGIN: TCC: Cannot get credentials to work
Post by: CudaNet on December 21, 2015, 11:17:44 am
Lindsey,

Can you tell us a little more about your setup. Model of thermostat, version of code installed (1.2 or the 1.0 release candidate). Mikee has done some refactoring of the code but I'm afraid this is the first I've heard of this type of problem. So I hate to put you through remedial questions but sometimes it's the most minor details that help us determine a solution.

Thanks

Just installed the Honeywell app.  After entering my credentials in the TCC Setup and clicking Login, I receive,

"Unsuccessful. Error code 200"
"HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup"

The credentials do work when I access Honeywell TCC on the website.  I have deleted the app and reinstalled.  Any suggestions???

Thanks...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 11:23:52 am
Mikee, I'm here to help. Feel free to release or if you'd prefer, I'm more than willing to adjust the code with your changes. Either way,  all of us here appreciate you taking the time to do all of this for the group. Especially during the holidays when time is limited !

I have not yet sent CudaNet the changes for auto setup. Let me clean them up and I'll post.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 21, 2015, 11:50:23 am
I have gone thru the plugin and reworked a number of things. I have run on my two thermos as well as done some unit tests with 7 digit device IDs. I also lowered the reauth interval to 60 minutes (the min) and verified it reauthenticates so should stay connected without periodic failures. I am including 3 modified files, the lua implementation, the json UI file (changed table layout ) and xml implementation file.

I can only do minimal testing myself since I have a heat only system connected to the wifis.

Install:

Install the official app and then upload these 3 files making sure the Restart Luup is checked (or reboot after upload).

Logging is enabled so will be a bunch of output in the log. Once we get thru testing I'll figure out how to update the official app.

Notes:

1. I reorganized a lot of stuff, constants for string, permanent log, trace capability, fix nil references, update comments. I also put the plugin in a module. Could still be more of this cleanup.
2. Fix the locations processing so the auto-configure works again. Again, bunch of cleanup
3. Widen the thermo name column in the dialog and fix cut-n-paste errors that put the 3rd therm device ID in the 2nd row (along with the 2nd thermo). I wrote a table generator lua script to make it easy(er) to adjust the table.
4. Added the re-auth callback. The default is 24hours but can be changed (ReAuthInterval).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 11:52:00 am
Thanks Mikee, I'm loading it now...

I have gone thru the plugin and reworked a number of things. I have run on my two thermos as well as done some unit tests with 7 digit device IDs. I also lowered the reauth interval to 60 minutes (the min) and verified it reauthenticates so should stay connected without periodic failures. I am including 3 modified files, the lua implementation, the json UI file (changed table layout ) and xml implementation file.

I can only do minimal testing myself since I have a heat only system connected to the wifis.

Install:

Install the official app and then upload these 3 files making sure the Restart Luup is checked (or reboot after upload).

Logging is enabled so will be a bunch of output in the log. Once we get thru testing I'll figure out how to update the official app.

Notes:

1. I reorganized a lot of stuff, constants for string, permanent log, trace capability, fix nil references, update comments. I also put the plugin in a module. Could still be more of this cleanup.
2. Fix the locations processing so the auto-configure works again. Again, bunch of cleanup
3. Widen the thermo name column in the dialog and fix cut-n-paste errors that put the 3rd therm device ID in the 2nd row (along with the 2nd thermo). I wrote a table generator lua script to make it easy(er) to adjust the table.
4. Added the re-auth callback. The default is 24hours but can be changed (ReAuthInterval).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 21, 2015, 12:12:17 pm
I have gone thru the plugin and reworked a number of things. I have run on my two thermos as well as done some unit tests with 7 digit device IDs. I also lowered the reauth interval to 60 minutes (the min) and verified it reauthenticates so should stay connected without periodic failures. I am including 3 modified files, the lua implementation, the json UI file (changed table layout ) and xml implementation file.

Great job, it works!!!
VeraEdge UI7 (1.7.1598)
Single Honeywell RTH9580

Had the non-app store version installed. Deleted both devices (controller and thermo). Installed the app store version. Vera found the controller but not the thermo. Entered my credentials as normal in the controller. Blue Vera msg said it authenticated, but no devices found. Installed your 3 files above. Vera found the thermostat and the 7 digit thermo popped up automatically. Instantly showed the current temp (awesome). Set the thermo to "Cool" from the Vera and it worked! Checked Honeywell dashboard (web) and it reflected the change too. Turned the thermo to "Off" from the Vera and it worked (Honeywell website confirmed "Off").

Looking good for my simple needs. Not at home for a week so I can't test a whole lot more, but happy to help test configuration stuff as needed.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on December 21, 2015, 12:58:17 pm
The only bit that could work better is that I cannot select and type in numerically the desired temp when setting up scenes; I must use the arrows.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 01:32:14 pm
This can be easily remedied with Lua code (within the scene).

The only bit that could work better is that I cannot select and type in numerically the desired temp when setting up scenes; I must use the arrows.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 04:25:00 pm
@Mikee,

I took a quick glance at the revisions. When you get a chance, have a quick look at the following functions...

Code: [Select]
device = dev

function SetCurrentSetpoint_Heat(dev, NewCurrentSetpoint)
   -- This may be called from UI5 convention, so handle it.
   luup.variable_set(SERVICE_SETPOINT_HEAT, "CurrentSetpoint",
     NewCurrentSetpoint,
     dev)
   log("SetCurrentSetpoint_Heat NewCurrentSetpoint = " .. tostring(NewCurrentSetpoint))
   setTStatus("SETPOINT_HEAT", NewCurrentSetpoint, device)
end

And this...

Code: [Select]
TCC_DEVICE_ID = TCC_DEVIDE_ID

function getStatus(TccDevice_ID)
   trace("getStatus", { TCC_DEVIDE_ID = TCC_DEVIDE_ID })

And this I believe was an old typo from Joey (should be newOpmode).

Code: [Select]
newOpmode = newOpemode

function buildSetReq(veraID)

   elseif newOpemode == "AutoChangeOver" then

I'll give this more attention when I get home, especially since I really want to see the log data....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 21, 2015, 04:40:41 pm
Thanks! They are fixed. I am changing names to follow CONSTANTS, Globals, locals and I suspect there are more lurking... The TCC_DEVICE_ID was supposed to be TccDevice_Id. I'll keep going over it, I really appreciate the reviews. Should have run time control over the logging in soon ...

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 04:56:38 pm
You're very welcome. It's inevitable that little things will be lurking in this code and you nailed it - globals and locals..

I did have authentication fail on me twice today, although I have no log data to support what happened. When it failed the 2nd time (authentication failed, check TCC setup), I checked TCC and direct access to their site failed. Within a few minutes the site came back up and I refreshed access on Vera3. That was at approx. 2:33 (central). I just checked Vera and all is well (1.5 hrs). I'll continue to check if from my office off and on until I get home. If it fails again on me tonight, I'll post all the log data I can scrape up !


Thanks! They are fixed. I am changing names to follow CONSTANTS, Globals, locals and I suspect there are more lurking... The TCC_DEVICE_ID was supposed to be TccDevice_Id. I'll keep going over it, I really appreciate the reviews. Should have run time control over the logging in soon ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 21, 2015, 05:07:26 pm
Hmmm, that brings up and interesting point. If the login fails we do not attempt a retry. This will essentially stop the plugin until a manual (or external event) causes a new login. I don't think this is right but I didn't want to keep trying in case the credentials were bad. I don't know if there are any lockouts an auto login could trip. But I think that maybe a slow (like an hour-ish) retry might be in order to re-establish the session. Thoughts ?

Oh, I had a login failure at 13:09 Eastern ..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 21, 2015, 05:37:45 pm
I believe we've had situations whereby users we're polling to often, enough to lock them out. I'm not sure about invalid credentials though..

To me, credentials either work or they don't. It's one of those set, test and forget kind of things.. The default poll rate is currently 300s. That's a safe limit when things are acting as expected. In the event of an authentication failure, perhaps throttle polling to 3600s and upon success, revert to the default (or whatever value was present before the failure). Perhaps a set of [3] consecutive failures stops the process all together (a perm task message). This is something that can be implemented after we've given the code a thorough test drive.

Hmmm, that brings up and interesting point. If the login fails we do not attempt a retry. This will essentially stop the plugin until a manual (or external event) causes a new login. I don't think this is right but I didn't want to keep trying in case the credentials were bad. I don't know if there are any lockouts an auto login could trip. But I think that maybe a slow (like an hour-ish) retry might be in order to re-establish the session. Thoughts ?

Oh, I had a login failure at 13:09 Eastern ..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 21, 2015, 07:20:41 pm
I have gone thru the plugin and reworked a number of things. I have run on my two thermos as well as done some unit tests with 7 digit device IDs. I also lowered the reauth interval to 60 minutes (the min) and verified it reauthenticates so should stay connected without periodic failures. I am including 3 modified files, the lua implementation, the json UI file (changed table layout ) and xml implementation file.

I can only do minimal testing myself since I have a heat only system connected to the wifis.

Install:

Install the official app and then upload these 3 files making sure the Restart Luup is checked (or reboot after upload).

Logging is enabled so will be a bunch of output in the log. Once we get thru testing I'll figure out how to update the official app.

Notes:

1. I reorganized a lot of stuff, constants for string, permanent log, trace capability, fix nil references, update comments. I also put the plugin in a module. Could still be more of this cleanup.
2. Fix the locations processing so the auto-configure works again. Again, bunch of cleanup
3. Widen the thermo name column in the dialog and fix cut-n-paste errors that put the 3rd therm device ID in the 2nd row (along with the 2nd thermo). I wrote a table generator lua script to make it easy(er) to adjust the table.
4. Added the re-auth callback. The default is 24hours but can be changed (ReAuthInterval).

I've installed the files and off-hand, it looks like things are good.  I will keep an eye on it and report back if I see anything.  Is there anything specific you would like me to try or to look for?

Thank you guys again for all of your help getting this app back on track!
Title: Re: PLUGIN: TCC: Cannot get credentials to work
Post by: lingerba on December 21, 2015, 07:25:10 pm
Lindsey,

Can you tell us a little more about your setup. Model of thermostat, version of code installed (1.2 or the 1.0 release candidate). Mikee has done some refactoring of the code but I'm afraid this is the first I've heard of this type of problem. So I hate to put you through remedial questions but sometimes it's the most minor details that help us determine a solution.

Thanks

Just installed the Honeywell app.  After entering my credentials in the TCC Setup and clicking Login, I receive,

"Unsuccessful. Error code 200"
"HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup"

The credentials do work when I access Honeywell TCC on the website.  I have deleted the app and reinstalled.  Any suggestions???

Thanks...

Also, which Honeywell site are you logging into?  Is it www.mytotalconnectcomfort.com or is it europe.mytotalconnectcomfort.com?  The app currently only supports North America.  Maybe that is something CudaNet and mikee could consider adding in this updated version of the app?? But I don't want to put more on their plate than what they already have.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 21, 2015, 07:50:25 pm
thanks for testing lingerba. Just run it as you normally would. The biggest changes are the auto-confg fixes and auto re-authenticate. You should not see the plugin stop refreshing like it used to. There is still an issue where if the authentication fails it will not try again and essentially stop. This is fixed in the version I am working on as it will continue to retry the auth at 60 minute intervals (configurable down to 10 minutes).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Lindsey on December 21, 2015, 11:58:27 pm
In response to the problem of logging in with my credentials, I am currently using version 1.2.  I have two thermostats both with are Honeywell Model # RTH8580WF Wi-Fi Programmable Touchscreen Thermostat.  I am using veraEdge controller.

To make sure I'm explaining myself correctly, after I install the plugin for Honeywell app, It gives me a new device number which I click on.  I assign it a room.  After that, I go to TCC Setup and type in my user name and password.  I then login and receive the error...

"Unsuccessful. Error code 200"
"HNYWL TCC: : Honeywell thermostat user authentication failed. Check TCC Setup"

I take the same username/password and go directly to the Total Connect Comfort website and login successfully.  I have changed my password and that didn't help.  I have uninstalled the plugin several times and that makes no difference.  If you would like, I can give you my user name and password and let you try it.

I have also tried multiple browsers on the mac.

Thanks for the support.  Hope this will work for me.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 12:32:40 am
Lindsey, what website are you logging into ? We expect a redirect (response code 302) on the authorization request. It looks like you do not get this but it looks like your request has succeeded (response code 200).

We can try allowing both response codes and see if it solves the problem for you. To test this you will need to be able to load the 3 files I sent out this AM (8:50). I can post a new version to try.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 09:26:30 am
@Mikee,
I do recall a time where I was seeing a status of 200 (I don't know why) but I know we expect a redirect on that page (302). It's highly possible the status is 200 but the page is displaying an error.

@Lindsey,
Are you comfortable installing Info Viewer (a manual process) ? I'll see if I can find a link to it on this site (assuming you don't already have this installed). This will allow you to load Mikee's updates (if you haven't already done that) and we can see the log data when it makes the initial call.

Edit: Here is the link to Info Viewer:
http://forum.micasaverde.com/index.php/topic,13477.0.html (http://forum.micasaverde.com/index.php/topic,13477.0.html)

Edit: And here's some brief instructions on use.
[1] Open Info Viewer
[2] Click on Set Pattern
[3] Enter the following pattern "HNYWL TCC"
[4] Click Update
[5] Click Info Viewer Page
[6] Click View Logs: Vera Log File
[7] You now have access to the log data.
[8] Store the log data to a file (.txt) and post them.
Important: Please make sure you don't post personal information (username/password/stat ID etc.). Just "x" those items out.

Lindsey, what website are you logging into ? We expect a redirect (response code 302) on the authorization request. It looks like you do not get this but it looks like your request has succeeded (response code 200).

We can try allowing both response codes and see if it solves the problem for you. To test this you will need to be able to load the 3 files I sent out this AM (8:50). I can post a new version to try.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 22, 2015, 09:52:09 am
Uploaded the files to VeraLite with UI7 running app version 1.2 and everything initially is working fine with 2 thermostats.  I'll keep you posted.  Thanks everyone. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:40:39 am
@Lindsey

My guess here is that you have special characters in your password, most likely '&'. Try a password with just letters and numbers and let me know.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Lindsey on December 22, 2015, 01:24:11 pm
Bingo.  It was my password.  It had an "&" in the password.  The plug in accepted the credentials.

However, now it won't find any thermostats.  Just to make sure they are comparable, I'm using...

Honeywell Model # RTH8580WF Wi-Fi Programmable Touchscreen Thermostat

I will keep playing with it and see what happens.  If you have any suggestions, it would be appreciated.

Thanks again....

Greg
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 01:31:41 pm
Good call, I'd never had guessed that one...

@Lindsey

My guess here is that you have special characters in your password, most likely '&'. Try a password with just letters and numbers and let me know.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Lindsey on December 22, 2015, 03:38:20 pm
So I'm able to get logged in now, but no devices are being found. 

In reading the forum, it sounds like it's better to upload the files manually????

If so, what is the most current link to the files?  And, when you say connect to the unit, I'm assuming you want to FTP into the IP of the unit.  When I do so, it will not allow it.  Says there are other users on the device.  I've rebooted and still can't get passed connecting to unit.  Maybe I'm not doing it correctly or something.

So if I need to upload files because the plugin cannot see any devices, could you please give me a little better instructions on how to do this.  I'm a newbie but I learn fast.  Also include a link to the newest files.

Thanks again.

Greg
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 03:48:54 pm
Greg,

[1] Download the 3 files (.json/.xml/.lua) attached by Mikee.

These are located on thread #351/page 24. On your Vera, do the following (assuming you have UI7):

[2] Goto > [Apps] [Develop Apps]
[3] Select Luup Files.
[4] Click [upload].
[5] Navigate to the first file; repeat for the remaining two.
[6] Your system will reload.
[7] Done.

Hope that helps.

So I'm able to get logged in now, but no devices are being found. 

In reading the forum, it sounds like it's better to upload the files manually????

If so, what is the most current link to the files?  And, when you say connect to the unit, I'm assuming you want to FTP into the IP of the unit.  When I do so, it will not allow it.  Says there are other users on the device.  I've rebooted and still can't get passed connecting to unit.  Maybe I'm not doing it correctly or something.

So if I need to upload files because the plugin cannot see any devices, could you please give me a little better instructions on how to do this.  I'm a newbie but I learn fast.  Also include a link to the newest files.

Thanks again.

Greg
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Lindsey on December 22, 2015, 04:43:06 pm
OMG...  It was right there in front of me on how to upload files.  You spelled it out very clearly on how to do it.  I just wasn't thinking it was that easy.  Let me play with it.

Thanks...  Greg

PS...  It's working fine now.  I actually see the devices. 

Thanks so much...

Greg

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 04:44:14 pm
Greg,

You don't want to SSH/FTP or attempt to move those files onto the Vera yourself. Vera automatically LZOP's (compresses) them to maintain storage as we're limited on these devices. Rather, they must be loaded from your Vera directly using the UI. I've included the steps in my previous post. Here's a screen shot which I hope helps.

Thanks CudaNet...

I did download the three files, but I just can't figure out how to connect and upload to the device.  I've tried FTP with various passwords, I've tried SSH where I can get in, but not sure what to do from there.

So please help me get past this point.  I would really love to connect to my thermostats.

Sorry for the inconvenience but I'm obviously missing a few steps in doing this for the first time.

Thanks...  Greg
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 04:48:55 pm
No problem - glad it helped out. As I indicated in my previous post, these files are stored compressed when using the UI. If you were to download them from Vera (again, using the UI), they are decompressed. You really never see the .lzo unless you SSH into the unit itself.

Just a tid bit of information for you going forward. Here's hoping your next post is success !

OMG...  It was right there in front of me on how to upload files.  You spelled it out very clearly on how to do it.  I just wasn't thinking it was that easy.  Let me play with it.

Thanks...  Greg
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 04:56:20 pm
I have the next version of the plugin ready. Lindsey, hopefully this fixes your issue with special characters in the password. I changed my password to include '&' and verifies it works.

1. I commented the code as best I could
2. Cleaned up the variable names
3. Added a sanitizer for device variables to ensure limits are always enforced
4. URL encode username and password so special characters can be handled
5. Added log controls
    LogEnable - 0/1 controls basic logging
    LogHttpEnable - 0/1 controls logging HTTP replies
    TraceEnable - 0/1 controls logging function calls and arguments and fcuntion return and results
6. Revert to stock json parser (L_HoneywellTCC_json.lua no longer used)
7. Fix a bug in setting the username/password
8. Fix a bug in GetChildID where the vera device for thermostats was not found on refresh. This causes the thermo screen to not update properly.

Should work better ...

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 05:00:40 pm
I have the next version of the plugin ready. Lindsey, hopefully this fixes your issue with special characters in the password. I changed my password to include '&' and verifies it works.

1. I commented the code as best I could
2. Cleaned up the variable names
3. Added a sanitizer for device variables to ensure limits are always enforced
4. URL encode username and password so special characters can be handled
5. Added log controls
    LogEnable - 0/1 controls basic logging
    LogHttpEnable - 0/1 controls logging HTTP replies
    TraceEnable - 0/1 controls logging function calls and arguments and fcuntion return and results
6. Revert to stock json parser (L_HoneywellTCC_json.lua no longer used)
7. Fix a bug in setting the username/password
8. Fix a bug in GetChildID where the vera device for thermostats was not found on refresh. This causes the thermo screen to not update properly.

Should work better ...

I assume this also fixed the re-authentication issue?  (probably the username/password issue you mentioned)

I have uploaded these files for testing.  I will let you know if I see anything.  If everything is good, what has to be done to get these added to the app store?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 05:04:47 pm
Yes, this version does re-authentication. The username/password was a typo where I missed the first argument to a function.

I sent a note to vera asking about the app store. Not sure how it works but hopefully will figure it out. I am not sure if I can update the existing app, would be nice if I could (but probably scary at the same time).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 05:53:29 pm
SO glad you ditched that json parser and added log controls.... Saaaweeet ! As for having them load this revision to the app store, I don't see any reason why they wouldn't....

I have the next version of the plugin ready. Lindsey, hopefully this fixes your issue with special characters in the password. I changed my password to include '&' and verifies it works.

1. I commented the code as best I could
2. Cleaned up the variable names
3. Added a sanitizer for device variables to ensure limits are always enforced
4. URL encode username and password so special characters can be handled
5. Added log controls
    LogEnable - 0/1 controls basic logging
    LogHttpEnable - 0/1 controls logging HTTP replies
    TraceEnable - 0/1 controls logging function calls and arguments and fcuntion return and results
6. Revert to stock json parser (L_HoneywellTCC_json.lua no longer used)
7. Fix a bug in setting the username/password
8. Fix a bug in GetChildID where the vera device for thermostats was not found on refresh. This causes the thermo screen to not update properly.

Should work better ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 07:02:26 pm
I am now getting "Unsuccessful. Error code: 4" for my refresh status.  I have no control of my thermostats.  It says authorization was successful.

Note - I installed the three most recent files you provided.  I installed these - replacing the previous three files you provided, and those where installed over the files from version 1.2 from the app store.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:05:21 pm
can you supply any logs ? You can PM but remember they contain passwords!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 07:06:41 pm
absolutely as long as you can tell me how to obtain the logs! :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:09:52 pm
first lets try something simple, send me the special characters you use in your username and password (anything that is not a letter or number). I'll create a test case and make sure it is handled properly. Probably best to PM ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 07:15:21 pm
It's only letters and numbers, no special characters. The password has worked fine until this newest update.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:17:42 pm
Oh, but to answer your question, go to the TCC setup device (where you enter your password).

1. Click Advanced
2. Click the Variables tab
3. Scroll until you find LogEnable, set the value to 1 and click outside the text box to set it
4. Scroll until you find TraceEnable, set the value to 1 and click outside the box to set it

Now the unit is logging, go back and retry the login.

Now you need to extract the log. CudaNet posted earlier instructions on how to do this. Can you ssh to your vera ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:22:40 pm
Yeah, I changed the way the credentials are sent. I just changed my password to numbers and letters and it logged in fine. Let's see what the logs says. Sorry about this...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 07:24:32 pm
I started the logging.  I am now working on the SSH to get the log.

Just so we are clear, my authentication is successful.  That part works fine.  The blue banner even says something along the lines of "authentication was successful and devices were found". 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:28:02 pm
OH, that is good, narrows it down. I'll check the code after this point looking for oddities... Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:42:34 pm
If you have ssh access you can type 'grep HNYWL_TCC /var/log/cmh/LuaUPnP.log > res.txt'. Then exit back you your host machine and run 'scp root@<vera-ip>:res.txt .' and enter you password. You can then sanitize this file and send it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 07:45:10 pm
Argh, I mean 'grep "HNYWL TCC" /var/log/cmh/LuaUPnP.log > res.txt', i.e. space instead of underscore.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 07:59:40 pm
I am sorry to be such s noob, but I don't know what you mean when you say, "Then exit back you your host machine and run 'scp root@<vera-ip>:res.txt .' and enter you password."

I got the first part done.  Also, I don't know my root password, so I am doing SSH via "remote".
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 08:04:59 pm
Ahh, no problem. I assume you are running ssh from the machine you are also running your browser on and this is where you will upload the file from. You type ssh to get to the vera. When you type 'exit' in vera you come back to that machine and end the ssh session. scp is a command that copies a file over an ssh link. So you now have the file in the default directory of the account yo used to ssh into vera (remote).

When you type 'exit' and end the ssh session type 'scp remote@<vera-ip>:res.txt .' to copy the file from vera to the directory you are now in. This is where you will get the file when posting. Does this make sense ? Thanks for all the effort to get this info, I just can't see how we pass authentication yet get an auth failed error code (4).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 08:22:31 pm
I guess I am still missing something...

I am using the application "PuTTY" to perform the SSH.  after I do the first part and then type "exit", the application closes.  I am not sure where I am supposed to perform the second part.  When I open the PuTTY application again, the only real option I have is to enter my Vera's IP address.  Then it opens a new session where it prompts me, "login as:".  If I put what you have told me to, then it will not accept my password.  I am pretty sure I am not doing this correctly.

Thanks for your patience with me!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 08:22:32 pm
I did see an issue with the return status from login. Used to be a boolean and I changed it to return a status. I don't knopw why it would work here but not there. Anyway, try this file and see if it fixes the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 08:30:04 pm
I did see an issue with the return status from login. Used to be a boolean and I changed it to return a status. I don't knopw why it would work here but not there. Anyway, try this file and see if it fixes the problem.

That doesn't seem to have made any difference.  Still need your help with the log thing...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 08:41:41 pm
OK, sent you a PM. We can resolve it there.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 08:45:47 pm
Here is my log file.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 08:47:02 pm
Could the issue be that I renamed the thermostats in Vera?  So their device names are different than what they are called in the Honeywell TCC system?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:02:16 pm
Could the issue be that I renamed the thermostats in Vera?  So their device names are different than what they are called in the Honeywell TCC system?

For what it is worth, I renamed my thermostats (in Vera) to match what they are called in Honeywell TCC).  This did not make a difference.  I also moved them to the same "room" as the parent Honeywell TCC device and that did not help either.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:14:48 pm
Here is another log file.  This includes a couple of times when I clicked the "refresh" button in the TCC setup screen.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 09:16:04 pm
Yes, the devices are linked by ID not by name (or room). The TCC ID is stored in the vera thermo device's altId entry. There is one other possibility. I made a change that breaks out of the translation loop at the first match thinking that the remaining compares would be a waste of time. However, if you have old devices from a previous install this may break. I have removed the break so the highest number device's translation will be used (the last one added). See if this change solves your problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:21:49 pm
That doesn't seem to have helped.  Same error code/status.  And now 2 of my 3 thermostats lost their setpoints & current temperatures (not that they were correct anyway).  They are just shows 0.0F.  The 3rd one still shows a setpoint and temperature, but it is from hours ago (it is not what the actual thermostat is currently showing).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:25:02 pm
If you want me to try, I can uninstall the app, and then re-install it fresh with you updated files from earlier today to see if that changes anything.  I can also try reinstalling your files from yesterday to see if they come back.

Please note, if you don't think it is going to help, I don't want to do it.  This is because if I delete and add new devices, I will have to reconfigure all of my logic in PLEG to reflect the new devices.  But if you do think it will help, I have no problem doing that.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 09:32:39 pm
No, you dont need to uninstall. I don't see the call to getStatus actually return. Please ssh back to your vera and grep the log file for 'nil' and see if the plugin crashed. I see the getStatus return in the bad credentials test but not in the good credentials path. I can also add more log statements and post a new version for you. Thanks for helping sort this out!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:42:01 pm
Here is a log file for 'nil".
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 09:46:01 pm
Try this version and grab a HNYWL TCC log.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 09:51:39 pm
Hmm, let me see what my logs are telling me. I just noticed it hasn't responded since I loaded the files.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 09:52:31 pm
Uploaded the new file.  Same visual results from the Vera devices.  New log file attached.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:11:50 pm
Hmmm, I see the status string from the HTTP response but the json decode does not seem to return. We are using a different json decoder and my unit test might not use vera's json library. I'll try to get that fixed and see if that is the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 10:18:43 pm
I believe UI7/MCV has opted for dkjson.. I've observed logs cycle on my system but it is definitely crashing out the system as I'm seeing restarts.

Hmmm, I see the status string from the HTTP response but the json decode does not seem to return. We are using a different json decoder and my unit test might not use vera's json library. I'll try to get that fixed and see if that is the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 10:25:49 pm
I changed over to dkjson to see if this helps... Looks good so far but I'll wait through a couple of refreshes

Code: [Select]
50      12/22/15 21:24:57.290   luup_log:245: HNYWL TCC: STATUS HEAT: 2 <0x2ca82680>
50      12/22/15 21:24:57.291   luup_log:245: HNYWL TCC: STATUS COOL: 2 <0x2ca82680>
50      12/22/15 21:24:57.291   luup_log:245: HNYWL TCC: SYETEM SWTITCH POS: 2 <0x2ca82680>
50      12/22/15 21:24:57.292   luup_log:245: HNYWL TCC: LOAD: 127.5 <0x2ca82680>
50      12/22/15 21:24:57.293   luup_log:245: HNYWL TCC: Heat Next / Scheduled : 25 / 66 <0x2ca82680>
50      12/22/15 21:24:57.309   luup_log:245: HNYWL TCC: Getting local temperature scale <0x2ca82680>
50      12/22/15 21:24:57.319   luup_log:245: HNYWL TCC: updated json= { "full": 1, "version": "*1.7.730*", "model": "Sercomm NA900", "zwave_heal": 1, {removed by Cuda}

50      12/22/15 21:24:57.495   luup_log:245: HNYWL TCC: Got local temperature scale <0x2ca82680>
50      12/22/15 21:24:57.496   luup_log:245: HNYWL TCC: convertTemp: from F to F <0x2ca82680>
50      12/22/15 21:24:57.497   luup_log:245: HNYWL TCC: convertTemp: from F to F <0x2ca82680>
50      12/22/15 21:24:57.497   luup_log:245: HNYWL TCC: convertTemp: from F to F <0x2ca82680>
50      12/22/15 21:24:57.498   luup_log:245: HNYWL TCC: convertTemp: from F to F <0x2ca82680>
50      12/22/15 21:24:57.510   luup_log:245: HNYWL TCC TRACE: honeywellToTime tccTimeNumber=25, <0x2ca82680>
50      12/22/15 21:24:57.511   luup_log:245: HNYWL TCC TRACE: honeywellToTime return retTime=6:15 AM, <0x2ca82680>
50      12/22/15 21:24:57.512   luup_log:245: HNYWL TCC TRACE: honeywellToTime tccTimeNumber=25, <0x2ca82680>
50      12/22/15 21:24:57.514   luup_log:245: HNYWL TCC TRACE: honeywellToTime return retTime=6:15 AM, <0x2ca82680>
50      12/22/15 21:24:57.517   luup_log:245: HNYWL TCC TRACE: refreshTUI return <0x2ca82680>
50      12/22/15 21:24:57.518   luup_log:245: HNYWL TCC TRACE: refreshStatus return statText=Successful refresh., statResult=1, <0x2ca82680>
50      12/22/15 21:24:57.519   luup_log:245: HNYWL TCC TRACE: refreshAllStatus return statText=Successful refresh., statResult=1, <0x2ca82680>
50      12/22/15 21:24:57.519   luup_log:245: HNYWL TCC TRACE: updateCredentials return <0x2ca82680>
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 10:30:47 pm
Well, the good news is the parser works using dkjson. Bad news is it's still crashing. Once crashed it starts init all over again.

Code: [Select]
50      12/22/15 21:25:04.100   luup_log:245: HNYWL TCC: task Clearing...
Info Viewer ajax error - possibly malformed XML received:
500 - Internal Server Error
50      12/22/15 21:29:38.401   luup_log:245: HNYWL TCC TRACE: init lul_device=245, <0x2c3e6680>
50      12/22/15 21:29:38.403   luup_log:245: HNYWL TCC TRACE: init return <0x2c3e6680>

50      12/22/15 21:29:39.101   luup_log:245: HNYWL TCC TRACE: updateCredentials <0x2cfe6680>
50      12/22/15 21:29:39.101   luup_log:245: HNYWL TCC: task Honeywell TCC: Authorizing credentials... <0x2cfe6680>
50      12/22/15 21:29:39.103   luup_log:245: HNYWL TCC: task Clearing... <0x2cfe6680>
50      12/22/15 21:29:39.113   luup_log:245: HNYWL TCC TRACE: retrieveLoginCookie username={removed by Cuda}, password={removed by Cuda}, <0x2cfe6
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:32:47 pm
Yeah, I think it is the \r\n sequence in the json response that is causing issues. I filtered them out and it seems to work. But if dkjson does not have the issue and is the preferred decoder (I thought it was json-dm, which I *do* use in my unit test). Odd thing is that when I load the test response from a file it works, when I load from a string it fails....

Do you have a suggestion as to which fix to take ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:34:12 pm
Try this change
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 10:37:09 pm
Edit: Just realized you're grabbing the the scale... Can't tell I'm tired...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 10:39:06 pm
Try this change

No dice.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 10:41:32 pm
I'm trying to recall as I remember seeing threads about the changeover of JSON parsers. Let me look research before I send us spinning in the wrong direction.
As for loading from a file or a string, either way it should work. Does the string simply indicate it's malformed ?

Yeah, I think it is the \r\n sequence in the json response that is causing issues. I filtered them out and it seems to work. But if dkjson does not have the issue and is the preferred decoder (I thought it was json-dm, which I *do* use in my unit test). Odd thing is that when I load the test response from a file it works, when I load from a string it fails....

Do you have a suggestion as to which fix to take ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:46:11 pm
Argh, OK back to the original json parser. Try this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 10:49:40 pm
Yes!  Everything is working.  Is there anything that may not be working now that I should look for? (i.e. re-authentication issues as discussed earlier)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 10:57:49 pm
Phew, thank you both so much for your patience. I guess we'll need to keep the other parser.

Yes, please verify the re-auth. I believe the cookie expires in a bit over 24 hours and the re-auth defaults to 24 hours. That may be too close (I thought it was 2 days but I'll need to verify). You can change the value with ReAuthInterval in the TCC device Variables tab (where you enabled logging). The value is in minutes vs the RefreshInterval which is in seconds, we should probably change them to match but I felt that 86400 was not a number folks would be comfortable with.

So we need to watch make sure the thermostats keep working for long periods. You will see the authentication time updated on the TCC device main dialog page.

Make sure your triggers and other controls work as you expect.

And thank you!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 22, 2015, 11:00:33 pm
I will work on testing the various functionalities tomorrow.  From my initial quick testing, everything looks good.  I will keep any eye on the authentication.

I appreciate you thanking me, but really, I need to thank you!  You are doing the hard work!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 11:08:23 pm
Sorry Mikee, I think I'm a bit overly tired and I've had a couple of drinks. Impairment and code don't mix. All looks good on my end as well.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 11:15:14 pm
No problem at all. Enjoy!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 11:15:55 pm
Hmm, still crashing my system...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 22, 2015, 11:21:46 pm
Can you get me logs ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 11:26:37 pm
Yes, I'm rebooting the box first then I'll PM you logs. Let's take this offline.

Can you get me logs ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 22, 2015, 11:49:48 pm
I guess we can't send files via PM.. Attached
Edit: And it appears it's no longer showing signs of life... These are the last log entries.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 23, 2015, 09:12:33 am
So far everything still seems to be working from the Honeywell perspective.

Is there any chance any of the updated files last night could have some how affected my ping sensors?  They are no longer working..??  I am trying to figure out if that is somehow related to the stuff we were doing last night.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 23, 2015, 09:17:05 am
I'm curious, do you happen to have System Monitor installed ?

So far everything still seems to be working from the Honeywell perspective.

Is there any chance any of the updated files last night could have some how affected my ping sensors?  They are no longer working..??  I am trying to figure out if that is somehow related to the stuff we were doing last night.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 23, 2015, 09:20:27 am
Not that I know of. Is that an app that I install from the App Store?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 23, 2015, 09:26:11 am
Yes, It allows us to monitor system resources (memory, luup reload etc). I may have to restore an image and load Mikee's latest files and try again. I'm reloading luup every 10 minutes now. I've reverted back to the very 1st changes (3 revisions back) which showed no issues whatsoever. The good thing is I've documented all the results for each test.

Vera can temperamental ! All in all I just don't want my restarts to be confused with the code releases and I don't want Mikee wasting time tracking down an issue with Vera. It might also be helpful for us to show what version of firmware we're running, of course this will differ between a Vera3 and and Edge but it might be helpful...

Not that I know of. Is that an app that I install from the App Store?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 23, 2015, 09:35:16 am
No, his code shouldn't cause any issues with ping sensors. However you might want to install System Monitor and keep an eye on your resources and reloads as they can cause an issue.

So far everything still seems to be working from the Honeywell perspective.

Is there any chance any of the updated files last night could have some how affected my ping sensors?  They are no longer working..??  I am trying to figure out if that is somehow related to the stuff we were doing last night.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 23, 2015, 10:10:35 am
Well at least I now know what's causing my restarts. I'm going to pull this plugin and cleanup all the files related and start from ground up using Mikee's new files.

Code: [Select]
50 12/23/15 9:04:37.284 luup_log:245: HNYWL TCC: >> HNY: updateCookieTableFromHeaderString() 'cookieString' [EccMyTcc=(removed); path=/; expires=Thu 24-Dec-2015 15:16:59 GMT, ADRUM_BT=R%3a40%7cclientRequestGUID%3aa8e50860-29b7-4010-9551-eb888b83d3df; expires=Thu 01-Jan-1970 05:00:00 GMT; path=/, ADRUM_BT=R%3a50%7cclientRequestGUID%3a037e9476-29f3-4889-87bb-ddf7df6b410d; expires=Wed 23-Dec-2015 15:05:07 GMT; path=/, ADRUM_BT=R%3a40%7cclientRequestGUID%3aa8e50860-29b7-4010-9551-eb888b83d3df; expires=Thu 01-Jan-1970 05:00:00 GMT; path=/, ADRUM_BT=R%3a40%7cclientRequestGUID%3aa8e50860-29b7-4010-9551-eb888b83d3df; expires=Thu 01-Jan-1970 05:00:00 GMT; path=/, ADRUM_BT=R%3a50%7cclientRequestGUID%3a037e9476-29f3-4889-87bb-ddf7df6b410d; expires=Thu 01-Jan-1970 05:00:00 GMT; path=/, ADRUM_BT=R%3a50%7cclientRequestGUID%3a861704b4-9521-4d76-821a-e52fe542b76e; expires=Wed 23-Dec-2015 15:05:07 GMT; path=/,] << <0x2c62c680>
01 12/23/15 9:04:37.319 LuaInterface::CallFunction_Timer-5 function updateCredentials failed [string "module("L_HoneywellTCC_json", package.seeal..."]:366: Unexpected character at Line 1 character 1:  (31) when reading object ({ or [ or ' or " or number or boolean or null expected)
Context:
� <0x2c
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 23, 2015, 10:21:38 am
Sorry, been real busy with holidays/family.  I had a nil/host not found response yesterday with the original Mikee files.  Just uploaded the most recent lua file and everything connected/refreshed fine.  I'll keep you posted.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 11:00:56 am
I changed a string replace in that code and it looks like that may be causing the issue. Can you set LogHttpEnable=1 and capture a log so I can see the offending json ?

One other thing I don't like is the plugin services all thermos in a single timer callback. I fear this may cause issues with response times especially for folks with many thermos. I have seen a couple messages in my logs about excessive service times. Are there limits or expected limits on the amount of time a callback can run ?

Also, I reorganized things so I could run lualint to find undefined references. I found one in the status update (swithcPos).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 11:05:14 am
yeah, last night I could not log into the Honeywell site. Seemed to come back fairly fast. No need for apology, family first.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 23, 2015, 11:28:41 am
Here's the log so far.  I installed the log viewer after your most recent lua update. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 11:52:02 am
Here is the latest version I am running.

1. Fix typos in status for switch position and fan status
2. Remove the check for temperature on each update. Now done at init since it is unlikely you will be changing your vera temp units from C to F more than once.
3. run lualint to find undefined references
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 23, 2015, 11:57:48 am
Uploaded the newest...

FYI - a typo on the Last Refreshed status.  Need a space between the day and time.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 23, 2015, 12:33:17 pm
I uploaded the new file and everything seems to be working fine.

Per earlier suggestions, I installed the system monitor.  So far my only reset was due to me uploading the new LUA file for the Honeywell TCC.

Here are my stats, which I believe are good:
Memory Available: 27540
CPU Load  1 Minute: 0.25
CPU Load  5 Minute: 0.36
CPU Load 15 Minute: 0.36
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on December 23, 2015, 02:33:18 pm
Fahrvergn?gen !!

I've removed all the files, cleaned up the system and started from scratch. I wanted to wait for an hour or so - keeping a close watch on the system. So far everything looks stable. Not sure why this all happened but then again this is Vera - so who knows. Right now I'm not running any logs/traces. The System monitor shows things are all calm, no restarts since 11:55 and my resources look good.

Code: [Select]
Mem Available 98216 kilo bytes
CPU Load (1 minute)0.36
CPU Load (5 minute)0.3
CPU Load (15 minute)0.26
Last CMH RebootLast Vera Restart 09:00:23 Wed 23 Dec 2015
Last Luup Restart 11:55:26 Wed 23 Dec 2015

Before I lose an opportunity to say so (I'm leaving the office and heading out of town), EVERYONE please have a safe/enjoyable holiday. Mikee, I can't thank you enough for all your hard work, patience - everything. Again, Happy Holidays to everyone and your families.....
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 02:40:17 pm
@jlind

The UI display definition is a bit limited here as the items that display on the dash tile are shared with the items that display on the first control panel. The size of the display area is different so you can be more verbose in the control panel than you can in the dash tile. The 'Refreshed' and 'Status' labels are shared as are the time and the status. The labels 'Last' and 'Refresh' as well as the date are not shared and only displayed on the control panel so you get 'Last Refreshed' and 'Refresh Status' on the panel along with the date and time. The alignment is done by offsets. I think that the fonts that are used are not fixed size so the date will vary in width sometimes giving the appearance of a missing space. There has to be a better way to do this and I'll see if I can find one. Unfortunately I don't see a way to display things on the tile and not in the control panel so it is not as easy as specifying one set of items for the tile and one for the panel...

Having said all this, I think we can fit the fill date/time in the tile and use the same format on both. We'll see ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 02:44:25 pm
@CudaNet

Nice! I tried everything I could think of last night to repro this. No luck. Glad it has all settled down ...

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 03:06:27 pm
@jlind

Try this layout for the dash tile and control panel. Should display the full date on both dash and control panel.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 23, 2015, 06:36:18 pm
Got a host not found error since the last posting.  It did go away.  Attached is the log.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on December 23, 2015, 06:39:11 pm
@Mikee - the new json file worked for the date/time.  Thanks for the update. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: timjanssen on December 23, 2015, 07:12:05 pm
Any thoughts on why my thermostat wouldn't be discovered? The login was successful.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 23, 2015, 10:07:04 pm
Thanks for the log. It looks like the right thing happened here, the auth failure triggered a re-authenticate and things picked up again. I am not happy with the overall retry behavior of the plugin so I'll be reworking that but in this case it worked properly.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: HavingK on December 29, 2015, 06:22:14 am
When will this plugin be available for europe you think? I think more europeans would like there Honeywell implemented in Vera as well
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 29, 2015, 09:22:12 am
I need to be able to log into an account with thermostats to develop this. I believe I have the APIs but I don't have access to test it. If you are willing to set up an account PM me.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 31, 2015, 12:48:05 pm
Update on where the plugin is currently. It has been pretty well rewritten. I split the Vera front end stuff from the honeywell back end stuff so I could have multiple backends. I currently have 4, the original TCC APIs, the mobile APIs, the Lyric APIs and the European APIs. They all seem to be operating on the same set of data (except lyric) but do so with different APIs, sigh.

I created an account in europe and moved one of my thermos over so I could test the interface. Seems to work. I have lingerba's Lyric running as well as my original TCC thermo. Kinda amusing, I am controlling my mudroom from the UK.
All backends can operate in one vera but you need to have an instance of the plugin for each API (each API can have up to 8 thermos in multiple locations). I am running 3 instances now, Lyric, Legacy and Euro.

Anyway, the cost of all this is a more complex plugin and a few new files. There are currently 6 lua files:

L_HoneywellTCC.lua - the front end
L_HoneywellTCC_const.lua - common constants
L_HoneywellLib_legacy.lua - the existing backend API
L_HoneywellLib_mobile.lua - the Mobile V2 XMl based API
L_HoneywellLib_lyric.lua - the Lyric API
L_HoneywellLib_webapi.lua - the European API

There is a new icon for Lyric as well and right now it need to be manually installed. I am not sure how to package all this without publishing it as an app.

Progress ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 31, 2015, 01:38:12 pm
This is awesome news and great progress.  Thank you so much for all of the work!  I think it may be worth publishing a separate app for Lyric is Honeywell does intend for it to be a completely separate platform form TCC.  They will be developing additional devices beyond the thermostat on that platform as well so it might be good to just have the Lyric be separate from the beginning.  (note - this is easy for me to say since I am not doing the work, if this creates more work for you, then it may not be worth it).

Anyway, do you have any files you can share for testing?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 31, 2015, 01:42:40 pm
So far everything still seems to be working from the Honeywell perspective.

Is there any chance any of the updated files last night could have some how affected my ping sensors?  They are no longer working..??  I am trying to figure out if that is somehow related to the stuff we were doing last night.

I know this is a really weird issue, but I was having issues with the ping sensor ever since installing some of these "beta" lua files over the last couple of weeks.  The ping sensor(s) would work fine for about a day and then they would completely stop responding.  If I would restart my vera (or restart luup) they would work fine again.  I installed system monitor and I didn't see anything out of the ordinary.  I uninstalled and reinstalled the ping app and still had the same issue.  Two days ago I uninstalled the Honeywell app and since then I have not had any issue with the ping sensors.  I am going to reinstall the Honeywell app today (hopefully the newest/updated version that mikee has been working on) and see how that goes.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 31, 2015, 03:41:07 pm
Here is the latest plugin. You need to install all files as they have all changed. The two icons go in
/www/cmh/skins/default/img/devices/device_states. I think you will be fine without them, the lyric dashboard icon will just not switch to the lyric. The others all use the same icon as I haven't found anything suitable yet.

To install:

1. Upload all S_, I_, D_ and L_ files with the restart checkbox selected. You can skip the icons unless you are really bored.
2. Wait for the restart to complete

If you did not delete your existing TCC device you will be connecting as usual and if you don't need any additional interfaces you can skip the remaining steps. If you are starting from scratch or if you want to add a Lyric follow the next steps.

3. Create a new device, enter D_HoneywellTCC1.xml in the Upnp Device Filename, I_HoneywellTCC1.xml in the Upnp Implementation Filename and a name in the Description input box.
4. If you are going to connect to multiple backends then repeat with a different name in the Description box for each instance you need (this is not typical but if you have Lyric and Wifi thermostats you will need to do this).
5. Reboot the vera. I am not sure if a Luup restart would suffice but just to be safe reboot.
6. When it comes back go to the new devices, select the Setup page (used to be TCC Setup) and select the interface type and your login credentials. You will see 4 buttons under the login input boxes marked "TCC", "Euro", "Mobile" and "Lyric". For US based installations you can use "TCC", "Mobile" or "Lyric". For European installations you can use "Euro" and *maybe* "Lyric", I don't know about that one.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Colorado-Al on December 31, 2015, 03:59:19 pm
New files in zip cause "Startup Lua Failed" in my Vera Lite UI5
Files from this post are working:
http://forum.micasaverde.com/index.php/topic,30125.msg261483.html#msg261483

Thanks for all your hard work!
Al
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 31, 2015, 04:02:59 pm
Argh, I don't have access to UI5 machines. Can you grab a log (or scan it to see if a require file is missing or something) ?

Thanks,
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on December 31, 2015, 04:13:15 pm
Three things:

1 - I installed the lua files you posted and they work fine on my Veralite with UI7.  I will let you know how it goes over the next couple of days.
2 - I do not know where or how to access the "/www/cmh/skins/default/img/devices/device_states" directory that you posted.
3 - I think the attached file would be a better icon to use for Lyric. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on December 31, 2015, 04:18:30 pm
Nice, I updated the icon. Looks good. Thanks! Oh, if you have logging enabled still you might try turning it off to see if it is interfering with your ping sensors. I am not sure what the mechanism is but it seems clear the new plugin is doing something disruptive.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Colorado-Al on December 31, 2015, 04:52:01 pm
Argh, I don't have access to UI5 machines. Can you grab a log (or scan it to see if a require file is missing or something) ?

Thanks,

Will do. Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Colorado-Al on December 31, 2015, 10:16:18 pm
Argh, I don't have access to UI5 machines. Can you grab a log (or scan it to see if a require file is missing or something) ?

Thanks,

I sent logs to you by PM.
Hope they help.

Wondering if there is any way to query the humidity from the Honeywell?
Thanks for all your hard work!

Happy New Year all!
Al
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 01, 2016, 12:30:52 am
Thanks for the logs. Looks like dkjson is not available in UI5. I have changed the library to json-dm which should be available on both. There was a problem with this library when <CR><LF> characters were present in the json but I filter them out now so I think it will be fine.

The humidity info is present (if the thermo supports it) as well as outside temp and some forecast info on some platforms. The issue is how to present this. The thermostat dash tile is hardcoded so it is difficult to augment it. We could create another child device to show this info. The presentation stuff in UI7 is pretty weak and not well documented so it would likely be a pretty bland tile.

Happy new year!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on January 01, 2016, 01:18:25 am
I am a newbie and bit confused.  Am I correct if I delete the existing device from system and instal as per the quote below, it will create new devices and work properly ?

Here is the latest plugin. You need to install all files as they have all changed. The two icons go in
/www/cmh/skins/default/img/devices/device_states. I think you will be fine without them, the lyric dashboard icon will just not switch to the lyric. The others all use the same icon as I haven't found anything suitable yet.

To install:

1. Upload all S_, I_, D_ and L_ files with the restart checkbox selected. You can skip the icons unless you are really bored.
2. Wait for the restart to complete

If you did not delete your existing TCC device you will be connecting as usual and if you don't need any additional interfaces you can skip the remaining steps. If you are starting from scratch or if you want to add a Lyric follow the next steps.

3. Create a new device, enter D_HoneywellTCC1.xml in the Upnp Device Filename, I_HoneywellTCC1.xml in the Upnp Implementation Filename and a name in the Description input box.
4. If you are going to connect to multiple backends then repeat with a different name in the Description box for each instance you need (this is not typical but if you have Lyric and Wifi thermostats you will need to do this).
5. Reboot the vera. I am not sure if a Luup restart would suffice but just to be safe reboot.
6. When it comes back go to the new devices, select the Setup page (used to be TCC Setup) and select the interface type and your login credentials. You will see 4 buttons under the login input boxes marked "TCC", "Euro", "Mobile" and "Lyric". For US based installations you can use "TCC", "Mobile" or "Lyric". For European installations you can use "Euro" and *maybe* "Lyric", I don't know about that one.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 01, 2016, 08:30:12 am
My ping sensors stopped working again.  I also noticed several times were my system would be very unstable.  What I mean by this is that it would take several minutes to open my Vera's webpage (versus the normal several seconds).  It would also take a long time to execute scenes and any command coming remotely (i.e. from a phone or zwave remote).  These periods would eventually stop and I wasn't able to figure out if there was a general frequency to it or not.  My system monitor shows my Vera's CPU load is normally around 0.25.  During one of the unstable points last night, it was over 3.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 01, 2016, 08:36:59 am
@sre

If you already have the Honeywell TCC plugin installed you can just upload the files in the zip and you should be all set, you do not need to delete your existing TCC device. However, if you wanted to start over using the new plugin then you could delete the old device, install the plugin and following the instructions it will find your thermostats and will add them to your system. Just keep in mind that if you delete the old device any scenes you have defined that use your thermostats will need to be setup again.

I hope to have the app updated for normal installation but the Vera folks that can help me are out until next week.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 01, 2016, 08:44:13 am
@lingerba

Can you supply log files for these periods ? Do you have any scenes that might be running during these periods ? Do you have logging enabled ? I'll start looking in detail for how long the plugin runs but it shouldn't be that often.

One thing I don't like about the current structure is that the thermostat state is not held by the plugin so there may be more requests made for status than are needed. I am not sure if outbound https requests are disruptive.

Can I install the same ping sensors you use to try to reproduce the problem or do I need special equipment ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 01, 2016, 08:52:15 am
It is just the regular ping sensor from the app store: http://apps.mios.com/plugin.php?id=1228.  Just set it up to ping a device on your network which will always have the same IP address.

I would kind of prefer you install this and test and look at your log files.  I say this because you know what you are doing a lot better than I do as far as recording and retrieving the correct log information.  If you need me to do it I can, but you will have to spoon feed me the instructions (like you did last time) and I will have to reinstall the log viewer (I was never able to get the logs via SSH).

Thanks & sorry.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 01, 2016, 08:58:10 am
No problem at all, I'd also prefer to reproduce the problem here. I'll install the ping app.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 01, 2016, 09:59:37 am
I installed the ping sensor and set it to ping one of my machines. It is set for 15 second ping and 0 sec timeout. What do I look for to indicate a failure ? How many pings do you have running ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 01, 2016, 10:06:27 am
I installed the ping sensor and set it to ping one of my machines. It is set for 15 second ping and 0 sec timeout. What do I look for to indicate a failure ? How many pings do you have running ?

If you have the sensor set to "normal" (versus invert), your sensor should be showing "tripped" as long as your device is being pinged.  What I have seen is it eventually stops pinging the device for no apparent reason.

In my setup I have two ping sensors, one for my phone and one for my wife's.  When neither phone is pinged for 1 hour, it PLEG determines that no one is home and sets the house to 'away mode' (I use this as a back up to geofencing).  So last night at 3:06am, the house went into away mode, which means neither of our phones was pinged after 2:06am.  What I am not sure of (and now it is too late for me to check), is whether both ping sensors failed at 2:06 or if one failed earlier and then the second at 2:06.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Colorado-Al on January 01, 2016, 12:37:19 pm
Thanks for the logs. Looks like dkjson is not available in UI5. I have changed the library to json-dm which should be available on both. There was a problem with this library when <CR><LF> characters were present in the json but I filter them out now so I think it will be fine.

The humidity info is present (if the thermo supports it) as well as outside temp and some forecast info on some platforms. The issue is how to present this. The thermostat dash tile is hardcoded so it is difficult to augment it. We could create another child device to show this info. The presentation stuff in UI7 is pretty weak and not well documented so it would likely be a pretty bland tile.

Happy new year!
Tried the new zip on my Vera UI5 and it logs in and finds devices but gives a Lua Failure notice on the parent device "Lua Failure Lua Failure"
I'll send the log by PM.

Regarding humidity, I have a few humidity sensors and they all create a basic child device that just shows humidity and is not configurable.
Would be great to help with running humidifier on demand. I could certainly just buy 2 more sensors, however would be nice to just get the reading from the thermostat. If the info is included in what you've already provided, then I'm sure I can create a child device from it.

Thanks again!!!
Al
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on January 02, 2016, 01:25:14 am
@mikee

Thanks.  Appreciated
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 02, 2016, 02:17:41 pm
Hi all,

Seems like some of you have been making some really useful improvements to this app.  Since the latest update, I am able to connect as a Euro user (which was not possible before).  I have some questions though:


Thanks already for all yours efforts!

Regards.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 02:55:49 pm
Did you manually enter the number or let the plugin configure them ? The format of the id is location:device. There are subtle differences between the APIs that made the addition of the location required for some. I was only able to test with one device, I'll try to move my other thermo over to the Euro site and see if it works.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 02, 2016, 03:18:53 pm
I added my location ID manually.  In the beginning when it started working, I still had part of the old interface where I could enter the location ID (I did have to change the 'Euro' setting in the advanced settings).  Only after a while the new interface appeared.  The app added 1 thermostat itself (the bathroom) and found out the part after the ':' automatically.  My 4 other thermostats do not appear at all.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 03:29:48 pm
Sigh, I found the problem. The device IDs are no longer strictly numeric and the code that assigns them to one of the 8 thermostat slots attempted to convert to a number. Hence only one of them is reported, likely the last. I should have a fix shortly ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 04:16:28 pm
@backkri

Here is the updated plugin. I verified I can set the temp on both of my thermos. You should not need to set your device Ids manually, they should be found on login.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 04:20:01 pm
@lingerba

I have not see any failures in the ping. It ran all night and no failures today although I have been restarting with testing today. I have made a number of changes to try to reduce the number of luup calls made as this has to be the interference. From looking at the ping app the only way I see it can stop is if the timer does not fire. If you could scan your logs to see if you can spot anything that would indicate what the failure is it would help. Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 02, 2016, 05:43:53 pm
@lingerba

I have not see any failures in the ping. It ran all night and no failures today although I have been restarting with testing today. I have made a number of changes to try to reduce the number of luup calls made as this has to be the interference. From looking at the ping app the only way I see it can stop is if the timer does not fire. If you could scan your logs to see if you can spot anything that would indicate what the failure is it would help. Thanks!

I have not had any issues since uninstalling the plugin.  I am going to reinstall the version you posted today to see how it goes.  As I mentioned, i am happy to provide log files, but I really need you to give me the step by step instructions for obtaining them.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 06:07:18 pm
This one contains the changes I made to reduce the read of variables.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 02, 2016, 06:18:44 pm
I now have an error, "Honeywell[211] : Startup Lua Failed".  I had this error with the first version you posted today. I deleted it and while trying to troubleshoot it, you posted the newer version with less variables.  Then I tried again and still have the error.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 02, 2016, 09:00:02 pm
This version now checks for dkjson (UI7) and if not present looks for json-dm (UI5). Hopefully this resolves the issue.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 02, 2016, 09:07:22 pm
Everything looks good so far.  I will keep an eye on everything to see how it plays with the ping sensors.  I now have good access to my logs, so I should be able to provide debug information if the ping sensors fail.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 02, 2016, 09:14:46 pm

Regarding humidity, I have a few humidity sensors and they all create a basic child device that just shows humidity and is not configurable.
Would be great to help with running humidifier on demand. I could certainly just buy 2 more sensors, however would be nice to just get the reading from the thermostat. If the info is included in what you've already provided, then I'm sure I can create a child device from it.

I don't know if you ever got what you needed here, but as Mikee mentioned, you can indeed read the indoor humidity from the thermostats with this plugin.  It is not a "child device" as you mentioned your other devices are and thus will not have a "dashboard display" like those devices.  But using this plugin with the Honeywell thermostats, there is a variable called "IndoorHumidity" which can be read & used by PLEG for any logic that you would want.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 03, 2016, 04:37:45 am
@Mikee

Quote
@backkri

Here is the updated plugin. I verified I can set the temp on both of my thermos. You should not need to set your device Ids manually, they should be found on login.

Great!
All the room thermostats of my Evohome system now appear correctly with this version  :) Without need indeed to configure ID's manually, and with correct temperature reading.
Once I have more time, I will look into the parameters (have no fan or cooling mode) and the way to change the setpoints (for now, when i switch to heating mode and change the setpoint, the setpoint is sent to the system but directly afterwards the display changes to off again in Vera) and the way to make the change in setpoint temporary (for the moment, the change is permanent in the Evohome although setting says TEMPORARY).  I will read the 33 pages in this post to better understand how I should use this app (when I have more time later  :P).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 03, 2016, 08:36:42 am
@backkri

Glad to hear it is mostly working.

Post 1 and 2 have most of the info ,JoeyD did a great job of documenting this. I have tried to preserve all of the user facing aspects of the plugin while adding support for Lyric and Evohome.

I did make the setpoints permanent as I am confused as to how to get the "until" time from the vera user. The UI allows you to change the setpoint up or down but has no provision for hold time. I have tried to add things to the thermostat display but it is internally hard coded. The bottom line is the API seems to want the hold time explicitly set and I don't know how to get this value. The API for the US does not have a hold time, just hold until the next scheduled change.

I am testing with US thermostats. I don't know if these are the same as yours. I will need a log file captured with LogEnable and TraceEnable to help figure out why you can set the temp (advanced properties of the TCC device, the one you log into). The log will contain your passwords so please edit it before posting to remove them.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 03, 2016, 02:29:54 pm
About the mode behavior: I think I understand now that this does not reflect the thermostat status, but simply the internal Vera state: if setpoint is higher than actual => heating.  Otherwise the thermostat goes to off.

About the log files: I am afraid I have the same issue as lingerba with the second part (also use Putty):

Quote
If you have ssh access you can type 'grep HNYWL_TCC /var/log/cmh/LuaUPnP.log > res.txt'. Then exit back you your host machine and run 'scp root@<vera-ip>:res.txt .' and enter you password. You can then sanitize this file and send it.

In my installation, I use these:

https://www.waakzaamwonen.com/kleuren-evotouch-bedieningspaneel-exclusief-wand-of-tafel-standaard-p-758.html (https://www.waakzaamwonen.com/kleuren-evotouch-bedieningspaneel-exclusief-wand-of-tafel-standaard-p-758.html) central unit
https://www.waakzaamwonen.com/rfg100-internet-gateway-voor-toegang-tot-evohome-systeem-met-smartphone-p-766.html (https://www.waakzaamwonen.com/rfg100-internet-gateway-voor-toegang-tot-evohome-systeem-met-smartphone-p-766.html) gateway
Combined with HR80 valves and DT92 as temperature sensor. But main communication goes trough gateway to central Evohome unit.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 03, 2016, 03:53:38 pm
You can use CudaNet's instructions in post #366 to install Info Viewer. Once you have this installed access to logs is much easier.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Vandamme23 on January 03, 2016, 09:17:51 pm
Just installed this plugin...  I put in my credentials, and it doesn't find my Therms...  I get 'Honeywell TCC Authorization passed, but no devices were found.'  I can log in manually and see my devices...  Any ideas?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 03, 2016, 09:23:24 pm
Which interface are you using ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 03, 2016, 09:25:11 pm
Just installed this plugin...  I put in my credentials, and it doesn't find my Therms...  I get 'Honeywell TCC Authorization passed, but no devices were found.'  I can log in manually and see my devices...  Any ideas?

If you are using the version of the app from the app store it doesn't work.  Please read through this thread.  You can download a beta copy to use while @Mikee continues to work on a fix.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on January 04, 2016, 10:00:51 am
@mikee - Great job!  Are you planning on getting the new VeraPlus?  I'd like to but may wait until we have definite support for these devices.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 04, 2016, 01:03:41 pm
Happy new years everyone ! I'm back and hoping everyone had a great time off with friends and family...

@Mikee,
Awesome progress on the plugin ! Have you slept at all ?? It seems the plugin now supports most/if not all the stats from Honeywell, it's time for an official Honeywell forum.

I was able to successfully install your latest package (many threads back) on my openLuup system (developed by Akbooer). Install was nice and clean, plugin practically set itself up .... Nice ! The stats displayed and operate beautifully in AltUI. I did this late Saturday night when I got back into town. I noticed this morning that the system (openLuup/AltUI) did freeze on what appears to have been a refresh of the stats. Both the AltUI and openLuup logs stopped on the same entry (refresh of stats 1-8). Unfortunately I didn't have the enhanced logs enabled via the plugin so I can't say why. I'll try to catch up on some updates you've posted or I'll just hold off until you post the latest package. Until then I've enabled the detailed logs and hope to catch anything lingering out there.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 04, 2016, 01:13:09 pm
@CudaNet

Glad to have you back. I have been trying to reproduce the issues lingerba is having with the ping sensors, yes it seems things just stop. I suspect it is a network issue so If it can be reproduced on OpenLuup it may help isolate it. I just can't get it to fail here. I'll try to setup openluup, I downloaded it but did not set it up yet.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 04, 2016, 01:24:52 pm
I remember Lingerba mentioning an issue with the ping sensor. Hmm, network related issue. Odd to say the least. If it's network shouldn't we simply see it time out. openLuup and AltUI (in debug mode) along with the trace logs from your plugin should (hopefully) produce some results we can work from here.

I'm here to help, just let me know what you need...

@CudaNet

Glad to have you back. I have been trying to reproduce the issues lingerba is having with the ping sensors, yes it seems things just stop. I suspect it is a network issue so If it can be reproduced on OpenLuup it may help isolate it. I just can't get it to fail here. I'll try to setup openluup, I downloaded it but did not set it up yet.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 04, 2016, 02:33:24 pm
Tonight I'm going to load this plugin on my openLuup test server (rPi2) with nothing else running (no other plugins/scenes/etc.). Hopefully that will remove any doubt that others might not be playing well together and allow us to isolate the root cause.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 04, 2016, 03:20:08 pm
Quote
You can use CudaNet's instructions in post #366 to install Info Viewer. Once you have this installed access to logs is much easier.

Info Viewer was already installed.  The pattern function was new to me.  I attached a log file while I was changing the setpoint (in the end the mode turned to off automatically).

For your information: since I installed the app (and / or enabled logging) the number of LUA restarts increased to 5 or 6 / day (before this was very limited).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 04, 2016, 03:30:35 pm
Thanks backkri. Yes, clearly there is a problem with the plugin. lingerba and CudaNet are helping to isolate it. I can't seem to get it to fail here. I'll go thru the log and see what I can find.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 04, 2016, 09:47:53 pm
Just an FYI, plugin installed on my test system (latest openLuup and AltUI). Nothing else installed and it's not bridged to an actual Vera. All log traces/HTTP and AltUI debug enabled. Going to let it run and see what we catch.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 04, 2016, 09:59:11 pm
Thanks CudaNet. I installed it on my OpenLuup setup as well and it is running. I had/have some trouble getting it setup. I now have 4 sets of thermo devices and can't delete them but it is running so hopefully we'll see something.

In the mean time I ran the plugin instrumented with collectgarbage("count") and collectgarbage("collect") calls sprinkled about. I found that the main plugin code is about 150K bytes, each interface is 20Kish and the libraries I load are 30-95K for a total of about 370Kbytes when done. Seems small to me when I have 15M free but when I instrumented the Info Viewer it uses 120K bytes total. I modified the plugin to only load the interface it is using and reduced the usage by 100K. I am also running with a collectgarbage("collect") after each refresh. Typically there is about 500K bytes in use but it has been up to 1Mbytes before running garbage collection. I don't think this should be necessary but perhaps. Any guidance in this area would be greatly appreciated.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 04, 2016, 10:32:59 pm
Mikee, definitely hit me up if you have any questions on openLuup. We can clean up your install fairly easily, assuming the Honeywell is all you're running as the user_data.json will be fairly small. Or we can start you off clean and re-load the plugin (takes 1 minute). As you indicated, the plugin uses very minimal memory (although it doesn't hurt to check for garbarge remnants) and I can't see that this was a problem as I have 8GB of memory on my openLuup server. In fact I remember looking at the logs and memory was something like 1.8Mb and CPU was really low. You can install the openLuup extension plugin and that will give you up-time, memory and CPU utilization (it's part of the openLuup package) if you want. No worries, this issue will be resolved at some point - you've done a fantastic job on this plugin.

Execute this in Lua Test Code:
Code: [Select]
luup.create_device ('', "", "", "D_openLuupExtensions.xml")

Thanks CudaNet. I installed it on my OpenLuup setup as well and it is running. I had/have some trouble getting it setup. I now have 4 sets of thermo devices and can't delete them but it is running so hopefully we'll see something.

In the mean time I ran the plugin instrumented with collectgarbage("count") and collectgarbage("collect") calls sprinkled about. I found that the main plugin code is about 150K bytes, each interface is 20Kish and the libraries I load are 30-95K for a total of about 370Kbytes when done. Seems small to me when I have 15M free but when I instrumented the Info Viewer it uses 120K bytes total. I modified the plugin to only load the interface it is using and reduced the usage by 100K. I am also running with a collectgarbage("collect") after each refresh. Typically there is about 500K bytes in use but it has been up to 1Mbytes before running garbage collection. I don't think this should be necessary but perhaps. Any guidance in this area would be greatly appreciated.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 05, 2016, 08:54:18 am
Latest stats from openLuup log. Beware that any AltUI updates will cause an reload of the engine so avoid those all together, just select [close] when prompted.
BTW, the metrics can be loaded to Thingspeak for external monitoring (however this also requires a reload).

Code: [Select]
a newer version #1076 of ALTUI is available, do you want to upgrade ?
bugfix:plugin compatibility (sonos & Upnp url)
bootstrap 3.3.6
display Watts in favorite

Code: [Select]
2016-01-05 07:46:00.378   luup.variable_set:0: 7.openLuup.Memory_Mb was: 1.9 now: 1.6 #hooks:0
2016-01-05 07:46:00.379   luup.variable_set:0: 7.openLuup.Cpu_2m was: 0.1 now: 0.3 #hooks:0
2016-01-05 07:46:00.381   luup.variable_set:0: 7.openLuup.CpuLoad_Percent was: 0.1 now: 0.1 #hooks:0
2016-01-05 07:46:00.382   luup.variable_set:0: 7.openLuup.CpuLoad_Hours was: 0.01 now: 0.01 #hooks:0
2016-01-05 07:46:00.383   luup.variable_set:0: 7.openLuup.Uptime_Days was: 0.39 now: 0.39 #hooks:0
2016-01-05 07:46:00.384   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine1 was: Uptime 0.39 days now: Uptime 0.39 days #hooks:0
2016-01-05 07:46:00.386   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine2 was: Memory 1.9 Mb,  CPU 0.1 % now: Memory 1.6 Mb,  CPU 0.1 % #hooks:0
2016-01-05 07:46:00.387   luup_log:0: openLuup PLUGIN memory: 1.6 Mb, uptime: 0.39 days, cpu: 0.01 hours (0.1%)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 06, 2016, 08:54:03 am
[PART 1 OF 2]

OK, my system froze last night. I'm going to post all the log data leading up to that point. Mikee, if you want all the log data just send me a PM and I'll send them on.

Current memory:
Code: [Select]
root@openLuup:~# free -m
             total         used         free       shared      buffers
Mem:        953500        35552       917948         1624          876
-/+ buffers:              34676       918824
Swap:            0            0            0
root@openLuup:~#

Statistics
Code: [Select]
Mem: 35700K used, 917800K free, 1624K shrd, 876K buff, 14348K cached
CPU:   0% usr   0% sys   0% nic  99% idle   0% io   0% irq   0% sirq
Load average: 0.00 0.01 0.05 2/68 1422
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 1422  1415 root     R     1312   0%   0% top
  882   567 root     S     5972   1%   0% lua openLuup/init.lua
 1409   467 root     S     5592   1%   0% sshd: root@notty
 1413   467 root     S     5532   1%   0% sshd: root@pts/0
  448     1 http     S     3332   0%   0% /usr/sbin/lighttpd -f /etc/lighttpd/l
  467     1 root     S     2944   0%   0% /usr/sbin/sshd -D
  525     1 root     S     1460   0%   0% /usr/sbin/uhttpd -f -h /www -r openLu
  364     1 root     S     1444   0%   0% /sbin/rpcd
  383     1 root     S     1440   0%   0% /sbin/netifd
  527     1 root     S     1352   0%   0% {S95done} /bin/sh /etc/rc.common /etc
  796     1 root     S     1312   0%   0% /usr/sbin/ntpd -n -l -S /usr/sbin/ntp
 1415  1413 root     S     1312   0%   0% -ash
  540   383 root     S     1308   0%   0% udhcpc -p /var/run/udhcpc-br-lan.pid
 1411  1409 root     S     1308   0%   0% ash -c /usr/lib/sftp-server
  567   530 root     S     1308   0%   0% {openLuup_reload} /bin/sh ./openLuup_
  530   527 root     S     1304   0%   0% sh /etc/rc.local
    1     0 root     S     1300   0%   0% /sbin/procd
  423     1 root     S     1036   0%   0% /usr/sbin/dropbear -F -P /var/run/dro
  355     1 root     S      940   0%   0% /sbin/logd -S 16
 1412  1411 root     S      816   0%   0% /usr/lib/sftp-server

Processes:
Code: [Select]
root@openLuup:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1300 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW   [rcu_sched]
    8 root         0 SW   [rcu_bh]
    9 root         0 SW   [migration/0]
   10 root         0 SW   [migration/1]
   11 root         0 SW   [ksoftirqd/1]
   13 root         0 SW<  [kworker/1:0H]
   14 root         0 SW   [migration/2]
   15 root         0 SW   [ksoftirqd/2]
   16 root         0 SW   [kworker/2:0]
   17 root         0 SW<  [kworker/2:0H]
   18 root         0 SW   [migration/3]
   19 root         0 SW   [ksoftirqd/3]
   20 root         0 SW   [kworker/3:0]
   21 root         0 SW<  [kworker/3:0H]
   22 root         0 SW<  [khelper]
   23 root         0 SW<  [writeback]
   24 root         0 SW<  [bioset]
   25 root         0 SW   [kworker/0:1]
   26 root         0 SW<  [kblockd]
   28 root         0 SW   [kswapd0]
   29 root         0 SW   [kworker/3:1]
   30 root         0 SW   [fsnotify_mark]
   33 root         0 SW   [kworker/1:1]
   34 root         0 SW<  [VCHIQ-0]
   35 root         0 SW<  [VCHIQr-0]
   36 root         0 SW<  [VCHIQs-0]
   37 root         0 SW<  [dwc_otg]
   38 root         0 SW<  [DWC Notificatio]
   40 root         0 SW   [VCHIQka-0]
   41 root         0 SW<  [SMIO]
   42 root         0 SW<  [deferwq]
   43 root         0 SW   [mmcqd/0]
   44 root         0 SW<  [kworker/0:1H]
   45 root         0 SW<  [ext4-rsv-conver]
   46 root         0 SW   [kworker/1:2]
   48 root         0 SW   [kworker/2:1]
  128 root       788 S    /sbin/ubusd
  172 root       668 S    /sbin/askfirst /bin/ash --login
  173 root       668 S    /sbin/askfirst /bin/ash --login
  299 root         0 SW<  [ipv6_addrconf]
  330 root         0 SW<  [kworker/2:1H]
  355 root       940 S    /sbin/logd -S 16
  364 root      1444 S    /sbin/rpcd
  383 root      1440 S    /sbin/netifd
  423 root      1036 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 2222 -K 300
  441 root         0 SW<  [kworker/1:1H]
  448 http      3332 S    /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
  467 root      2944 S    /usr/sbin/sshd -D
  525 root      1460 S    /usr/sbin/uhttpd -f -h /www -r openLuup -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:8
  527 root      1352 S    {S95done} /bin/sh /etc/rc.common /etc/rc.d/S95done boot
  530 root      1304 S    sh /etc/rc.local
  540 root      1308 S    udhcpc -p /var/run/udhcpc-br-lan.pid -s /lib/netifd/dhcp.script -f -t 0 -i br-lan -r 192.168.1.1 -C
  567 root      1308 S    {openLuup_reload} /bin/sh ./openLuup_reload
  796 root      1312 S    /usr/sbin/ntpd -n -l -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt
  882 root      5972 S    lua openLuup/init.lua
 1407 root         0 SW   [kworker/u8:0]
 1408 root         0 SW   [kworker/u8:1]
 1409 root      5592 S    sshd: root@notty
 1411 root      1308 S    ash -c /usr/lib/sftp-server
 1412 root       816 S    /usr/lib/sftp-server
 1413 root      5536 R    sshd: root@pts/0
 1415 root      1312 S    -ash
 1423 root      1308 R    ps

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 06, 2016, 08:55:48 am
[PART 2 OF 2]

Loads all look low...

Code: [Select]
2016-01-05 21:24:00.129   luup.variable_set:0: 7.openLuup.Memory_Mb was: 1.1 now: 1.4 #hooks:0
2016-01-05 21:24:00.130   luup.variable_set:0: 7.openLuup.Cpu_2m was: 0.1 now: 0.2 #hooks:0
2016-01-05 21:24:00.132   luup.variable_set:0: 7.openLuup.CpuLoad_Percent was: 0.1 now: 0.1 #hooks:0
2016-01-05 21:24:00.133   luup.variable_set:0: 7.openLuup.CpuLoad_Hours was: 0.03 now: 0.03 #hooks:0
2016-01-05 21:24:00.134   luup.variable_set:0: 7.openLuup.Uptime_Days was: 0.96 now: 0.96 #hooks:0

openLuup Log (leading up to event):
Code: [Select]
2016-01-05 21:22:15.997   luup.call_timer:4: interval: time=300, days={}
2016-01-05 21:24:00.129   luup.variable_set:0: 7.openLuup.Memory_Mb was: 1.1 now: 1.4 #hooks:0
2016-01-05 21:24:00.130   luup.variable_set:0: 7.openLuup.Cpu_2m was: 0.1 now: 0.2 #hooks:0
2016-01-05 21:24:00.132   luup.variable_set:0: 7.openLuup.CpuLoad_Percent was: 0.1 now: 0.1 #hooks:0
2016-01-05 21:24:00.133   luup.variable_set:0: 7.openLuup.CpuLoad_Hours was: 0.03 now: 0.03 #hooks:0
2016-01-05 21:24:00.134   luup.variable_set:0: 7.openLuup.Uptime_Days was: 0.96 now: 0.96 #hooks:0
2016-01-05 21:24:00.136   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine1 was: Uptime 0.96 days now: Uptime 0.96 days #hooks:0
2016-01-05 21:24:00.137   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine2 was: Memory 1.1 Mb,  CPU 0.1 % now: Memory 1.4 Mb,  CPU 0.1 % #hooks:0
2016-01-05 21:24:00.138   luup_log:0: openLuup PLUGIN memory: 1.4 Mb, uptime: 0.96 days, cpu: 0.03 hours (0.1%)
2016-01-05 21:26:00.289   luup.variable_set:0: 7.openLuup.Memory_Mb was: 1.4 now: 1.5 #hooks:0
2016-01-05 21:26:00.290   luup.variable_set:0: 7.openLuup.Cpu_2m was: 0.2 now: 0 #hooks:0
2016-01-05 21:26:00.292   luup.variable_set:0: 7.openLuup.CpuLoad_Percent was: 0.1 now: 0.1 #hooks:0
2016-01-05 21:26:00.293   luup.variable_set:0: 7.openLuup.CpuLoad_Hours was: 0.03 now: 0.03 #hooks:0
2016-01-05 21:26:00.294   luup.variable_set:0: 7.openLuup.Uptime_Days was: 0.96 now: 0.96 #hooks:0
2016-01-05 21:26:00.295   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine1 was: Uptime 0.96 days now: Uptime 0.96 days #hooks:0
2016-01-05 21:26:00.297   luup.variable_set:0: 7.urn:upnp-org:serviceId:altui1.DisplayLine2 was: Memory 1.4 Mb,  CPU 0.1 % now: Memory 1.5 Mb,  CPU 0.1 % #hooks:0
2016-01-05 21:26:00.298   luup_log:0: openLuup PLUGIN memory: 1.5 Mb, uptime: 0.96 days, cpu: 0.03 hours (0.1%)
2016-01-05 21:27:15.393   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.1.refreshStatus was: OK: Tue, Jan 05, 09:22 PM now:  #hooks:0
2016-01-05 21:27:15.394   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.2.refreshStatus was: OK: Tue, Jan 05, 09:22 PM now:  #hooks:0
2016-01-05 21:27:15.395   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.3.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:15.397   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.4.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:15.398   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.5.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:15.399   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.6.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:15.400   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.7.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:15.402   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.8.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:16.248   luup_log:4: HNYWL TCC: status_sink{ [1] = {"success":true,"deviceLive":true,"communicationLost":false,"latestData":{"uiData":{"DispTemperature":67.0000,"HeatSetpoint":67.0000,"CoolSetpoint":75.0000,"DisplayUnits":"F","StatusHeat":2,"StatusCool":2,"HoldUntilCapable":true,"ScheduleCapable":true,"VacationHold":0,"DualSetpointStatus":false,"HeatNextPeriod":32,"CoolNextPeriod":32,"HeatLowerSetptLimit":50.0000,"HeatUpperSetptLimit":88.0000,"CoolLowerSetptLimit":61.0000,"CoolUpperSetptLimit":88.0000,"ScheduleHeatSp":55.0000,"ScheduleCoolSp":85.0000,"SwitchAutoAllowed":true,"SwitchCoolAllowed":true,"SwitchOffAllowed":true,"SwitchHeatAllowed":true,"SwitchEmergencyHeatAllowed":false,"SystemSwitchPosition":1,"Deadband":3.0000,"IndoorHumidity":128.0000,"DeviceID":991420,"Commercial":false,"DispTemperatureAvailable":true,"IndoorHumiditySensorAvailable":false,"IndoorHumiditySensorNotFault":true,"VacationHoldUntilTime":0,"TemporaryHoldUntilTime":0,"IsInVacationHoldMode":false,"SetpointChangeAllowed":true,"OutdoorTemperature":128.0000,"OutdoorHumidity":128.0000,"OutdoorHumidityAvailable":false,"OutdoorTemperatureAvailable":false,"DispTemperatureStatus":0,"IndoorHumidStatus":128,"OutdoorTempStatus":128,"OutdoorHumidStatus":128,"OutdoorTemperatureSensorNotFault":true,"OutdoorHumiditySensorNotFault":true,"CurrentSetpointStatus":2,"EquipmentOutputStatus":null},"fanData":{"fanMode":null,"fanModeAutoAllowed":false,"fanModeOnAllowed":false,"fanModeCirculateAllowed":false,"fanModeFollowScheduleAllowed":false,"fanIsRunning":null},"hasFan":false,"canControlHumidification":false,"drData":{"CoolSetpLimit":0,"HeatSetpLimit":0,"Phase":-1,"OptOutable":false,"DeltaCoolSP":-0.01,"DeltaHeatSP":-0.01,"Load":127.5}},"alerts":"\r\n\r\n"},}
2016-01-05 21:27:16.249   luup_log:4: HNYWL TCC: RESPONSE:1
2016-01-05 21:27:16.250   luup_log:4: HNYWL TCC: STATUS:200
2016-01-05 21:27:16.251   luup_log:4: HNYWL TCC: HEADER:{ ["set-cookie"] = EccMyTcc={REMOVED BY CUDA}; path=/; expires=Thu, 07-Jan-2016 03:36:26 GMT,["date"] = Wed, 06 Jan 2016 03:27:15 GMT,["x-powered-by"] = ASP.NET,["x-ua-compatible"] = IE=edge,["expires"] = -1,["cache-control"] = no-cache, no-store, must-revalidate,["content-length"] = 1688,["content-type"] = application/json; charset=utf-8,["x-aspnet-version"] = 4.0.30319,["pragma"] = no-cache,["x-aspnetmvc-version"] = 5.2,["server"] = Microsoft-IIS/8.5, Web1,}
2016-01-05 21:27:16.252   luup_log:4: HNYWL TCC: COOKIE STRING: ASP.NET_SessionId=nxej0muualobtqb31uwnjrzq;TrueHomeCheckCookie=;ADRUM_BT=R%3a40%7cclientRequestGUID%3a29db8540-346b-4d04-ba82-52ee7a7695ce%7cbtId%3a1160%7cbtERT%3a535;thlang=en-US;RememberMe=;EccMyTcc={REMOVED BY CUDA};.ASPXAUTH_TH_A=718F574754DCBA3CFAC93ECC5CC0232FB8813031D1A4A99B03F6A0F6BE49D3B0D2A1D705AE08B6664D3F5DBCB96CAA96A411312CB66D45CB18F524BCC6A6906F6F5574BA386EFC9DFD05CFEEB621B4C6D65092E30C7F040161AEFE615975E0D1B979DB3E9AFBF43FCA323B64615FC2BA21FD4E9C70C207D6272C373E7A9FB45475516B4FB0C5A09B85493EDA6A6FEFA1D1A5435592608E347452C36C11B32C1D98411CE42D2500B0B7D83C64CE8EE8DDAC50CEA5E16CA4C87B586A82E897A0AD727BC9DF21596491AE458C9783AD84FD48FA8EC752AA36396C1C6CD8DCE2427962A473E2F8AFA4B7E42FAF6F86B5EB172CDFCD9A1C9C655D000BAB77C9D6FC5E71CCEF2F563A95A9D770479D27B37FB2790D99F35C5FA397A7B162BA586772E273B29B6314A55C682A533733FE737A3A6C03C847C95CD45DF2B87E32DB9721866357C98F;
2016-01-05 21:27:16.253   luup_log:4: HNYWL TCC: status_str status_str={"success":true,"deviceLive":true,"communicationLost":false,"latestData":{"uiData":{"DispTemperature":67.0000,"HeatSetpoint":67.0000,"CoolSetpoint":75.0000,"DisplayUnits":"F","StatusHeat":2,"StatusCool":2,"HoldUntilCapable":true,"ScheduleCapable":true,"VacationHold":0,"DualSetpointStatus":false,"HeatNextPeriod":32,"CoolNextPeriod":32,"HeatLowerSetptLimit":50.0000,"HeatUpperSetptLimit":88.0000,"CoolLowerSetptLimit":61.0000,"CoolUpperSetptLimit":88.0000,"ScheduleHeatSp":55.0000,"ScheduleCoolSp":85.0000,"SwitchAutoAllowed":true,"SwitchCoolAllowed":true,"SwitchOffAllowed":true,"SwitchHeatAllowed":true,"SwitchEmergencyHeatAllowed":false,"SystemSwitchPosition":1,"Deadband":3.0000,"IndoorHumidity":128.0000,"DeviceID":991420,"Commercial":false,"DispTemperatureAvailable":true,"IndoorHumiditySensorAvailable":false,"IndoorHumiditySensorNotFault":true,"VacationHoldUntilTime":0,"TemporaryHoldUntilTime":0,"IsInVacationHoldMode":false,"SetpointChangeAllowed":true,"OutdoorTemperature":128.0000,"OutdoorHumidity":128.0000,"OutdoorHumidityAvailable":false,"OutdoorTemperatureAvailable":false,"DispTemperatureStatus":0,"IndoorHumidStatus":128,"OutdoorTempStatus":128,"OutdoorHumidStatus":128,"OutdoorTemperatureSensorNotFault":true,"OutdoorHumiditySensorNotFault":true,"CurrentSetpointStatus":2,"EquipmentOutputStatus":null},"fanData":{"fanMode":null,"fanModeAutoAllowed":false,"fanModeOnAllowed":false,"fanModeCirculateAllowed":false,"fanModeFollowScheduleAllowed":false,"fanIsRunning":null},"hasFan":false,"canControlHumidification":false,"drData":{"CoolSetpLimit":0,"HeatSetpLimit":0,"Phase":-1,"OptOutable":false,"DeltaCoolSP":-0.01,"DeltaHeatSP":-0.01,"Load":127.5}},"alerts":"\r\n\r\n"},
2016-01-05 21:27:16.255   luup_log:4: HNYWL TCC: status_str after gsub status_str={"success":true,"deviceLive":true,"communicationLost":false,"latestData":{"uiData":{"DispTemperature":67.0000,"HeatSetpoint":67.0000,"CoolSetpoint":75.0000,"DisplayUnits":"F","StatusHeat":2,"StatusCool":2,"HoldUntilCapable":true,"ScheduleCapable":true,"VacationHold":0,"DualSetpointStatus":false,"HeatNextPeriod":32,"CoolNextPeriod":32,"HeatLowerSetptLimit":50.0000,"HeatUpperSetptLimit":88.0000,"CoolLowerSetptLimit":61.0000,"CoolUpperSetptLimit":88.0000,"ScheduleHeatSp":55.0000,"ScheduleCoolSp":85.0000,"SwitchAutoAllowed":true,"SwitchCoolAllowed":true,"SwitchOffAllowed":true,"SwitchHeatAllowed":true,"SwitchEmergencyHeatAllowed":false,"SystemSwitchPosition":1,"Deadband":3.0000,"IndoorHumidity":128.0000,"DeviceID":991420,"Commercial":false,"DispTemperatureAvailable":true,"IndoorHumiditySensorAvailable":false,"IndoorHumiditySensorNotFault":true,"VacationHoldUntilTime":0,"TemporaryHoldUntilTime":0,"IsInVacationHoldMode":false,"SetpointChangeAllowed":true,"OutdoorTemperature":128.0000,"OutdoorHumidity":128.0000,"OutdoorHumidityAvailable":false,"OutdoorTemperatureAvailable":false,"DispTemperatureStatus":0,"IndoorHumidStatus":128,"OutdoorTempStatus":128,"OutdoorHumidStatus":128,"OutdoorTemperatureSensorNotFault":true,"OutdoorHumiditySensorNotFault":true,"CurrentSetpointStatus":2,"EquipmentOutputStatus":null},"fanData":{"fanMode":null,"fanModeAutoAllowed":false,"fanModeOnAllowed":false,"fanModeCirculateAllowed":false,"fanModeFollowScheduleAllowed":false,"fanIsRunning":null},"hasFan":false,"canControlHumidification":false,"drData":{"CoolSetpLimit":0,"HeatSetpLimit":0,"Phase":-1,"OptOutable":false,"DeltaCoolSP":-0.01,"DeltaHeatSP":-0.01,"Load":127.5}},"alerts":"\r\n\r\n"},
2016-01-05 21:27:16.261   luup_log:4: HNYWL TCC: current_data currentData={ ["HeatSetpoint"] = 67,["HeatNextPeriod"] = 32,["DisplayUnits"] = F,["SchedHeatSetpoint"] = 55,["StatusHeat"] = 2,["SystemSwitchPosition"] = 1,["SchedCoolSetpoint"] = 85,["CanSwitchAuto"] = true,["CoolNextPeriod"] = 32,["HasFan"] = false,["CoolSetpoint"] = 75,["IndoorHumidity"] = 128,["OutdoorHumidity"] = 128,["HasOutdoorTemp"] = false,["Success"] = true,["HasIndoorHumidity"] = false,["StatusCool"] = 2,["OutdoorTemp"] = 128,["Load"] = 127.5,["DisplayTemp"] = 67,} ,
2016-01-05 21:27:16.263   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.1.refreshStatus was:  now:  #hooks:0
2016-01-05 21:27:16.264   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.statusRefreshDateTime was: Tue, Jan 05, 09:22:15 PM now: Tue, Jan 05, 09:27:16 PM #hooks:0
2016-01-05 21:27:16.265   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.statusRefreshTimeSuccess was: Tue, Jan 05, 09:22:15 PM now: Tue, Jan 05, 09:27:16 PM #hooks:0
2016-01-05 21:27:16.267   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.getStatus was: Successful now: Successful #hooks:0
2016-01-05 21:27:16.268   luup.variable_set:4: 4.urn:joeyd-com:serviceId:HoneywellTCC1.t.1.refreshStatus was:  now: OK: Tue, Jan 05, 09:27 PM #hooks:0
2016-01-05 21:27:16.270   luup_log:4: HNYWL TCC: LOAD: 127.5
2016-01-05 21:27:16.270   luup_log:4: HNYWL TCC: Heat Next / Scheduled : 32 / 55
2016-01-05 21:27:16.271   luup_log:4: HNYWL TCC: SYSTEM SWTITCH POS: 1
2016-01-05 21:27:16.272   luup_log:4: HNYWL TCC: STATUS HEAT: 2
2016-01-05 21:27:16.272   luup_log:4: HNYWL TCC: STATUS COOL: 2
2016-01-05 21:27:16.273   luup_log:4: HNYWL TCC: HEAT SETPT: 67
2016-01-05 21:27:16.273   luup_log:4: HNYWL TCC: COOL SETPT: 75
2016-01-05 21:27:16.274   luup_log:4: HNYWL TCC: TEMP: 67
2016-01-05 21:27:16.275   luup_log:4: HNYWL TCC: MODE STATE: Idle
2016-01-05 21:27:16.275   luup_log:4: HNYWL TCC: SETPOINT: 67
2016-01-05 21:27:16.276   luup_log:4: HNYWL TCC: MODE STATUS: HeatOn
2016-01-05 21:27:16.277   luup_log:4: HNYWL TCC: FAN MODE: nil
2016-01-05 21:27:16.277   luup_log:4: HNYWL TCC: FAN MODE: Unknown
2016-01-05 21:27:16.278   luup_log:4: HNYWL TCC: FAN STATUS: Off
2016-01-05 21:27:16.279   luup.variable_set:4: 5.urn:upnp-org:serviceId:HVAC_UserOperatingMode1.ModeStatus was: HeatOn now: HeatOn #hooks:0
2016-01-05 21:27:16.280   luup.variable_set:4: 5.urn:upnp-org:serviceId:TemperatureSetpoint1.CurrentSetpoint was: 67 now: 67 #hooks:0
2016-01-05 21:27:16.281   luup.variable_set:4: 5.urn:upnp-org:serviceId:TemperatureSetpoint1.AllSetpoints was: 67,75 now: 67,75 #hooks:0
2016-01-05 21:27:16.283   luup.variable_set:4: 5.urn:upnp-org:serviceId:HVAC_FanOperatingMode1.Mode was: Unknown now: Unknown #hooks:0
2016-01-05 21:27:16.284   luup.variable_set:4: 5.urn:micasaverde-com:serviceId:HVAC_OperatingState1.ModeState was: Idle now: Idle #hooks:0
2016-01-05 21:27:16.285   luup.variable_set:4: 5.urn:upnp-org:serviceId:TemperatureSetpoint1_Heat.CurrentSetpoint was: 67 now: 67 #hooks:0
2016-01-05 21:27:16.286   luup.variable_set:4: 5.urn:upnp-org:serviceId:TemperatureSetpoint1_Cool.CurrentSetpoint was: 75 now: 75 #hooks:0
2016-01-05 21:27:16.288   luup.variable_set:4: 5.urn:upnp-org:serviceId:HVAC_FanOperatingMode1.FanStatus was: Off now: Off #hooks:0
2016-01-05 21:27:16.289   luup.variable_set:4: 5.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 67 now: 67 #hooks:0
2016-01-05 21:27:16.290   luup.variable_set:4: 5.urn:upnp-org:serviceId:HVAC_UserOperatingMode1.AutoMode was: 1 now: 1 #hooks:0
2016-01-05 21:27:16.291   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.ThermostatUnits was: F now: F #hooks:0
2016-01-05 21:27:16.293   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.HasOutdoorHumidity was: nil now: nil #hooks:0
2016-01-05 21:27:16.294   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.HasIndoorHumidity was: false now: false #hooks:0
2016-01-05 21:27:16.295   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.HeatSetpointHoldType was: Permanent now: Permanent #hooks:0
2016-01-05 21:27:16.297   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.CoolSetpointHoldType was: Permanent now: Permanent #hooks:0
2016-01-05 21:27:16.298   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.HeatSetpointUntilTime was: 8:00 AM now: 8:00 AM #hooks:0
2016-01-05 21:27:16.299   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.CoolSetpointUntilTime was: 8:00 AM now: 8:00 AM #hooks:0
2016-01-05 21:27:16.301   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.OutdoorTemperature was:  now:  #hooks:0
2016-01-05 21:27:16.302   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.OutdoorHumidity was:  now:  #hooks:0
2016-01-05 21:27:16.303   luup.variable_set:4: 5.urn:honeywell-com:serviceId:ThermostatData1.IndoorHumidity was:  now:  #hooks:0

AltUI log data (/var/log/cmh):
Attached (2 log files in compressed file).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 06, 2016, 10:49:09 am
I believe I found and fixed the issue with @backkri's nightly restarts and setpoint issue. This version has run here without a restart for 21 hours. I also added the EMEA V1 API so you can try EMEA as well as Euro. I still don't have a way to get the "hold until" time. The hold time is now fixed 4 hours.

The primary focus has been to identify the resource consumption issues @lingerba and @backkri have been running into. Give this version a try. Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 06, 2016, 01:51:08 pm
Thanks @Mikee.

I will try this new version and keep you informed!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 06, 2016, 11:21:17 pm
Loaded latest version to see what happens. Here's a link to Thingspeak for metrics regarding cpu, memory and uptime...
https://thingspeak.com/channels/76818 (https://thingspeak.com/channels/76818)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 06, 2016, 11:51:10 pm
Nice, I think you can see the garbage collection running ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on January 07, 2016, 02:29:39 am
@mikee

I followed the instructions.  Getting an error device not ready while adding login credentials.  Any idea what I am doing wrong ?  regards

@sre

If you already have the Honeywell TCC plugin installed you can just upload the files in the zip and you should be all set, you do not need to delete your existing TCC device. However, if you wanted to start over using the new plugin then you could delete the old device, install the plugin and following the instructions it will find your thermostats and will add them to your system. Just keep in mind that if you delete the old device any scenes you have defined that use your thermostats will need to be setup again.

I hope to have the app updated for normal installation but the Vera folks that can help me are out until next week.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 07, 2016, 08:46:49 am
I see this error when I try to configure the plugin immediately after restart. It might take a minute or two before the system is ready.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 07, 2016, 08:51:50 am
Definitely...All looks good this morning, I noticed CPU and up time aren't registering quite yet and won't until it exceeds 0..

Nice, I think you can see the garbage collection running ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on January 07, 2016, 10:16:13 am
Long time watcher, first time response....  I'm on the Euro side of the pond and so hadn't held out too much hope on this working, but big congrats to Mikee for implementing that as well as of the other tweaks, very much impressed.  I'm a long time Evohome user and this is just great for integrating the honywell system into the other HA elements I've deployed.

Like all HA enthusiasts I'm never satisfied and what with having 10 zones in my Evohome setup, I wondered why there was a limit of 8, so tinkered with the D_HoneywellTCC.JSON and L_HoneywellTCC.LUA files to increase the limit to 10 (not difficult), but I came across a small limitation, which I wasn't expecting, which is by extending the screen paining of the JSON file to accommodate the additional 2 zones the bottom of the screen seems to have been lost in the 'Setup' tab.  The new child devices have been setup so its not limiting for me, but wondered if it was something that anyone else could spot the obvious mistake I've made?

Would be ideal to extend to 12 zones as that is the limit of a single Evohome device.

Still, that aside very impressed by Mikee and the work that has been deployed here.

Happy to let you have the edited files if they would be of any use (just that they push the refresh button off the bottom of the display area.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 07, 2016, 06:52:39 pm
Nice work! I believe there is a limit to the size of a flash based dialog and hence the code needs to be converted to javascript. I have done that as well as add the dialog for setpoint control. I'll increase the limit for thermostats to 12. I am reworking all the setup panels as we speak.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sre on January 07, 2016, 10:56:24 pm
Thanks a lot @mikee.  Even after a day it remained that way.  Any way, I have deleted the device and did everything all over again.  Waited few minutes and got log in procedure through.  Thanks once again

I see this error when I try to configure the plugin immediately after restart. It might take a minute or two before the system is ready.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 08, 2016, 09:03:32 am
And our January 8th update.... Everything is looking really good so far.... Will continue to run this throughout the weekend.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 08, 2016, 11:14:18 am
Good news. Thanks @CudaNet!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bobies on January 08, 2016, 02:35:51 pm
Thanks mikee :). for this great plugin and that you willing to upgrade this plugin for 12 thermostats. I'm a Euro user and just start with my new vera 3.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 09, 2016, 01:23:33 pm
Last one... I think it's safe to say that the issue of freezing has been resolved. As always excellent job @Mikee !
Tomorrow I'll move it to my production system..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 09, 2016, 01:35:10 pm
Everything has been looking good for a couple of days from my end too.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 09, 2016, 02:58:27 pm
Fantastic. Thanks @CudaNet and @lingerba, you spent a lot of time testing this I really appreciate that. I believe the issue is that Luup will leak memory when a plugin crashes, looks like whatever the plugin had in its heap at the time. The TCC plugin was crashing when trying to refresh the login token. I suspect Luup is just tossing the Lua state and creating a new one. This can lead to either a lot of memory loss or a little at a time and depending on how often the plugin crashes can cause a restart or worse, put Luup in a crippled out of memory condition from which it can not recover other than a manual restart. I'd report this to Vera if I knew how. I doubt they will see it here.

In looking at the many @lingerba logs (thanks!!) there are a few plugins that crash occasionally and I saw some large drops in free memory when they did (sometimes). I think Lua is very prone to this because of the lack of a comprehensive global reference checker.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: lingerba on January 09, 2016, 03:29:19 pm
I think the majority of the thanks needs to go to you @mikee!  I will be looking forward to downloading this official version from the Mios app store.  :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 09, 2016, 04:21:41 pm
Yeah, I am exchanging messages with mios about being added as a co-publisher. They need JoeyD's approval which I thought would be difficult given he has not been around for a while. However, I *did* get in touch with him and have approval but no word from mios yet. Hopefully soon. JoeyD did not say what he is up to but did say he just hasn't had time to get back to the Vera work.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 10, 2016, 11:01:25 am
That's awesome, really glad to hear Joey's OK though as things happen (some good, some bad). Kind of strange that Mios would take the position that the plugin couldn't be updated w/o his permission, it's been something like 1 year since anyone has heard from him. I kind of understand but for the benefit of the plugin users and the plugin itself - it just makes sense to allow a fix to be posted through the app store. Nonetheless, you've saved this plugin and made many people happy... BIG THANKS !!!

Yeah, I am exchanging messages with mios about being added as a co-publisher. They need JoeyD's approval which I thought would be difficult given he has not been around for a while. However, I *did* get in touch with him and have approval but no word from mios yet. Hopefully soon. JoeyD did not say what he is up to but did say he just hasn't had time to get back to the Vera work.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 11, 2016, 03:07:01 pm
Thanks for the kind words. I

Just got the keys to the plugin, *evil-grin*. Now I just need to figure out how to update it. I still have reports of issues with stability and would like to resolve that. I have rewritten all the control panels in javascript but, honestly, am a bit hesitant to release another version, the javascript does not seem to work with openluup. I don't think I have a good handle on the issues that can cause instability on this platform and can not test adequately. I am working on improving the testing I can do. I have another vera lite arriving this week so I can verify UI5 operation.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 11, 2016, 03:37:35 pm
Stability issues ?!?! Under what conditions ?

Mikee, just let me know how I can help. I can't do much with an actual Vera (as it's just too unstable) but I have a dedicated openLuup test system available with nothing else running on it.

Edit: Has anyone thoroughly tested actions ? I kind of dropped the ball on that one...

Thanks for the kind words. I

Just got the keys to the plugin, *evil-grin*. Now I just need to figure out how to update it. I still have reports of issues with stability and would like to resolve that. I have rewritten all the control panels in javascript but, honestly, am a bit hesitant to release another version, the javascript does not seem to work with openluup. I don't think I have a good handle on the issues that can cause instability on this platform and can not test adequately. I am working on improving the testing I can do. I have another vera lite arriving this week so I can verify UI5 operation.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 11, 2016, 04:29:53 pm
I have been going thru the actions as they are used in the panels but I don't think I have tested all of them yet.

@lingerba is still having ping sensor issues. It is likely an out-of-memory issue (or low memory can't fork a process to run the ping command). I don't see anything in the logs, TCC is running along happily and the garbage collector sweeps added are showing no memory growth in TCC (or at least no lua object growth). I don't see any crashes but yet the memory continues to decline. It may be normal growth between garbage collection runs but I am not sure how often Vera runs it.

@backkri, how is your system running ? Did the restarts go away ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 12, 2016, 09:28:40 am
Installed Ping sensor on my openLuup test server. Ping sensor doesn't appear to like it's new home, doesn't function. However, Honeywell is humming along just fine.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 12, 2016, 11:17:02 am
I just installed it on my openluup system and it seems to run OK, the one problem I ran into is ALTUI does not implement the luReload() api the same as luup. It seems to be in application.luReload() instead of api.luReload() and hence the ping sensor can not perform a restart to get its ping going. A manual reload worked fine and I see the pings in the log. When I installed I gave the D_ xml and I_ xml.

BTW, the issue I had with the TCC javascript panels is also an ALTUI api issue, it does not implement getUserData() and does implement getLuSdata() the same as luup. Once I fixed this I was able to run the panels on openluup.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 12, 2016, 11:23:59 am
Ah, sweet - I'll give that a try when I get home tonight... Glad to hear the resolution to the other issue.

I just installed it on my openluup system and it seems to run OK, the one problem I ran into is ALTUI does not implement the luReload() api the same as luup. It seems to be in application.luReload() instead of api.luReload() and hence the ping sensor can not perform a restart to get its ping going. A manual reload worked fine and I see the pings in the log. When I installed I gave the D_ xml and I_ xml.

BTW, the issue I had with the TCC javascript panels is also an ALTUI api issue, it does not implement getUserData() and does implement getLuSdata() the same as luup. Once I fixed this I was able to run the panels on openluup.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 12, 2016, 03:21:53 pm
Hi all,

Unfortunately, I still have the impression the TCC is making my system less stable (although I find it very difficult to say which app is really the cause).  I did not make big changes to my Vera recently since the installation of the last TCC version (except adding 1 appliance module and deleting some ghost devices).

- I still seem to have multiple LUUP restarts
- during the last week, I had 2 complete crashes of my Vera.  No way to connect to it, only solution was to unplug it from the power socket.  I solved that one using my old X10 domotics to reboot the vera regularly.

Regards.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 12, 2016, 05:06:00 pm
How many devices (z-wave) ? Scenes (Advanced and custom Lua) ? and Plugins do you have ? How are your overall resources looking (e.g. System Monitor) ?

When I was using my Vera3 exclusively (custom Lua code, scenes, plugins, z-wave etc.), I found instability plagued me below 80 or so meg of memory (something like 78-75). I too had to have Vera restart every single night as memory kept slowly leaking away. When I evaluated and monitored memory usage by Mikee's latest revision, memory never peaked beyond 1.5 meg. A total of 15 data points occurred over a 30 minute time frame. Every 30 minutes looked exactly like the previous 30 minutes. Average memory was 1.18 over 4 days. I didn't observe a freeze, lockup or crash. This was performed on an openLuup system designed by Akbooer. The hardware was a Raspberry Pi2, quad core with 1 GB of memory running OpenWRT and Lighttpd (all native to Vera). This was the only plugin installed.

I have no doubt Mikee is working or has done everything possible to reduce the overall load of the system and to ensure stability. However not all environments are the same and this becomes an arduous process because of that...

If you made it this far then my point is this. Log data and careful examination of your environment is key to moving forward.

Hi all,

Unfortunately, I still have the impression the TCC is making my system less stable (although I find it very difficult to say which app is really the cause).  I did not make big changes to my Vera recently since the installation of the last TCC version (except adding 1 appliance module and deleting some ghost devices).

- I still seem to have multiple LUUP restarts
- during the last week, I had 2 complete crashes of my Vera.  No way to connect to it, only solution was to unplug it from the power socket.  I solved that one using my old X10 domotics to reboot the vera regularly.

Regards.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 12, 2016, 10:24:49 pm
Sure does help if you copy over the implementation file... Details, details. Once again, my bad...
Edit: Added 2 ping sensors (1 for Vera3 and the other for my Camera Server) @ 60 second intervals... Reset ThingSpeak and things are good to go...

https://thingspeak.com/channels/76818 (https://thingspeak.com/channels/76818)

I just installed it on my openluup system and it seems to run OK, the one problem I ran into is ALTUI does not implement the luReload() api the same as luup. It seems to be in application.luReload() instead of api.luReload() and hence the ping sensor can not perform a restart to get its ping going. A manual reload worked fine and I see the pings in the log. When I installed I gave the D_ xml and I_ xml.

BTW, the issue I had with the TCC javascript panels is also an ALTUI api issue, it does not implement getUserData() and does implement getLuSdata() the same as luup. Once I fixed this I was able to run the panels on openluup.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: percussionking on January 13, 2016, 01:01:46 pm
Been running this against VeraLite UI7 for a few days, no issues except I wish the up/down buttons worked ;) Thanks, and keep up the good work! I had actually called a Honeywell rep asking for the API and he said you guys were working on it already lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 13, 2016, 01:09:18 pm
Give AltUI a try, the increase and decrease in temp is fluid. That comment from Honeywell concerns me.

Been running this against VeraLite UI7 for a few days, no issues except I wish the up/down buttons worked ;) Thanks, and keep up the good work! I had actually called a Honeywell rep asking for the API and he said you guys were working on it already lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 13, 2016, 01:28:43 pm
I registered for an application ID from them for the lyric interface (the only one they formally publish).

Thanks for the feedback @percussionking.

Last night I installed PLEG and my system almost immediately crashed. It went into a rolling crash where I had to manually go in and delete files to get it to recover. I was getting "LuaUPnP Terminated with Exit Code 250 (and some 137). My system is still crashing every hour or so. At least I can now start to look into why this is going on! I filed a report with Vera, we'll see what the response is. I hope at least I can get some pointers on how to debug this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 13, 2016, 02:44:58 pm
And PLEG happens to be one of the few plugins that's encrypted and cannot be installed on an openLuup system (not yet at least). Ouch ! Rolling crash.. Not good !

I registered for an application ID from them for the lyric interface (the only one they formally publish).

Thanks for the feedback @percussionking.

Last night I installed PLEG and my system almost immediately crashed. It went into a rolling crash where I had to manually go in and delete files to get it to recover. I was getting "LuaUPnP Terminated with Exit Code 250 (and some 137). My system is still crashing every hour or so. At least I can now start to look into why this is going on! I filed a report with Vera, we'll see what the response is. I hope at least I can get some pointers on how to debug this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 13, 2016, 03:36:07 pm
Quote
If you made it this far then my point is this. Log data and careful examination of your environment is key to moving forward.
Info Viewer to filter your logs.
System monitor to evaluate the resources available.
HTTP and Trace Logs generated by the Honeywell plugin.

@CudaNet there is no doubt that Mikee has done very useful work.  I have all of the suggested apps.  And DataYours to have trends. I have the impression that this plugin was just the step to far for my Vera Edge (cfr.  the problems Mikee is having with PLEG right now, I have that one running for a long time without problems).  There are limits to the number of devices / plugins / scenes that can be active at the same time.  I will certainly have a look into the logs, but this might take a while...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 13, 2016, 03:47:20 pm
Yippe, my UI5 system just arrived ... of course the plugin doesn't install ... yet
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 13, 2016, 04:09:52 pm
Thank you for this post.. Simply put, you absolutely nailed it ... We can have great plugins and over tasked hardware AND on the other hand we can have "offending" plugins and minimally tasked hardware. It becomes difficult to discern between the two without monitoring their overall behavior.

Quote
If you made it this far then my point is this. Log data and careful examination of your environment is key to moving forward.
Info Viewer to filter your logs.
System monitor to evaluate the resources available.
HTTP and Trace Logs generated by the Honeywell plugin.

@CudaNet there is no doubt that Mikee has done very useful work.  I have all of the suggested apps.  And DataYours to have trends. I have the impression that this plugin was just the step to far for my Vera Edge (cfr.  the problems Mikee is having with PLEG right now, I have that one running for a long time without problems).  There are limits to the number of devices / plugins / scenes that can be active at the same time.  I will certainly have a look into the logs, but this might take a while...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 13, 2016, 04:15:40 pm
You should add a donation button to a post so I/we can help fund your R&D ... Just saying !

Yippe, my UI5 system just arrived ... of course the plugin doesn't install ... yet
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 13, 2016, 08:43:48 pm
 ;D
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: percussionking on January 13, 2016, 08:57:35 pm
I mean I can only view the status of my TCC device, not control it. Installed ALTUI, same situation. None of the controls cause any action on my thermostat.

Give AltUI a try, the increase and decrease in temp is fluid. That comment from Honeywell concerns me.

Been running this against VeraLite UI7 for a few days, no issues except I wish the up/down buttons worked ;) Thanks, and keep up the good work! I had actually called a Honeywell rep asking for the API and he said you guys were working on it already lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 13, 2016, 09:01:33 pm
Which interface are you using ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: percussionking on January 13, 2016, 09:35:23 pm
To install I logged in using Vera's UI7 website. Deleted devices, uploaded files locally, and it's all working now.  ;D

Which interface are you using ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on January 15, 2016, 08:25:23 pm
Had this working in UI 7 then downgraded to UI5 then everything stop working.

I uploaded the files per instructed in the two post below but I'm not able to detect my T-stat authorization passed just fine. Any suggestion?

http://forum.micasaverde.com/index.php/topic,30125.msg262513.html#msg262513
http://forum.micasaverde.com/index.php/topic,30125.msg261483.html#msg261483
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 15, 2016, 08:37:43 pm
The current version does not work with UI5 due to a missing json support file. I am testing the new version with the fix.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on January 15, 2016, 08:49:42 pm
The current version does not work with UI5 due to a missing json support file. I am testing the new version with the fix.

Good thing I asked, I just spent a few hours reading through threads of similar issue and trying all possible lua files.  ;D
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dannieboiz on January 15, 2016, 09:00:40 pm
what a minute, I think I got it working....


Maybe this can help....

I did it in this exact order
1st. Install from the GUI entered the credentials and make sure it authenticate. At this point no T-Stat will be detected.
2nd. Upload files from here http://forum.micasaverde.com/index.php?action=dlattach;topic=30125.0;attach=28057 This will cause the LUA to fail
3rd. Upload the 3 files from here http://forum.micasaverde.com/index.php/topic,30125.msg261483.html#msg261483  this will detect the T-Stat but throw a bunch of NILL errors and get an error code 4 after it throws its tantrum
4th. Upload the LUA file attached here. This fixed the error code 4 and actually provides a reading the T-Stat

This is the only way I was able to get it to work. If you upload the files in 2nd step and replace the duplicate with the files in the 3rd steps and do it all together at once won't work.

I found that LUA by going through some response you provided to someone else. This one is the one that works. This is the furthest I've been able to get with this plugin for a month now.

I remember we had to do something for the T-Stat to refresh on its own. Do you still need to do that now?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 15, 2016, 09:22:46 pm
Yikes. It updates automatically now. You can probably use the existing version and just configure it thru the Variables Username and Password. Once you update restart luup and it should come up. The issue is whether you have dkjson.lua or json-dm.lua on the platform. They are on UI7 but not UI5 (at least not the UI5 I have here). I should have a new version up soon but am still trying to find out what is behind the stability issues.

Oh, my system has not failed since it fell apart Wed. I am running with PLEG installed now (not configured). Seems stable. I am running with logs on USB.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 16, 2016, 02:20:38 am
Hi all, First let me thank you for this great plugin. Running the plugin for 3 days now and all looks stable. I can use scenes which work for the child devices. However seems I have an issue on using the parent device. It doesn't recognize the ThermostatID. I expect this to be the 7 digit number which I can also see at the child devices and it is also visible on the mytotalconnectcomfort site. Error in the log says failed to find device. any idea on this?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 16, 2016, 02:40:18 am
Which InterfaceType is this ? I assume Euro or EMEA. If that is the case the thermo ID is the location:thermo. Which actions are you trying to use, HoldSetpoint and CancelSetpointHold ? I am changing the API so you can either send to parent with the thermo ID (which is interface specific) or to the child with an empty thermo ID. The parent handles all actions for the child so it is really just a more natural way to address the thermo. For now use the location ID and the thermo ID separated by ':'.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 16, 2016, 08:59:14 am
Yes, 2 ping sensors and almost 4 days later. Solid as a rock !

Going to reload today and start testing an alarm panel plugin but I'll keep the ping sensor and Honeywell running along side.

https://thingspeak.com/channels/76818

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 16, 2016, 01:13:46 pm
I' am using interface Euro and setting holdsetpoint. Still get the same error: HNYWL TCC ERROR: TCC GetStatus failed result=2, resultText=Failed to find device Euro:1234567,   LuaInterface::CallFunction_Job device 111 function SHoneywellTCC1_HoneywellTCC1_HoldSetpoint_job took 113 seconds
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 16, 2016, 02:53:48 pm
Look on the setup page, the ID listed is what you need to use. Some of the interfaces get a different type value for the ID (not always a number).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 16, 2016, 03:46:50 pm
Thanks, I used that one already. Looks like the trick with the parent device will not work for me as I have defined my parent device (evohome central unit) to act as a thermostat. Therefore it behaves like all other thermostats and I have to set every thermostat to the needed setpoint. Still great plugin to use.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 16, 2016, 04:14:40 pm
The new plugin has a setpoint page on the parent device where you can set the temp and hold time for all thermostats. Hopefully this will help. I am not sure what you mean by "defined my parent device (evohome central unit) to act as a thermostat". I am not terribly familiar with the evohome setup other than what I have read in brochures. It looks like a heat only solution with support for domestic hot water. Each heat zone can have a setpoint with a hold time. The unit itself has a number of modes, on, off, economy, vacation, etc.  I can not get those modes to work with my thermos but I do not have evohome, just US thermos configured in UK. I can test most things with this setup but apparently not all. I'll do what I can but as I can't run this myself it may be a bit difficult.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 17, 2016, 02:00:33 am
Thanks Mikee, Maybe the new plugin will solve the "issue". What I mean is that in most cases the central evohome unit will not act as a thermostat but just as the central unit. With evohome the thermostats are connected to (multiple) heaters in a room and one of these will act as a thermostat for that room. This setup can be done in every room (zone). Instead of using the thermostat connected to the heater you can use the evohome central unit to measure the temperature in the room. That is what I did.
In the vera setup I do see the parent device so if the new plugin supports a holdsetpoint it might work. Still strange I cannot do the holdsetpoint from the plugin as it does show that option in the interface.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 17, 2016, 01:07:36 pm
Ahh, so you mean you are using the parent device to issue a HoldSetpoint using PLEG. Just make sure you are using the whole ID from the setup panel. It will *not* have the name 'Euro' in it. That is the InterfaceType, not the location ID.  There were some issues with the plugin assuming the ID would always be numeric (which they are not). I thought these were fixed. I'll be posting a new version soon...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 17, 2016, 01:14:39 pm
Oh wait, looks like advanced editor on a scene instead of PLEG. Should be the same thing, use the ID from the setup page...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 17, 2016, 02:09:37 pm
@ ranneman: I think I have an installation with some similarities to yours.


The TCC app created 1 parent device and 5 child devices (1 for each room / zone).  The temperature measurement for each child device follows the one defined in the Evohome system.  So the touch panel for the living room, the DT92 for bathroom and 3 sleeping rooms.  So for me there is no need to use the parent device.  However, I have not created scenes etc. to manipulate the setpoints yet, for the moment I stick to the monitoring part.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 17, 2016, 02:48:26 pm
Hi all,

I have some good and some bad news.  Unfortunately, the bad news is for my account and has nothing to do with the TCC.

Lets start with the bad news: I officially am lost about memory usage and LUUP restarts.  I uninstalled the TCC to rule out the possibility this was causing the Edge resource problems.  Did not change anything, so I reinstalled this morning (and also Eventwatcher).  And guess what: since then, memory has been decreasing for 12 hours (65000 for the moment), but no LUUP restarts whatsoever...  My brain is to small to understand this.

Then, the good news: since I reinstalled the TCC (without changing any of the app files), it seems to behave better.  With the setpoint set to TEMPORARY, the changes I make are no longer continuous, but for the next 3 hours.  This is better than before, but do any of you specialist know where these 3 hours would be defined?  It would be nice if I can change this, then it would become really interesting to start changing setpoints trough the vera.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 17, 2016, 03:40:05 pm
Actualy setting the setpoint at the evohome control unit works fine. The problemen is that it is only set for the room in which the evohome acts being the thermostat. I will check how it works if I change this. Will keep you posted.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 17, 2016, 04:02:36 pm
@backkri

Which memory are you watching ? The free memory will continue to decrease as the cached memory increases. The available memory (free+cached) should remain fairly constant.

You are not the only one that does not understand the luup restarts. I can not get a clear answer as to what to look for. I dont think the memory use is the issue. I have seen restarts with a *lot* of memory available. In your case 65M is huge.

I believe the last version I posted used a 4 hour hold time. Any chance you are GMT+1hr ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 17, 2016, 04:14:20 pm
Thanks for your support Mikee. Changed my settings and the evohome now is just a control unit and not acting as the thermostat anymore. Still the same result. While using advanced editor I can select the parent device and set the temperature. This will work but only for one single zone. It doensn't change the setting for all zones. Will test some more later on this week.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 17, 2016, 04:19:04 pm
@ranneman

yes, there is no option to set all zones. You need to set each thermo device in the zone. If this is not the right behavior and all thermos in a zone need to be set let me know. Also, if there are thermos in zones that should not be controlled I'll need to know this also. I am currently under the assumption that each thermostat reported in each zone is an independent control point and will be configured as a thermostat in vera. You can use the setup panel to disable thermostats in your zones that should not show up as vera thermostats.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on January 18, 2016, 12:52:52 pm
Thanks Mikee, that will do.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on January 18, 2016, 03:11:29 pm
@ Mikee

Quote
Which memory are you watching ? The free memory will continue to decrease as the cached memory increases. The available memory (free+cached) should remain fairly constant.

You are not the only one that does not understand the luup restarts. I can not get a clear answer as to what to look for. I dont think the memory use is the issue. I have seen restarts with a *lot* of memory available. In your case 65M is huge.

I believe the last version I posted used a 4 hour hold time. Any chance you are GMT+1hr ?

Your correct: I live in Belgium, GMT +1hr.

When I talk about free memory, I use the system monitor app: memory available.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 26, 2016, 07:51:14 pm
10 crashes reported to vera and they can not help identify this. The logs are not sufficiently verbose. Sigh, .... I am not sure we will be able to get to the bottom of the instability. I'll keep trying but there really is not much left I can do.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 26, 2016, 11:41:13 pm
Mikee,

I was going to post today (it's been super quiet) and then I thought that perhaps you were busy with work/home/life etc. Aside from the issues Vera is giving you, I hope things are going well.

10 crashes reported to vera and they can not help identify this. The logs are not sufficiently verbose. Sigh, .... I am not sure we will be able to get to the bottom of the instability. I'll keep trying but there really is not much left I can do.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 27, 2016, 07:53:11 am
Doing well, thanks! I am crazy busy at work but still get to work on this quite a bit. I have a lot of changes to the plugin but want to get to the bottom of the restarts before pushing more change. I exchanged messages with @amg0 and got the ALTUI issues worked out. There is a big problem in the UI7 with respect to caching of device state. When you issue an action that modifies state and then read the resulting variables you may not get the results of the change. First, if the action is a job you need to poll for the completion (the UI7 event mechanism does not report which jobs have completed). Then once you have the completion you need to poll for the next UI7 status refresh. Then you can read the updated variables. This is a) horrible and b) not implemented in openluup so there is no platform independent way to do this. To solve this @amg0 suggested using handlers instead of device actions so I can issue a request and get the results directly. This works but I am concerned about the implications of executing a potentially long request. Lots of good learning and nice folks to work with so its all good.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 27, 2016, 12:19:05 pm
Yes, same here (busy) but it sounds like you're making progress in an imperfect and haphazardly documented system. Although the suggestions from amg0 sound great, it's just one of those things that have to be tested (as you indicated, lengthy request times) for you to reach a comfort level. Sometimes its best to just clear you mind and revisit the issue(s) at a later time. After all, it's calm in here - no show stoppers so to speak so things must be working for the majority.

Another option is to bounce any questions or concerns you have off Akbooer - a great source of knowledge and I'm sure wouldn't have any issues helping. After all, we're all here for the same purpose.

Doing well, thanks! I am crazy busy at work but still get to work on this quite a bit. I have a lot of changes to the plugin but want to get to the bottom of the restarts before pushing more change. I exchanged messages with @amg0 and got the ALTUI issues worked out. There is a big problem in the UI7 with respect to caching of device state. When you issue an action that modifies state and then read the resulting variables you may not get the results of the change. First, if the action is a job you need to poll for the completion (the UI7 event mechanism does not report which jobs have completed). Then once you have the completion you need to poll for the next UI7 status refresh. Then you can read the updated variables. This is a) horrible and b) not implemented in openluup so there is no platform independent way to do this. To solve this @amg0 suggested using handlers instead of device actions so I can issue a request and get the results directly. This works but I am concerned about the implications of executing a potentially long request. Lots of good learning and nice folks to work with so its all good.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: redstorm64 on January 29, 2016, 12:14:12 am
I installed version 1.2  of this plugin and it's unable to recognize my thermostat.  I get the message "Honeywell TCC Authorization passed, but no devices were found."  I'm not sure how to install the latest version of the app that JoeyD posted here either (I'm new to Vera, just uploading the files that were posted doesn't seem to do anything). Is there a step I'm missing to recognize my device?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 29, 2016, 12:31:39 pm
Redstorm64,

I'd sugged you de-install the app you installed first ([Apps].[My Apps].Details.Uninstall) and we'll have to load the latest files from Mikee manually. Here are the steps needed (once you've uninstalled the plugin).

[1] Grab the zipped file from here, located on reply #504. http://forum.micasaverde.com/index.php/topic,30125.495.html (http://forum.micasaverde.com/index.php/topic,30125.495.html)
[2] Decompress the files to a folder.
[3] Within Vera (UI7), goto [APPS].[DEVELOP APPS].Luup Files.
[4] Click upload. Navigate the folder where all the decompressed files are located. Select the first file.
[5] Once selected, the file will be uploaded.
[6] Repeat step [4] until all files are uploaded.
[7] Within [Develop Apps], select Create Device.

Description : Honeywell TCC
Upnp Device Filename: D_HoneywellTCC1.xml
Upnp Implementation Filename: I_HoneywellTCC1.xml

[8] Click on Create Device.
[9] Goto [Devices] No Room and begin configuring the Honeywell app.

Hope that helps...

I installed version 1.2  of this plugin and it's unable to recognize my thermostat.  I get the message "Honeywell TCC Authorization passed, but no devices were found."  I'm not sure how to install the latest version of the app that JoeyD posted here either (I'm new to Vera, just uploading the files that were posted doesn't seem to do anything). Is there a step I'm missing to recognize my device?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: electricessence on January 30, 2016, 04:32:57 am
I'd like to confirm that your suggestion for the above steps worked.
Thank you.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on January 30, 2016, 06:58:08 am
I have Honeywell Evohome and having seen others hee using this app for Evohome I decided to try it.

After trying, all I get is failed install, try again. Trying again gets the same result. Now all I get is a message saying user name not configued check settings in TCC but it is nowhee. I cannot even uninstall as it is not shown in apps.

What next?

Update -

After a couple of hours, the TCC device appeared but now I cannot get it t connect using my connection details. I have proved the details are correct by logging in to my Total connect. Is there a different user name to email adress used at the login and if so how do i find it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 30, 2016, 11:39:20 am
Which interface are you using ? You can just delete your TCC device and the plugin should no longer run. The code will still be on your machine. However, we should be able to get you going. Select euro or emea on the setup page. Enter your account credentials and click login. It should find your devices.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on January 30, 2016, 12:43:34 pm
I cannot see any euro option on the TCC setup page. Only user name and password.
I tried deleting the device and added another but the same page appears.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 30, 2016, 12:50:16 pm
Are you following the instructions above from CudaNet ? If there is no option for Euro or EMEA you do not have the right version of the plugin.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on January 30, 2016, 12:52:46 pm
I just installed from the apps page. I will look back though the posts as you said.
I will let you know how I get on.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on January 30, 2016, 02:07:18 pm
Post #572 on this page:
http://forum.micasaverde.com/index.php/topic,30125.570/topicseen.html (http://forum.micasaverde.com/index.php/topic,30125.570/topicseen.html)

I just installed from the apps page. I will look back though the posts as you said.
I will let you know how I get on.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on January 30, 2016, 02:07:30 pm
Okay, followed the instructions and created the device. Had to reload but then device appeared. Got the log in sorted and eight devices found.
Each new device is reporting temperature but none show the setpoint and all show Off where I expected Heat or Auto.
Is there a basic guide on what I can achieve with the plugin using it with Evohome.
I  also noticed in the topic that devices could be jncreased to 12 to mat h the Evohome master. Can this actually be done?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 30, 2016, 04:53:39 pm
The version of the plugin I am working on has support for 12 devices to match evohome. I do not have access to an evohome setup so I can only do my best to make it work for those of you that do. I moved a couple of my thermos (US version) to a setup in the UK and this allowed me to get the basics but probably not all. So, please, report any issues you are having and be patient. Right now I am struggling with some instability issues I'd like to resolve before posting another version but we may have to move forward without that resolution. It has taken a long time so far to try to isolate the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on January 30, 2016, 04:57:31 pm
If anyone is having issues with the thermos not showing the off/heat properly or the setpoint and can supply logs with the LogEnable and TraceEnable flags set in the plugin it would help me tremendously to fix this. Remember, your passwords WILL be in the log so please edit the logs and remove them before posting. If you'd rather send them to me directly PM me and we can set this up.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on January 30, 2016, 06:44:55 pm
@mikee
Sorry but I removed the device from my Vera because I suddenly found delays on any actions within the Vera app.
It would seem to freeze for 10-15 seconds before suddenly working again. Having never had a problem with my system in the past I was reluctant to risk knackering everything.

That said, I can easily re-create it so if no-one else is available, let me know and I can send reports and logs.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 01, 2016, 06:40:10 am
Mikee, Slartibardfast,

I'm also UK based and to be honest I've been using this plugin more to get access to the thermostat readings, but have now gone back and had a look to see how this is working.   I've attached a couple of pics so you can see the context.   I'm using UI17 (latest version).   You can see in the faceplate pic that the temp is being reported and that represents the current indoor temperature.   The setpoint reports as being 0.0, which it's not, should be (in this case) reporting 10.0.

When it comes to operation however lets say the reported temperature is 14.0 and I want to set it to 20.0 I use the red up arrow on the control plate to take the number up to 20.0 and that seems to do the necessary to get the system heating.

On the Advanced tab / Settings (pic attached) you can enter things like the setpoint etc. but I must admit I tend to use the Honeywell app to do things like that.   I've not yet played with geofencing to use that as a trigger to implement a heating event, but that would be the next logical step and where I'd want to be able to apply control events.

I'll have to look at how logs etc are created to provide further input, I know the instructions are earlier in the post am just forgetful and need to re-look.   It is a fantastic plugin and grateful to Mikee pushing this as far as it's gone as I hadn't expected to be able to integrate the Evohome into Vera, but brilliant that it is now.   

For context I have;
- LightwaveRF for lighting control
- Honeywell Evohome for heating control
- Somfy for blind/window covering control
- Visonic for Alarm System/motion control
- Energenie for electrical socket control

You'll notice that all my control is exclusively via the RFX plugin and no zwave, thats because I haven't found devices yet that do what I want at a price that is acceptable, but the Vera environment does allow he control I want.

I'm not using any of the PL plugins for more complex logic control as I've limited the automation to timing (sun-up/sundown) and remote control activation.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 01, 2016, 08:54:33 pm
Isablend, Slartibartfast

Thanks for the info. Yes, I will need logs collected because it is clear the status handling is wrong. The best way to do this is to set LogEnable and TraceEnable to 1 in the advanced tab and collect for about 15 minutes. Once you get the logs make sure you edit them to remove your passwords.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 02, 2016, 08:23:02 am
Mikee,

had a go at producing logs per the Info Viewer instructions.  They don't appear to be very verbose, was only able to get a few seconds of data rather than the 15 mins requested.  Let me know if its good enough, or if you need more.  I may need help in understanding why only a short burst is presenting itself.



Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 02, 2016, 09:37:19 am
Had another go, attached more like 12 mins of log info.  During this period I attempted to change the temperature in the 'Dining' zone by increasing it.  That's the activity at approx 14:18, which looks like it failed.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 02, 2016, 04:48:34 pm
From the logs it looks like your system in in "Auto" mode. The logic in the plugin is attempting to figure out if your system is actually heating or cooling by checking the temp and the setpoints. It decides you are cooling and there is no setpoint for this mode, hence 0. Does your system support both heating and cooling ? Also, I don't think the vera thermo supports auto mode, I need to verify this. It sounds like the handling of "Auto" is not correct in the plugin for your system. Thanks for the info, it very clearly shows what is going on. Can you explain the modes of your system ? From what I read it was a heat only system. Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 03, 2016, 10:31:42 am
Mikee,

yes, you're right the front panel reports the system as being in Auto.   I'm using the plug-in in EMEA mode.   The Evohome system (here in UK at least) is heating only.   I saw in the system parameters that there are different setpoints also available (for each individually defined Thormostate device).   So the frontplate seems to be reporting the 'CurrentSetPoint' value of zero, but there is also 'CurrentSetPoint Heat' which reports the actual setpoint of the thermostat (in my case 10).   There is then the 'CurrentSetpoint Cool' which in my case is also reporting zero, I assume because that capability doesn't exist.   Confusingly there is then a variable 'AllSetPoints' which reports the value 10,0.  The reason for (in my case) there being 11 thermostats is because each one equates to a radiator control valve (HR92).

One other observation.   The devices recognised by the system don't include the stored hot water temperature, which has a separate boiler relay and thermostat, but for some reason doesn't get identified as a separate sub-device.

Let me know if you need any other info.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on February 03, 2016, 02:05:42 pm
Hi Mikee,

Running the plugin for two weeks, seems to be stable to me (evohome Europe). I do recognize the behavior described before, so the UI doesn't show the actual heatsetpoint and even selecting HEAT doesn't show the correct setpoint instead it shows 0. In my Imperihome UI the values show up correctly. I was able to create a scene which does set my thermostats (HR92) to a permanent setpoint if I'am away.

Included the logs if any help.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 03, 2016, 07:48:56 pm
Thanks for the info @Isablend, @ranneman. I'll see if I can fix the heat vs auto in the emea/euro lib since they seem to be heat only.

@Isablend, the heat setpoint is 10, the cool setpoint does not exist so it is 0. The AllsetPoints is reported as heat,cool so 10,0. The logic to determine which setpoint (heat/cool) to display seems to be broken. I think the mapping of the evohome "Auto" to Heat/Cool "Auto" is the issue. In evo I think "Auto" means normal heat on. I am not sure how to map the various modes to the Vera modes "Off" and "Heat". As I understand evo you can have "Off", "Auto", "Economy" (down 3 deg), "DayOff" (sounds like it overrides the schedule), "Away". I think these are the quick actions but it sounds like you can change them. I tried to get the heat on/off to work with my thermos but could not. Perhaps I should map off to off and heat to auto. I'll give it a try ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 04, 2016, 09:57:27 pm
I have done the little testing I can with these two files. Give them a try and let me know how they work.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 05, 2016, 04:54:19 am
Mikee,

.....top job.   I've done a couple of tests  and so far all I can say is brilliant.   Each Thermostat shows up as heat driven with the setpoint correctly set.   Adjusting the setpoint initiates heat activity when the setpoint is above current temperature.

I've produced some logs, so you can see how its operating.   You'll notice that at the end of log 2 and beginning of log 3 (I had to split it up because of size), that there appears to be some form of plug-in reset with the error message;

"Info Viewer ajax error - possibly malformed XML received:
 500 - Internal Server Error"

However as you'll also see it just re-authenticates the plug-in and carries on.  I couldn't find any knock on impact in operation.

As a test you'll see that I move the dining room setpoint up to 20degrees and the heating kicks in.   Whilst it was doing that I setup a scene to what I initially thought was re-set the setpoint, but was actually to set the setpoint for another temporary period of time (same effective thing in my case, but not the same logic).  Either way the scene delivered the new setpoint when triggered.

To your points the other day about 'Quick Actions'; which apply at a parent level.  So for instance I have the plug in defined at ?house? level with thermostats documented in individual rooms.   They would then require switching at that top level, where it would filter down to the impacted child thermostats.

The quick actions available are;
Economy - turn all thermostat setpoint's down by 3 degrees
Away ? sets all zones setpoint's to a default of 15 degree Celsius (which is adjustable) ? I?ve never been sure about this as 15 degrees seems too high to me to have apply when there is no-one around, but there you go, just my 2 cents worth?
Day-off ? all zones to follow the day off schedule (Saturday?s by default)
Custom - only the number of zones as selected in the evohome's settings will follow the custom schedule.
Heating Off ? all zones set to the 'heating off' temperature which is 5 degrees by default.

Once again top job.  If you want anything specific tested let me know and in the mean time I'll keep monitoring over the next couple of days.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on February 05, 2016, 06:08:35 am
@Mikee
 
Asking these questions of Isablend as I know you cannot test on actual system.
All sounds good so far. I did install previously but had a lot of freezing (computer not temperature  :) ) problems. Hopefully these are now solved too.
 
@Isablend
 
1)  When you set a temperature via the plug-in, is it effectively the same as changing the temperature via the main thermostat which will then automatically change with the next schedule change or the next change via thermostat or HR92
2)  Quick actions can be time limited or permanent. Is this also possible via plug-in
3)  Can you change/cancel quick actions as you would via the main thermostat
 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 05, 2016, 06:51:07 am
Slartibartfast,

1)  When you set a temperature via the plug-in, is it effectively the same as changing the temperature via the main thermostat which will then automatically change with the next schedule change or the next change via thermostat or HR92

When you set the temperature via the plug in it is essentially the same as using the HW consol to set the temperature for that thermostat as an imediate action, except that it will apply the changed temperature as an override for a period of 4 hours (if the setpoint is set to temporary, otherwise its permanent), regardless of the underlying schedule.  For example say I have a setpoint of 10C and the time is 09:00 the next schedule setpoint event change is at 11:00 to put the setpoint to 15C.   If I use the plugin to put the temperature to 20C between 09:00 and 11:00 it will adjust the temperature to 20C and remain so until 4 hours after I activate the change, overriding the system schedule. I think this is how it works, but haven't yet tested it.

2)  Quick actions can be time limited or permanent. Is this also possible via plug-in

No quick actions currently available, that description I left was just to let Mikee know what is built in to the HW console  As I mention these would need to be at the parent level rather than the individual thermostat device level.

3)  Can you change/cancel quick actions as you would via the main thermostat

See 2.   I did use a scene to change a current set event, but that was just me playing to see what happened and of course what it does is activate another temporary setpoint.

Hope this helps.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on February 05, 2016, 08:15:30 am
Slartibartfast,

1)  When you set a temperature via the plug-in, is it effectively the same as changing the temperature via the main thermostat which will then automatically change with the next schedule change or the next change via thermostat or HR92

When you set the temperature via the plug in it is essentially the same as using the HW consol to set the temperature for that thermostat as an imediate action, except that it will apply the changed temperature as an override for a period of 4 hours (if the setpoint is set to temporary, otherwise its permanent), regardless of the underlying schedule.  For example say I have a setpoint of 10C and the time is 09:00 the next schedule setpoint event change is at 11:00 to put the setpoint to 15C.   If I use the plugin to put the temperature to 20C between 09:00 and 11:00 it will adjust the temperature to 20C and remain so until 4 hours after I activate the change, overriding the system schedule. I think this is how it works, but haven't yet tested it.
 
I would be interested to hear how this pans out. How does the overide keep the setting as a change at the master would normally only be until the next change. It is possible however at the master to make a time limited change so perhaps this is what is happening. Can you therefore change that time limit. Best option would be to be able to do a time limted change or just an immediate change allowing control back as normal. The same as if you were actually at the master. Best of all worlds then.

2)  Quick actions can be time limited or permanent. Is this also possible via plug-in

No quick actions currently available, that description I left was just to let Mikee know what is built in to the HW console  As I mention these would need to be at the parent level rather than the individual thermostat device level.

The ability to set or cancel a quick action would be fantastic. Setting permanent or time limited would be the icing on it.

3)  Can you change/cancel quick actions as you would via the main thermostat

See 2.   I did use a scene to change a current set event, but that was just me playing to see what happened and of course what it does is activate another temporary setpoint.

Hope this helps.

Have you had any slowing or freezing of Vera. If not I may bite the bullet and re-install. Is the version for 12 zones available yet, I have 11 zones on my system.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 05, 2016, 10:37:35 am
Terrific news. Thanks @isablend. This version is just a patch to the existing plugin to fix the temp problems. I have not been able to get to the root of the instability issues. Vera is looking at it in QA but no word yet on whether they can reproduce the problems. I can report that since I disabled the info viewer I have not had a restart (4 days ago). I can not make the causation link but it does seem someone is not playing nicely.

This version does not support 12 thermos. That requires the javascript version I am working with. There are a number of issues that came up with this version. It adds the ability to set the setpoints, permanent vs tempory hold and hold until times. It also adds the ability to  edit the schedule in the thermo. There are major problems with executing requests from Vera that return results and it has taken some time to sort this out. I am also trying to make this compatible with openLuup but it does not support job status so I had to rewrite things to use requests instead of actions.

I'll get this version out as soon as I can.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on February 07, 2016, 01:49:53 am
Installed the patch yesterday and seems to be working fine. If I now select heat it shows the setpoint. Everything seems to stay stable. Would be great to be able to set the mode to heat permanently (heat, cool, auto, off) instead of switching back to off after while.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 07, 2016, 02:14:46 pm
The setpoint uses the default hold type (on the setup page) but the mode (Off/Heat) should always be permanent. Are you seeing the mode changing temporarily ? I had a problem where the Euro API would not accept the permanent time. Try the attached file and let me know if this fixes the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 09, 2016, 05:55:09 am
Mikee,

I had a look at the change you posted and checked it out with a few tests.   Long story short from what I have observed it works as described i.e. Off sets a permanent system wide Off status.   Heat reverts to currently programmed schedule permanently.

An interesting observation, follows the old adage that 'the secret of good comedy is ...... timing'.   What I mean by this is that the actions have the described effect, however it takes a short while for the status to be reported correctly.  So I set Off, status is reported fairly quickly (within 10 seconds) as thermostats show Off.

I select Heat (to reverse the previous action).   Initally the thermostats report either no change or a minimum setpoint of 5degree.   Interestingly enough, Honeywell's own iOS app reports setpoints of 5degree across all thermostats.   Main system controller reports return of schedule setpoints correctly.   The HW app then updates back to the current schedule setpoints (within about 30 seconds).   The plugin takes anything up to 5-6 mins before it starts reporting the return of the schedule setpoints.  Just something to be aware of for others doing this testing.  The action is correct it just takes a while for it to be reported as such.

Cheers.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Slartibartfast on February 09, 2016, 06:21:29 am
Following from this:
 
Setting Off on the main thermostat actually sets 5 deg on all thermostats as a frost prevention measure even though the master controller reports as Off.
Hence setting back to normal programme report 5 deg on all thermostats. It then takes time for each TRV to wake up receive the new value and change. It is interesting that the app only shows the target temperature after it is received by the TRV even though the master controller is showing the target almost from start.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on February 09, 2016, 08:02:42 am
Mikee,

I have tested the change but the behavior did not change. After a while the setting switches back from heat to Off. Included are the settings. I will do some more testing later on and see if I can include a logfile. the attachment show the inital state and the state after I select mode HeatOn. What should the parameters be on the settings page if I want HeatOn to be permanent?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 09, 2016, 07:25:54 pm
@ranneman, I don't use any interval time for mode changes. Yes, a log will be very helpful to isolate this. Also, give emea a try to see if it has the behavior you want, rather than Euro. Should be the same credentials, different interface and behavior. @isablend reports the modes change permanently so something is different with your setup. Hopefully the log will answer it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 10, 2016, 04:29:58 am
Here's my equivalent to image 3 with the variable HeatSetpointHoldType, there is clearly a difference; I'm getting 'FollowingSchedule' (which for Off is acting as Permanent) versus your 'Temporary'.

Incidentally on the Master plug-in device under 'defaults' if I select the 'Permanent' setting for Setpoint Behaviour I get an error message "Error: No Implementation", so its always set to 'Temporary' for me.

I am logging in under the Honeywell Interface 'EMEA'

Hope that helps,
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 10, 2016, 05:02:30 am
Any this is what the variables show when heating is initiated.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on February 10, 2016, 11:30:55 am
Mikee,

Switching to EMEA indeed solves the issue. Now Mode remains on Heat.
I did a test on interface EURO and have included the log files. This is what I was doing in that test:

interface euro
switch heaton device 112
increase to 21 device 112
heat switches back to off almost immediately
switch heaton device 112
decrease to 20,5 device 112
heat switches back to off almost immediately
switch heat on device 112
Heat switches back to off after 2,5 minutes
switch back to interface EMEA

@Isablend, thanks for checking and comparing!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: akbooer on February 10, 2016, 06:36:55 pm
I am also trying to make this compatible with openLuup but it does not support job status so I had to rewrite things to use requests instead of actions.

I only ran across this post by accident, but you only need to ask on the openLuup board and I'll see what I can do.  If you can describe what's needed exactly, so much the better.  I never spent much effort on job status reporting simply because my plugins don't use it, but all the infrastructure is there.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 18, 2016, 09:40:14 am
Hello, I am also having an issue with the v1.2 plugin not finding my 3 wifi thermostats after successfull TCC login. Is it still necessary to install the plugin manually or is there a new version being posted directly to the "App Store"?

Updated:2015-02-08 11:52:23
Current Version:1.2

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 18, 2016, 10:43:02 am
I'd like to add that I followed instructions in post #572 (manually uploaded zip file and created device), but I'm still getting the error "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found."

I'm pretty technical, but very new to Vera and would appreciate any help making this work. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on February 18, 2016, 12:21:25 pm
@ov3rmind

Apologies, I just noticed no one has posted so let me see if I can help. Seems you discovered that yes, the plugin (at the moment) has to be manually installed. Looks like you've got that covered from a post I made previously - that's good. Have you attempted to reload the engine ? For UI7, go to [Settings].[Z-Wave Settings].Advanced.Reload Engine and press GO. Let the system reload. Click on [Devices] and see if anything was created.

If not then we'll probably need to tail the logs to see what's happening behind the scenes.

I'd like to add that I followed instructions in post #572 (manually uploaded zip file and created device), but I'm still getting the error "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found."

I'm pretty technical, but very new to Vera and would appreciate any help making this work.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 19, 2016, 06:28:29 pm
Thank you for your reply.  Reloading the engine didn't do anything.

TCC interface still does not work or detect devices.  For whatever reason, Mobile detects my devices and adds 3 thermostats to the devices list and shows the current temperature in the room.

There are some big issues though:
Modes are not correct -- all thermostats show Auto while Native Honeywell app shows 1 device Off, 1 in permanent hold, another in Auto / schedule
All set temperatures show "0.0"

Changing temperature seems to have no effect. 

Is there anything I should try to get this to work?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: CudaNet on February 19, 2016, 06:50:17 pm
Let's start with the UI first. So when you say mobile you're talking about Vera mobile app ? If that's the case then I'd expect those devices to also be - well, within the devices tab of the web UI. Devices won't appear within the UI7 Dashboard unless you favorite them (if grey you won't see it on dashboard, if yellow you will - click to turn yellow and again to turn grey) from the Devices tab. I haven't used the mobile app in a while but perhaps try to do it from there and see if it appears on the web UI. If it doesn't then it may be an odd issue of the device being invisible. I'm hoping the 1st suggestion fixes that part.

Thank you for your reply.  Reloading the engine didn't do anything.

TCC interface still does not work or detect devices.  For whatever reason, Mobile detects my devices and adds 3 thermostats to the devices list and shows the current temperature in the room.

There are some big issues though:
Modes are not correct -- all thermostats show Auto while Native Honeywell app shows 1 device Off, 1 in permanent hold, another in Auto / schedule
All set temperatures show "0.0"

Changing temperature seems to have no effect. 

Is there anything I should try to get this to work?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 19, 2016, 09:05:49 pm
@ov3rmind

There is a problem with Auto mode. It will not detect the setpoints properly. I do not have an Auto mode system (I have heat only) so it is difficult to get this sorted out. I supplied a patch for the Euro/EMEA interfaces to force Auto mode to Heat to fix this but that only works because those interfaces are heat only also. I am not exactly sure how to fix the Auto mode. Right now it looks at the current temperature and tries to determine if you are in heat or cool mode and usually gets it wrong. There is no indication of which mode it is actually in unless it is actively heating or cooling. If the system is idle you need to guess which setpoint to use.

The TCC and Mobile interfaces are two different APIs to the same US based service. I am surprised that TCC will not detect your devices but Mobile will.

Is there any chance you can supply log files ? Please keep in mind the log files will contain you account and passwords so if you decide to post please edit them to remove sensitive info.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 19, 2016, 09:11:23 pm
Absolutely happy to supply log files.  I see a flag for log 0/1.  Assuming it starts logging automatically after I set it to 1, where do I pull the log from? Also do you want me to perform any actions with the thermostats or in UI after logging is turned on or just try switching from TCC to Mobile interface mode?

Thank you for the quick replies.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 19, 2016, 09:21:18 pm
There are two flags that need to be set, LogEnable and TraceEnable. Please set both to 1. The log file can be found in /var/log/cmh/LuaUPnP.log. If you can log in via ssh to your vera you can scp the log file out to somewhere you can edit it and post. Otherwise you can access the log file using InfoViewer using the setup info in post #366.

Please set the interface to TCC, log in and let the plugin attempt to detect the thermostats. Then change the interface to Mobile and log in again and let it populate the devices. This should give me enough info to figure out what is going on. If you don;t want to post the log PM me and we can set up a way to send the file.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: TheSummit on February 20, 2016, 02:32:12 pm
I finally got my 9000 to work with creating device. Do you know of anyway to override the temporary hold when the thermostat is adjusted. While testing, I bumped up a degree while the tstat was on hold. The tstat switched to a "hold till" time. I would like it to hold permanently. Thanks,Derek
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 20, 2016, 08:02:06 pm
done.  see attached log file.  I enabled the logging flags while Mobile was still on.  Then Switched between TCC and Mobile.  It didn't try to authenticate it seems because I didn't notice my user/pass in log files.  So I re-entered my user/pass in the interface and switched to Mobile, and lastly TCC.

I hope this helps.  Thank you for looking at this !

There are two flags that need to be set, LogEnable and TraceEnable. Please set both to 1. The log file can be found in /var/log/cmh/LuaUPnP.log. If you can log in via ssh to your vera you can scp the log file out to somewhere you can edit it and post. Otherwise you can access the log file using InfoViewer using the setup info in post #366.

Please set the interface to TCC, log in and let the plugin attempt to detect the thermostats. Then change the interface to Mobile and log in again and let it populate the devices. This should give me enough info to figure out what is going on. If you don;t want to post the log PM me and we can set up a way to send the file.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 22, 2016, 10:03:33 am
Did you log into the honeywell site directly and accept the license agreement ? Looks like you are getting a redirect to terms and conditions. I'm still looking at the status issue ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 22, 2016, 10:06:32 am
@TheSummit

Did you set the hold type to permanent on the defaults page ? I seem to recall an issue with permanent still using a timeout on the Euro interface. Try switching to EMEA (or vice versa) and see if the problem persists.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 22, 2016, 10:24:31 am
unbelievable !!  I visited "https://mytotalconnectcomfort.com/portal", logged in and accepted the license agreement and now TCC interface works perfectly!  It found every thermostat and loaded ALL settings perfectly.  I never used the interface via the browser -- only via the mobile app.  Totally explains why this didn't work!  Perhaps code can be modified to intercept this redirect and change the message from "HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found." to ""HNYWL TCC: : Honeywell TCC Authorization passed, but you must log into https://mytotalconnectcomfort.com/portal manually and accept license agreement."

Thank you so much @mikee !

Did you log into the honeywell site directly and accept the license agreement ? Looks like you are getting a redirect to terms and conditions. I'm still looking at the status issue ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 22, 2016, 10:39:54 am
FYI, I have one of my thermostats set on permanent hold and adjusting the temp also reset it to Temporary hold.  I checked variables and they both say "Permanent". 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 22, 2016, 12:21:14 pm
Good news @ov3rmind. The TCC interface scrapes the web pages for locations. I probably could detect the redirect to terms and conditions vs the normal redirect but I'd rather make the interface obsolete and use the mobile API. The mobile interface uses the same API as the mobile app and does not have this problem. However, you said it did not work properly when setting your thermos. Is this still the case ? Is the permanent vs temporary on the TCC interface, Mobile or both ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ov3rmind on February 22, 2016, 02:16:35 pm
I attached 2 screenshots. 

Mobile interface still doesn't work properly.  It doesn't show the correct status -- all are set to Auto.  Set Temp shows 0.  Also changing the temperature or toggling between auto/heat/cool/off  does nothing.  It feels like the only thing Mobile does is grab the correct indoor temp reading. 

Temp hold issue I'm only able to observe with TCC interface as Mobile one isn't allowing me to change temperature at all.   

Good news @ov3rmind. The TCC interface scrapes the web pages for locations. I probably could detect the redirect to terms and conditions vs the normal redirect but I'd rather make the interface obsolete and use the mobile API. The mobile interface uses the same API as the mobile app and does not have this problem. However, you said it did not work properly when setting your thermos. Is this still the case ? Is the permanent vs temporary on the TCC interface, Mobile or both ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on February 23, 2016, 01:28:42 pm
Just upgraded from a VeraLite to a VeraPlus.  Looks like my basic functionality is working (I don't use the scheduling much).  Can't remember exactly, but I'm using a version around post 454.

@Mikee - I'm open to test the newest code if you'd like.  If you can just point me to your newest code.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 24, 2016, 08:50:23 pm
I have just released version 2.3 thru the app store. This version should run on UI5, support 12 thermostats, fixed Mobile interface and have all fixes to date. The process for release is a bit sketchy but I *think* I have it submitted and approved. Please give this a try and let me know how it goes.

Note: this release does *not* include the javascript rewrite of the control panels as there are too many changes involved at this point. I'd like to stabilize this version.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on February 25, 2016, 09:17:43 am
Updated the VeraPlus and everything seems to work fine so far.  I'll post if I have any issues.  Again, I only primarily turn on and shutoff my thermostats based on if anyone is home.  They follow the set schedule without dynamically changing it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on February 25, 2016, 01:13:09 pm
@Mikee, I've loaded it and so far so good.  Only issue I had was after update, all thermostat devices showed 0 temp and 0 setpoint, until i went into each device when it showed the correct info and subsequently on the main device page.  I did check that each device was reporting correctly to the parent device and that all seemed fine, which is great.  Will let it run for a couple of days and report back.  All looks good so far.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 25, 2016, 09:59:39 pm
Thanks @jlind ,@Isablend
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kf6dlq on February 29, 2016, 10:47:23 am
Hello: Thank you for the plug in.  It is great that it is a app now.

Under the thermostat, I am able to Turn off and on the system.  However, changing temperature does nothing.  It shows correct on the screen, but never updates.  Eventually, it reverts to what the schedule already shows.  It is a US thermostat.  Any help would be appreciated!

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kf6dlq on February 29, 2016, 11:33:16 am
Solved my own issue.  Manually ssh'ed to VeraPlus and deleted all lua files.  Then, reloaded program from App list.  It now works at setting temp.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bkoblenz on February 29, 2016, 07:54:15 pm
I have a friend with a honeywell HTM6000R (which seems to be a gateway for wireless thermostats) and a bunch (5) TH8320R1003 thermostats.  He has an account at mytotalconnectcomfort.com and can access data through that.

What he wants to do is basically log that data for a while to watch various temperatures, when they change to heating mode, and what the outside temp is.  All of that information looks to be available on the webpage at any given point in time, but there is no apparent logging capability.

So, my first question is does something like this already exist and how would he use it.

I was thinking of writing a python program to periodically check the url, parse the resulting xml data and just log the info to a file.  I have found the relevant information in the web page and this would be pretty straightforward, except I do not know how to integrate username/password authentication into this mix.

So, I was hoping someone has already figured this out and, ideally, might have some python code I could steal, or at least can explain the mechanism how this is working.

That is assuming I do not hit the jackpot with someone already have a logging tool available.

Any help or pointers?  thanks much.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on February 29, 2016, 11:43:31 pm
If you are using TCC try Mobile to see if the behavior is the same. Also, is this UI5 or UI7 ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on March 03, 2016, 07:58:02 am
You might want to have a look at the following;

http://www.automatedhome.co.uk/vbulletin/showthread.php?4696-Beginners-guide-to-graphing-Evohome-temperatures-using-python-and-plot-ly

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Brientim on March 03, 2016, 01:27:12 pm
If you are using the Vera App, this already polls the Thermostat(s).

You can use DataMine2 to continually monitor those variables and map the temperature
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on March 07, 2016, 12:31:25 pm
@Mikee,

been operating with the new version now for just short of 2 weeks, no operational issues, all functionality operating as normal, no unexpected issues, great job.   Very slick looking and operating app.

One side question.  Is there any intent to include stored hot water in the app?   My understanding is that it is treated as another zone except that the name is blank and has to be identified by the deviceID.  It has 2 states (on and off), with a default (main system configured) setpoint for when it is on.

Cheers
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on March 08, 2016, 07:26:44 pm
There are no current plans to add this capability. As I see it we would need to add a property to the thermo to indicate this is a dhw thermo. This property could be used by the backend library to issue dhw APIs as they are different from the heat thermo APIs. I have no way to test this capability.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on March 09, 2016, 06:01:14 am
@Mikee, No problem, my naivety made me think it would be a simple variation of a room thermo....oops, I use the current temperature (as reported in the HW app) to determine if it needs to go on and by when to enable a bath for when I get home after a long day (if it's not been on already), so not as key as the room thermo functionality.

Everything else is working, no issues, many thanks.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on March 09, 2016, 11:55:14 am
I use a combination of ping cell phones and sensors to determine if my furnace should be on/off.  I then use forcast temp to determine weather on means "HeatOn" or "CoolOn".  The alerts that show are correct for turning the heat on, but when switching off it states that it's putting the thermostat back to "auto".  It does switch the plugin off.  Just a heads up.

It seems that I've been getting errors from Honeywell since I upgraded to my Plus and upgraded to the newest plugin.  More errors associated with not being able to set one or the other thermostat.  Not 1 thermostat in particular, but randomly different ones.  It seems like the setting go through eventually, but maybe not on the first pass?  I still haven't really nailed down exactly what it's doing, but something has changed.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on March 10, 2016, 09:16:03 am
Here's the the example error I get from Honeywell:

The following Alert has occurred:
Your attempt to change the thermostat Upstairs failed.

Again, these are random to my upstairs or downstairs thermostats and has started since upgrading both the app and to the Plus.  It comes from mytotalconnectcomfort@alarmnet.com.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: awenger on March 10, 2016, 09:25:43 am
mikkee, thanks for your work on this version of the plugin. I had contact with JoeyD in the early days of his plugin version. However his version was working in the US only.

I just installed version 2.3 in combination with an European Evohome with 7 rooms. The plugin seems te work fine (in EMEA mode), but I'm only able to set Heatpoints for a temporary 4 hours. When I try to change the Setpoint Behaviour setting in the main device to Permanent. I get an ERROR: No Implementation.

Is there a way to make the setpoints permanent or to set a timeframe for a temporary setpoint?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on March 10, 2016, 10:55:11 am
@awenger

I have just published version 2.4 to correct the service name issue that was causing the "No Implementation" error. Let me know if you can now set permanent setpoints.

@jlind

From what I understood honeywell is moving away from the alarmnet.com servers. I changed the url to use tccna.honeywell.com (but it looks like Euro still uses the old URL). You are getting alerts directly from honeywell by subscribing on their web ui ? Same for the alert about turning the heat on and off ? Let me know how to set this up and I'll try to reproduce it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on March 10, 2016, 12:40:39 pm
@Mikee - Sorry, I forgot that I actually did make some code changes in my ping/motion activation code and how it turns on/off the thermostats.  I removed the new changes and turned on email notification when Vera submits a change to the thermostats.  Hopefully it will help me diagnose if it was my code changes or something in the app.  It'll probably take a few days for me to get enough cycles to test, but I'll post back regardless.  I'm also in the US, so I would be on the tccna.honeywell.com URL.

Thanks for your work on this app, it's much appreciated.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jlind on March 11, 2016, 11:32:02 am
@Mikee - Sorry, It was an issue with my code which caused a change event anytime motion was sensed, which caused a lot of rapid changes.  I modified the code and haven't had any errors since.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on March 12, 2016, 10:21:57 am
Good news @jlind. Thanks.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Vinnie on March 17, 2016, 05:24:30 pm
Hello, I have the European version of the honeywell round connected and installed the plugin, I can connect with the termostat and able to change the set points through the vera UI, but I'm not able to use luup to cancel the set point

I've used the code metioned in post 2

Quote
local lul_arguments = {}
lul_arguments["ThermostatID"] = 123456
luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","CancelSetpointHold",lul_arguments,10)
Unquote

I think the problem is related to the ID number which is in following format 1234567:1234567. No sure how I need to enter the ID, tried already several ways but none of them are working. Thanks for your help
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on March 17, 2016, 07:07:00 pm
Try sending the ID as a string exactly as it appears in the status page, i.e. "12345:12345". Some of the backends require both the thermo id and the location id. This is the loc:thermo format.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Vinnie on March 18, 2016, 03:45:35 pm
Hello,

I tried following combinations and non of them are working:

"loc:thermo"

"loc"

"thermo"

any other advise? Thanks

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on March 18, 2016, 06:30:34 pm
Go to the advanced tab of the thermo you want to control. Find 'altid'. It should be near the top of the list. It will have a format of TCC_xxxxx. Cut the xxxxx and put it in quotes as your lul_arguments["ThermostatID"]="xxxxx" value. You should have two numbers separated by ':' in your quotes. If you have done this I will need to go back and do some more testing.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: awenger on March 24, 2016, 09:30:50 am
@mikee

The permanent setpoint feature is working OK in version 2.4. Tnx!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cmbeek on March 28, 2016, 03:41:40 pm
Just installed the plugin for the first time. It is looking very promising, great work.
Unlike @awenger I do have problems setting permanent setpoints. (I'm in Europe?)
When changing setpoints it only does so for exactly 2 hours.

Any thoughts?

Thanks.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on April 06, 2016, 09:35:57 am
@cmbeek, which interface are you using ? The default setpoint type is set to permanent ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cmbeek on April 08, 2016, 01:01:45 pm
@Mikee: I am using ui7 (1.7.760).

I do not really understand your question about the permanent setpoint setting.
I have the temperatures programmed in the thermostat itself but I like to override these settings using the plugin.
I would like to program a scene where the temperature is set to a certain value for let say 4 hours.
But whatever I do, the set-point does change but always for exactly 2 hours.

I have no idea what i am doing wrong.




Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on April 08, 2016, 02:32:18 pm
On the Control panel of the TCC device (not the thermostat) you will find a setting for Setpoint Behaviour. The choices are temporary or permanent. Make sure this is set to permanent. You can then set your temp and it will stay until you set it again. There is currently no support for setting it for a period of time (other than to use schedules).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on April 10, 2016, 03:25:56 am
Hey Mikee,
I just wanted to say thanks. I installed the plug in and it works perfectly.
Great work :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on April 10, 2016, 12:05:37 pm
you're welcome MarcusB. Thanks for the note.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kdschlosser on May 17, 2016, 08:39:46 am
not sure if this is by design or a bug, but when i adjust the setpoint from the UI it changes both the heating a cooling.

if i send a REST command to it for just changing the cooling that's all that changes.

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on May 20, 2016, 12:29:51 am
Hey Mikee,
I just wanted to say thanks. I installed the plug in and it works perfectly.
Great work :)

I've got an update and a question ;)

A few weeks ago Honeywell put out an update for the iPhone app with some comments about being required for new regions.  I'm in Australia and some trial and error has shown me that I need to choose EMEA.  Since the app update, it still all works perfectly but I get a message bar at the top of vera saying
-HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.

My device still works and of course shows up in the list of devices.

Also, when I try to use advanced options in a scene, I'm asked for a thermostat ID.  I've tried all sorts of numbers I can think of but nothing seems to work.  Can anyone tell me what to enter in that field?  I've tried the device ID, the thermostat ID as per the Honeywell site and any other option I can think of.  I think when I create the entry it defaults to i4 but that doesn't work either.  I'd really like to be able to create a scene to cancel the current set point but that seems to be stopping me.

Thanks,

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: sandman62 on May 30, 2016, 05:10:33 pm
I have a version of this thermostat that is not wifi compatible, and therefore am unable to utilize the Honeywell TCC system. I would like to create luup code that will place the thermostat on permanent hold and change the set temp when I put the system in vacation mode. Will the code that you have created work without going through the TCC system?

Thanks
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: barrytate01 on June 02, 2016, 02:23:32 pm
Pretty sure this only uses the TCC system. 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: u297 on June 19, 2016, 09:44:36 pm
Quick question:

Will this plugin in work in an environment with no internet?

In other words, I have an RTH8580 WIFI thermostat that is already connected to local LAN network - however the environment has not outside connection to internet.

Will I be able to use this plugin to control the thermostat locally - or is it necessary that the Vera call out to internet to make changes?

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mvader on June 20, 2016, 01:43:45 pm
Quick question:

Will this plugin in work in an environment with no internet?

In other words, I have an RTH8580 WIFI thermostat that is already connected to local LAN network - however the environment has not outside connection to internet.

Will I be able to use this plugin to control the thermostat locally - or is it necessary that the Vera call out to internet to make changes?

yeah it will need the internet.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: DarkParty on June 22, 2016, 06:44:21 pm
I have two Mitsubishi head units, do I really need two thermostats if I use this app?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: James92TSi on July 05, 2016, 05:57:21 pm
Pretty sure this only uses the TCC system.
This is correct - this app doesn't do any local control of the Honeywell stat.  It connects from the Vera, over the internet, to Honeywell TCC, makes changes, then Honeywell TCC pushes changes to your thermostat(s). 

Thus it will break if no internet is available to Vera or to the thermostats you're controlling.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: JeffySmith on July 14, 2016, 01:37:10 am
I am a new Vera Plus Owner and can not get the Thermostats to Populate.

I have signed in and agreed to the Terms, etc. - I have done an engine reload - still no Thermostats (I have 7 total)

My Login says successful

Any suggestions?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on August 08, 2016, 04:02:06 pm
which interface are you using ? you can enable debug logging and usually get enough info to find the issue. If you can enable debug and collect a log I'd be happy to look at it. PM me since I don't monitor this forum that often these days ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: samsimg on August 16, 2016, 10:47:02 pm
I am a new Vera Plus Owner and can not get the Thermostats to Populate.

I have signed in and agreed to the Terms, etc. - I have done an engine reload - still no Thermostats (I have 7 total)

My Login says successful

Any suggestions?

Same for me. New VeraEdge and getting error:

HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jmidwat on August 28, 2016, 08:59:51 am
Hi,

I recently moved from a VeraLite to a VeraPlus.
After a few days everything is up and running again except for one thing.

The TCC Plugin (2.4) is displaying temperature values in degrees Fahrenheit.

I'm sure I'm missing something... but what?

Values from Netatmo and other weather related plugins are all in degrees Celsius.

Any ideas?

Regards,

Jean
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on August 28, 2016, 01:43:58 pm
@JeffySmith, @samsimg

Make sure you can log into the Honeywell website directly and that you have accepted the EULA.

@jmidwat

The temp scale comes from the vera default scale. It does default to "F" so it seems like either the default is not set or there is a problem getting the value. You can use a browser to request "http://vera-ip:3480/data_request?id=lu_sdata" where vera-ip is your unit's ip address. Then look for "temperature" : "X" in the response (should be right near the top). The X is the default value. I don't recall offhand how to set the default but I think it is burried in the vera weather settings page. If the default says "C" then there is a problem with the plugin ...
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jmidwat on August 28, 2016, 08:14:29 pm
@mikee


In the response from URL you suggested it did say F, even though the weather settings were on C.
I changed the weather settings from C to F an back again and that did the trick.

Thanks for pointing me in the right direction :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on August 30, 2016, 09:25:25 am
Hey Mikee,
I just wanted to say thanks. I installed the plug in and it works perfectly.
Great work :)

I've got an update and a question ;)

A few weeks ago Honeywell put out an update for the iPhone app with some comments about being required for new regions.  I'm in Australia and some trial and error has shown me that I need to choose EMEA.  Since the app update, it still all works perfectly but I get a message bar at the top of vera saying
-HNYWL TCC: : Honeywell TCC Authorization passed, but no devices were found.

My device still works and of course shows up in the list of devices.

Also, when I try to use advanced options in a scene, I'm asked for a thermostat ID.  I've tried all sorts of numbers I can think of but nothing seems to work.  Can anyone tell me what to enter in that field?  I've tried the device ID, the thermostat ID as per the Honeywell site and any other option I can think of.  I think when I create the entry it defaults to i4 but that doesn't work either.  I'd really like to be able to create a scene to cancel the current set point but that seems to be stopping me.

Thanks,

It sounds like Jeffrey and samsimg are seeing the same issue I reported recently.on my old Vera lite I could adjust temperature up and down but had no other control after the iOS app update when I first got that message..
Now I'm setting up a brand new Vera edge and no thermostats are showing at all.  I'll turn on logging for some more information but it'd be good to know if the two other users are also using the Emma interface.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: davidj on September 06, 2016, 01:12:24 pm
Firstly fantastic app, thanks for the development.
I am UK based and installed this using EMEA option as that worked.
It loaded all my 4 zones but not the Hot Water. Is this a limitation or have I not configured something? I am guilty of not reading the whole forum so maybe missed something, apologies if that's the case.....
Thanks in advance.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: manchild on September 08, 2016, 09:11:11 am
Just installed the plugin.  Everything seems to be working great except for fan control.  I tried via the UI and Luup.  Any ideas?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on September 21, 2016, 09:00:36 am
@davidj - no the hot water is not available as the zone is defined as blank (internal zone name) and so is difficult to handle, so was put to one side.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: davidj on September 22, 2016, 12:03:03 pm
@Isablend - thanks so much for response. Thats a real shame. Any idea of another way to control/possible later development or alternative Plugin?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Isablend on September 23, 2016, 05:23:06 am
@davidj - understood but I'll be honest I was looking for it only from a completeness perspective.  If i want to put the water on before I get home unexpectedly then I just use the evohome app to set it, so not the end of the world for me.   I do use the room thermostat readings to trigger other events though so they were more important for me.   Don't know of any other way of handling outside of the official Evohome app.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: manchild on October 08, 2016, 10:42:15 pm
Just installed the plugin.  Everything seems to be working great except for fan control.  I tried via the UI and Luup.  Any ideas?
I'm guessing no one else is having fan control issues?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Latz on October 22, 2016, 05:48:21 pm
Hi and thanks for the app!  Have just installed v2.4 on to my VeraEdge to control my Evohome.  Have input my login details and left it on the 'TCC' option for the UK TCC but for some reason it keeps saying:

HNYWL TCC: : Honeywell thermostat user authentication failed. Check Setup

Any ideas why this is happening?  I have tripple checked the username and password and I know they are right because I can log into https://mytotalconnectcomfort.com/en-GB without a problem.

Any ideas?

EDIT: Users in the UK need to select the EMEA option on the configuration screen of the vera plugin.  It can be found under the login details section (where you input username and password in the plugin).  I didn't see this and left it on TCC!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spiderman on October 30, 2016, 06:31:06 pm
Just installed the plugin.  Everything seems to be working great except for fan control.  I tried via the UI and Luup.  Any ideas?
I'm guessing no one else is having fan control issues?

Same issue, everything works except for fan.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on November 02, 2016, 08:32:14 pm
Just installed the plugin.  Everything seems to be working great except for fan control.  I tried via the UI and Luup.  Any ideas?
I'm guessing no one else is having fan control issues?

Same issue, everything works except for fan.

If you're having issues, you need to state which method you are using.  The TCC, EMEA, etc.  For some crazy reason Honeywell uses different protocols for different regions and the results are completely different based on which reason you are in.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 08, 2016, 11:55:37 am
I have not been able to test fan control since I don't have a system that uses it. I may be able to help if I can get logs of attempts to control fans with debugging enabled. PM me if you'd like to try (I don't monitor the forum very often any longer).

Yes, there are 4 different protocols in use.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: stevemeck on November 16, 2016, 02:54:52 pm

To your points the other day about 'Quick Actions'; which apply at a parent level.  So for instance I have the plug in defined at ?house? level with thermostats documented in individual rooms.   They would then require switching at that top level, where it would filter down to the impacted child thermostats.

The quick actions available are;
Economy - turn all thermostat setpoint's down by 3 degrees
Away ? sets all zones setpoint's to a default of 15 degree Celsius (which is adjustable) ? I?ve never been sure about this as 15 degrees seems too high to me to have apply when there is no-one around, but there you go, just my 2 cents worth?
Day-off ? all zones to follow the day off schedule (Saturday?s by default)
Custom - only the number of zones as selected in the evohome's settings will follow the custom schedule.
Heating Off ? all zones set to the 'heating off' temperature which is 5 degrees by default.

Once again top job.  If you want anything specific tested let me know and in the mean time I'll keep monitoring over the next couple of days.

Following on from Isablend's comments above, is there any way to control the Quick Actions available at a parent level in TCC? If we had access to these we could use presumably Vera's Geolocation to set quick actions, rather than the current convoluted Life360 + IFTT method.

Mikee - I'd like to thank you for all your hard work on this plugin, it is working flawlessly for me and an excellent addition to Vera.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 19, 2016, 01:16:53 pm
@stevemeck - thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 19, 2016, 01:48:18 pm
@manchild - the change for fan control is being ignored. It looks like this is due to an incorrect variable name. Here is the updated lua file to correct it. Let me know if this fixes the problem.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: stevemeck on November 22, 2016, 04:49:38 pm
@mikee

Is there any way to control the Quick Actions available at a parent level in TCC? If we had access to these we could use presumably Vera's Geolocation to set quick actions, rather than the current convoluted Life360 + IFTT method?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 22, 2016, 07:44:50 pm
@stevemeck

Technically yes, there is an API for evoTouchSystems to set the quick action Auto, Custom, AutoWithEco, Away, DayOff or HeatingOff and a time, I assume this is the action time (It is called QuickActionNextTime so I assume this is what it does, if not set I assume indefinite hold). The question is how would it work ? Would I just add an API to let you call it with one of these arguments ? It would obviously only work with EMEA backends since no other protocol has this capability (that I am aware of).
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: stevemeck on November 23, 2016, 12:15:54 pm
Thanks Mikee.

Currently I use IFTT and Life360 to report location and change settings accordingly. This is very hit and miss as the Life360 accuracy on location is awful.

Using fine tuned settings on iPhone locator plugin I've been able to set up very accurate location handling for both me and my wife. If I could use this info within Vera to simply change Honeywell Evohome to Away when we are both away or revert to schedule (Auto) when one of us is home that would be great.

All the other modes IMO are pretty irrelevant as they would generally only be selected if in the house (in which case we'd use the Honeywell interface).

So
Vera away = Honeywell Away
Vera home = Honeywell Auto

Obviously I can set up the simple rules but need the API option to change mode?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spiderman on November 23, 2016, 08:04:45 pm
@manchild - the change for fan control is being ignored. It looks like this is due to an incorrect variable name. Here is the updated lua file to correct it. Let me know if this fixes the problem.

New version of L_HoneywellTCC.lua fixed the fan problem for me. Thanks a lot mikee!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 23, 2016, 11:10:32 pm
Hmmm, after a bunch of digging it looks like the options for the two interfaces (webui and emea) work differently (of course). emea uses temperatureControlSystem and mode number to implement the quick actions. webui uses evoTouchSystem and action name. Each action maps to a mode setting. The emea API is the same API used by this plugin to turn the heat on and off currently, i.e. heat on is quick action 'Normal' and off is quick action 'HeatingOff'. So this could be mapped to UPNP HVAC_UserOperatingModel1/SetTargetMode is we can define 'Away' as a vendor specific mode. I think we are probably safe if we map all of the quick actions to TargetMode. The currently used modes are Off, HeatOn, CoolOn and AutoChangeOver. If the evohome modes were added HeatingOff->Off (already exists), Normal->HeatOn (already exists), Custom, Eco, Away and DayOff it should be able to set all the quick action modes. You would need to arrange to invoke this API and specify the mode as an argument in your mapping logic. Does this sound like it will solve your issue ?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: wezley69 on November 23, 2016, 11:39:37 pm
Probably time to as a group move on and buy and Amazon Echo, Dot, Tap.  The Honeywell Total Connect Skill works like a charm.  "Alexa set the thermostat to 72 degrees.   "Alexa raise the thermostat by 2 degrees".  Perfect.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 24, 2016, 11:10:14 am
Sorry to see you go. Hal, open the pod bay doors :)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: tls on November 24, 2016, 06:40:47 pm
Go to the advanced tab of the thermo you want to control. Find 'altid'. It should be near the top of the list. It will have a format of TCC_xxxxx. Cut the xxxxx and put it in quotes as your lul_arguments["ThermostatID"]="xxxxx" value. You should have two numbers separated by ':' in your quotes. If you have done this I will need to go back and do some more testing.

I'm having this exact problem (inability to cancel hold) with my US (TCC) stats.  In altid I see TCC_(7 digits) -- I've tried every form of the ID I can think of, quoted and unquoted.  What bothers me is that I can't figure out how to even tell whether the Lua method is being called.  I put obvious syntax errors in it like removing a parenthesis and nothing happens -- if I invoke it as extra Luup code from a scene, I can't find an error anywhere and the scene reports success if I invoke it manually; if I try pasting it into the "develop apps" lua box, same same.

Here's exactly what I tried last time, with just the numeric part of the ID obscured:

local lul_arguments = {}
lul_arguments["ThermostatID"] = "7 digit number"
luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","CancelSetpointHold",lul_arguments,10)

I figured out how to download the Lua files from the Vera just to check that I did in fact want "urn:joeyd-com" rather than the "urn-schemas-joeyd-com" I see in some of the device properties.  I'd log into the device and look at the logs but the instructions I can find for turning on the root account for SSH seem broken -- I go to settings->network and there is no "advanced" tab to set a root password.  So now despite some knowledge of Lua and a willingness to debug in depth, I am stuck.

I find it very suspicious that if I produce an obvious syntax error in the Lua code nothing changes in any way that is visible to me.  Help?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 24, 2016, 10:03:06 pm
OK, I plumbed "Eco" and "Away" thru to the EMEA backend to set the mode (I did not add DayOff or Custom). The issue here is that when the backend reports the status as Eco or Away it must be converted to something vera expects. It will be shown as "HeatOn" so there will be no indication from vera what mode it actually is in (but you should be able to read what was set in the TCC ModeTarget variable). Part of the problem is vera uses two setpoints, one for heat and one for cool. You need to know which mode you are in in order to know which setpoint is valid. Anyway, if you set the mode to "Eco" or "Away" using the HVAC_UserOperatingMode1/SetModeTarget action it should send the mode thru. I have attached the 3 files needed. I can not test this code at all, sorry.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikee on November 25, 2016, 09:59:52 pm
@spiderman

thanks for testing! glad it is working.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: manchild on November 27, 2016, 06:20:45 am
@manchild - the change for fan control is being ignored. It looks like this is due to an incorrect variable name. Here is the updated lua file to correct it. Let me know if this fixes the problem.

Thank you!!  Works perfectly.  I appreciate you taking a look at it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: stephenmhall on November 28, 2016, 05:06:35 pm
Hi guys just bought into the Honeywell system, I have searched through the forum but not found an answer to if there is any way to track when the boiler is set on. Just trying to track how often the boiler is switched on through the day.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on November 29, 2016, 01:41:06 am
Hi guys just bought into the Honeywell system, I have searched through the forum but not found an answer to if there is any way to track when the boiler is set on. Just trying to track how often the boiler is switched on through the day.

I think if you use the altui plugin you can then set any events to be logged to thingspeak.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: stevemeck on December 04, 2016, 05:09:16 am
OK, I plumbed "Eco" and "Away" thru to the EMEA backend to set the mode (I did not add DayOff or Custom). The issue here is that when the backend reports the status as Eco or Away it must be converted to something vera expects. It will be shown as "HeatOn" so there will be no indication from vera what mode it actually is in (but you should be able to read what was set in the TCC ModeTarget variable). Part of the problem is vera uses two setpoints, one for heat and one for cool. You need to know which mode you are in in order to know which setpoint is valid. Anyway, if you set the mode to "Eco" or "Away" using the HVAC_UserOperatingMode1/SetModeTarget action it should send the mode thru. I have attached the 3 files needed. I can not test this code at all, sorry.

Mike, thanks very much for looking into this. I've been away on vacation so just catching up on this thread but really please there could be a way forward with this.

I'm afraid to say that I'm very much a newbie with Vera and don't how to implement a change in SetModeTarget from a scene. Could you please give me (and anyone else who may be in my position) a few steps in the right direction?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: BradWorld on December 05, 2016, 11:06:23 am
I just discovered this plugin.  Worked like a charm.  Had it up and running within 5 minutes.  Thanks for doing this! 
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: 4wheats on January 07, 2017, 10:22:18 pm
is there a way to set the mode to "emergency heat"? I see Auto/Cool/Heat but no emergency heat.  I have my boiler hooked up on that setting and us it all the time in the winter vs. "heat" which is my heat pump.
Thanks again.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: dirtbikr on January 27, 2017, 02:04:13 pm
Is anyone else having trouble with the plugin over the past couple of days? The plugin is talking to TCC correctly in that it tells me what the temperature is from the display and reports that the Refresh is successful, but I cannot send any commands (setting the mode to 'Heat' does nothing, it just stays 'Off'). This worked about three days ago and now it just doesn't.

EDIT: I reloaded LUUP and it is working again. Is there a way to watchdog that somehow? Everything else was working except for this plugin.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: jschwalb on February 11, 2017, 09:39:01 pm
Not working for me. I've got the RTH6580WF. It appears to take the command but never updates the actual setpoint. :(
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on February 21, 2017, 04:45:56 pm
Good day,

For some reason, I can't control my system FAN mode via the UI7 GUI or via LUA, here's what I tried.

1- via the GUI (UI7), I select my main floor thermostat and change the fan status, let's say from Auto to ON, it does in deed the change in the GUI, after few seconds, it change it back to what it was. I look on the thermostat, nothing. no change.

2- via lua, tried all kind of stuff. same result, can't change it.

Meanwhile, I can change the temperature, change the mode. So far, everything else work like a charm.

I have two PRO 8000 with TC

Somebody?

Thanks!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: knuppel on February 26, 2017, 10:58:55 am
I'm trying to run a scene which sets the thermostat at 21 degrees until 23:00.
No matter what endtime i enter, it always comes out 'now + 4 hours'. Using EMEA login, Evohome.

local lul_arguments = {}
lul_arguments["ThermostatID"] = "xxxxx:xxxxx"
lul_arguments["newSetpointValue"] = 21
lul_arguments["SetpointMode"] = "HEAT"
lul_arguments["SetpointType"] = "TEMPORARY"
lul_arguments["SetpointEndtime"] = "23:00"

luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","HoldSetpoint",lul_arguments,201)

What am i doing wrong?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: chen675 on March 02, 2017, 08:42:04 am
Hello,

Is there a way to make it work in Europe please
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on March 05, 2017, 10:00:19 am
You should try this:
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat", "SetCurrentSetpoint", {NewCurrentSetpoint  = "22"},        HVAC_ID)



I'm trying to run a scene which sets the thermostat at 21 degrees until 23:00.
No matter what endtime i enter, it always comes out 'now + 4 hours'. Using EMEA login, Evohome.

local lul_arguments = {}
lul_arguments["ThermostatID"] = "xxxxx:xxxxx"
lul_arguments["newSetpointValue"] = 21
lul_arguments["SetpointMode"] = "HEAT"
lul_arguments["SetpointType"] = "TEMPORARY"
lul_arguments["SetpointEndtime"] = "23:00"

luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","HoldSetpoint",lul_arguments,201)

What am i doing wrong?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bobies on April 05, 2017, 04:31:19 pm
OK, I plumbed "Eco" and "Away" thru to the EMEA backend to set the mode (I did not add DayOff or Custom). The issue here is that when the backend reports the status as Eco or Away it must be converted to something vera expects. It will be shown as "HeatOn" so there will be no indication from vera what mode it actually is in (but you should be able to read what was set in the TCC ModeTarget variable). Part of the problem is vera uses two setpoints, one for heat and one for cool. You need to know which mode you are in in order to know which setpoint is valid. Anyway, if you set the mode to "Eco" or "Away" using the HVAC_UserOperatingMode1/SetModeTarget action it should send the mode thru. I have attached the 3 files needed. I can not test this code at all, sorry.

Mike, thanks very much for looking into this. I've been away on vacation so just catching up on this thread but really please there could be a way forward with this.

I'm afraid to say that I'm very much a newbie with Vera and don't how to implement a change in SetModeTarget from a scene. Could you please give me (and anyone else who may be in my position) a few steps in the right direction?

Hello Mike, could you give a few steps how to implement a SetModeTarget from a scene, I'm also not so familiar with this.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: M2MExpert on April 06, 2017, 10:17:58 am
I replaced an older z-wave thermostat with this new wifi total connect enabled one and the plug-in works fine (TCC mode) but I cannot seem to get it to set the temp when in AUTO. Cool and Heat work fine but AUTO no matter what I set it clears and goes back to 0.0
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on June 15, 2017, 07:02:36 am
I looks like I'm missing something.

When I do,

luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool", "SetCurrentSetpoint", {NewCurrentSetpoint  = "23"},954)

That command will work on my main level (954) Honeywell termostat. BUT! when I was something cooler, like 21, it never register.

I tried, 22, 23, 24 they all work, bellow 22, can't do anything.


Why???


THANKS!!!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on June 15, 2017, 07:15:33 pm
On the thermostat itself you can set a minimum temperature for cool ad a maximum for heat.  Maybe your minimum cool temperature is set at the thermostat as 22?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on June 16, 2017, 11:02:09 am
Good thinking but no.

Both my thermostat has 10 as minimum and 32 as maximum.

I honestly don't know what is going on...

Anybody?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on June 21, 2017, 08:47:44 am
I just looked at the log if someone can point out where to look.

When I try to set a temperature below 22, I get the error in log.

HNYWL TCC ERROR: TCC SetStatus failed result=5, resultText=Unknown error.  HTTP Code 500

Anyone?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on June 22, 2017, 10:59:17 pm
I'm not sure about that, sorry.

JoeyD built the plugin and he's mentioned before that he doesn't monitor this thread much and to PM him if you have any issues. 
Just remember to post back here if you get a result so it can help others.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: spilote on June 23, 2017, 08:54:23 am
Thanks MarcusB

Just sent him a PM, if I get any news on how to fix that, I will share it for sure.

Thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Nameless on July 08, 2017, 10:04:48 pm
Thanks MarcusB

Just sent him a PM, if I get any news on how to fix that, I will share it for sure.

Thanks!

It appears that Mikee took over the plugin quite a while back. He had mentioned to PM him if there was an immediate issue, since he's not monitoring the forum as often now. Joey hasn't been active on it for much longer, it appears.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Nameless on July 08, 2017, 10:10:58 pm
@manchild - the change for fan control is being ignored. It looks like this is due to an incorrect variable name. Here is the updated lua file to correct it. Let me know if this fixes the problem.

First off, thanks to all those that worked on this plugin and did so much testing!

I am working on setting up scenes that will enable and disable my fan's setting to "Recirculate" or to "Auto" based on the outdoor temperature. The last post I found regarding this issue made mention that this lua file (post #683) should cure the problem of the fan settings not adjusting. While I've done my best to read through all 48 pages of this topic, can anyone advise if this is still the lua file to use? I'm using a TCC system in the US on UI7. Thanks

Edit: I rolled the dice and installed this lua file and confirm it seems to be working. Thanks for publishing this!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Mai Pensato on September 09, 2017, 03:31:56 am
I am thinking of buying a Evohome system. Does this plugin still work?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Mai Pensato on September 15, 2017, 01:59:53 am
No active users of this plugin anymore?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: backkri on September 15, 2017, 03:48:17 pm
In my case, it is still working fine.  EU user.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Mai Pensato on September 16, 2017, 07:13:28 pm
Thanks for the info, I'm also living in EU (Holland)
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: ranneman on October 02, 2017, 03:10:55 pm
Yup, still works for me (evohome Europe). And if it stops working I expect/hope I can switch to ITTT.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: curtm on October 17, 2017, 05:35:16 pm
Trying to use some Luup code for the first time, and not getting any result...

here is what i have...
Code: [Select]
local lul_arguments = {}
lul_arguments["ThermostatID"] = 2838483
lul_arguments["NewMode"] = "ContinuousOn"

   
luup.call_action("urn:upnp-org:serviceId:HVAC_FanOperatingMode1","HoldSetpoint",lul_arguments,33)

I have a VeraSecure and go to Apps/Develop Apps/Test Luup Code
and type the code above in, click GO and it shows a box saying "SUCCESS / Code sent successfully",
yet I dont see any changes to my HVAC Fan setting.

I'm trying to use the Luup code in a scene where if my humidity sensor gets above 50%, the HVAC units turn on the fan to circulate the air.

Does the Test Luup actually submit commands or just tell you if it would work if submitted in an actual scene?

thanks!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: curtm on October 18, 2017, 11:28:10 pm
I found out how to do this using the advanced editor and i know im doing it right because i can change the temp, mode (heat,cool) but the fan does not respond to this. Then i tried controlling the fan through the device UI and it does not work either. I can select Fan On and then wait a few minutes and it goes back to Fan Auto on its own.  Any where I should look?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Nameless on October 19, 2017, 11:45:00 pm
I found out how to do this using the advanced editor and i know im doing it right because i can change the temp, mode (heat,cool) but the fan does not respond to this. Then i tried controlling the fan through the device UI and it does not work either. I can select Fan On and then wait a few minutes and it goes back to Fan Auto on its own.  Any where I should look?

If you haven't already, go to post #683 in this thread. There is an updated file that never made it into the app/plugin marketplace. Without it, your Luup will tell you it's working, but won't. Fan control wasn't originally built into the plugin for that type of request.

After installing this file, try your Luup in the test and it'll likely work after a short delay. I use a scene with Luup to turn on PeriodicOn mode when the outdoor temperature hits a certain point to help circulate air from my cool basement to my other 2 floors.

Let us know how it turns out.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: curtm on October 21, 2017, 11:35:21 pm
worked perfectly!

thank you!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: kamakazie2 on October 30, 2017, 10:07:57 pm
Hi everyone.. love this plugin.. been using this  forever

I just installed the fan control fix. i noticed that the outdoor temp variable never populates. I get the indoor humidity,but no outdoor temp.
My unit has the outdoor sensor and it shows up just fine on the thermostat. Vera shows hasoutdoortemperature = true.



Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Nameless on October 30, 2017, 11:15:20 pm
Hi everyone.. love this plugin.. been using this  forever

I just installed the fan control fix. i noticed that the outdoor temp variable never populates. I get the indoor humidity,but no outdoor temp.
My unit has the outdoor sensor and it shows up just fine on the thermostat. Vera shows hasoutdoortemperature = true.

I, too, have the outdoor temperature sensor with the same result as you. It would be great if Vera could display this, but it must not have been added into the plugin, much like fan control originally. Unfortunately, I don't think this great plugin is supported by anyone anymore.
Title: Cannot get "Auto" Working
Post by: DavidDiskin on November 22, 2017, 06:33:27 pm
Hello. I have installed the plugin and it's mostly working just fine. I can change modes between off, heat, and cool. I can set the target temp. I can create scenes that do this, too.

However, changing the mode to "Auto" has no effect. It thinks about it and then immediately returns to whatever mode it was previously on as if the command was ignored. This happens in scenes and in the interface (UI7).

Does this work for others?

My goal was to create a pair of scenes that, when triggered by the opening/closing of windows/doors, the thermostat will switch between Off and Auto.
Title: Re: Cannot get "Auto" Working
Post by: Nameless on November 25, 2017, 12:18:58 am
Hello. I have installed the plugin and it's mostly working just fine. I can change modes between off, heat, and cool. I can set the target temp. I can create scenes that do this, too.

However, changing the mode to "Auto" has no effect. It thinks about it and then immediately returns to whatever mode it was previously on as if the command was ignored. This happens in scenes and in the interface (UI7).

Does this work for others?

My goal was to create a pair of scenes that, when triggered by the opening/closing of windows/doors, the thermostat will switch between Off and Auto.

Go to post #683 in this thread. There is an updated file that never made it into the app/plugin marketplace. Fan control wasn't originally built into the plugin for that type of request. Download and install that file, refresh your browser to restart Luup and you should be golden.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: knuppel on January 22, 2018, 04:19:27 am
For my understanding:

Is it normal behaviour for the "SetpointEndtime" parameter to be ignored, when setting a "TEMPORARY" temperature?
When sending below command my EvoHome sets the temperature untill 'currenttime + 4 hours'. What I would like is to set a time on which the normal schedule takes over. Setting it permanent is not really an option, because when the second command doesn't come through, the heating stays on. Moreover, the CancelSetPoint command does not work when set to either "TEMPORARY" or "PERMANENT".

Code: [Select]
local lul_arguments = {}
lul_arguments["ThermostatID"] = "..."
lul_arguments["newSetpointValue"] = 12
lul_arguments["SetpointMode"] = "HEAT"
lul_arguments["SetpointType"] = "TEMPORARY"
lul_arguments["SetpointEndtime"] = "14:00"

luup.call_action("urn:joeyd-com:serviceId:HoneywellTCC1","HoldSetpoint",lul_arguments,201)

If it is normal behaviour, is there a way to change the 4 hour interval to 8 or 24 hours? That way the heating stays on untill the normal schedule takes over.
The heating is normally off (set to 12 degrees Celsius), when we are at home I want to set it with the Vera, but 4 hours is too short.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 12:11:47 am
Is there a way to use a scene to turn on the fan? Running firmware 1.7.35 on UI7 (I believe). The GUI gives me fan control when I click the arrow to the right, but when I create a scene I can only control the temp. I do have the latest code from post 683
Thanks in advance!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 08:36:54 am
I haven't looked the plugin code, but the "standard" way of doing this would be to invoke the SetMode action in the urn:upnp-org:serviceId:HVAC_FanOperatingMode1 service with the NewMode parameter set to ContinuousOn.

Try this Lua stub in Apps > Develop apps > Test Luup code. You'll need to provide the device number of your thermostat:

luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, thermostat-device-number )

Type carefully; capitalizations matter here. If it turns on your fan, you can put that in scene Lua. To turn the fan back off, change ContinuousOn to Auto in the above.

If that doesn't work, a review of the plugin files will reveal how the UI is doing it. Let me know if it doesn't work and I'll take a peek.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 11:25:08 am
Thanks for the quick reply!
I tried the lua code, but no luck. I wasn't sure of the HVAC ID, so I tired every number I could find in the advanced section. I received a "Failed to test code, please try again" each time.
I wonder why I have the option to see and trigger the fan in the device, but that I cannot access that same function when creating a scene.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 12:05:51 pm
That's usually an indication that you fat-fingered something. For the device number, if you go into Advanced for the device, it's at the top in big green numbers, over the tabs.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 12:09:37 pm
My poor fingers - they'll never recover from such verbal abuse ;)

luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, 50)

I used copy and paste. Do you see anything incorrect?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 12:13:34 pm
I pasted exactly what you just posted and it told me "Code sent successfully".

I also just installed the plugin and peeked at the code. It does support the service/action we're talking about, so this is the way to go. We just need to get over this speed bump.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 12:17:58 pm
By the way, I'm pretty sure you're going to need the device number of the thermostat device itself, not the TCC interface with the login controls on its control panel.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 12:23:16 pm
Maybe these pics will help...

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 12:25:59 pm
one more..
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 12:31:02 pm
OK. First, 50 seems like the right number. Code also looks correct on screen, but maybe something snuck in. Vera has also had some strange bugs in this window (code works once, not second time, etc.). Try this:

Make sure you've got the 50 in the device number, and hit the GO button 4-5 times.

Then, open a new browser tab and request this URL: http://your-vera-ip/cgi-bin/cmh/log.sh?Device=LuaUPnP

This will display your system's log file. Go the bottom, and see what (probably red and/or yellow) messages it may have logged. You can also post a snippet here or PM it to me if you're not sure.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 12:37:17 pm
35   02/11/18 7:34:39.455   parse_post_data parameter Code = luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, 50 ) <0x744e5520>
10   02/11/18 7:34:39.456   JobHandler_LuaUPnP::HandleRequest id lu_action request pMem 0x102b000/16953344 diff: 8105984 <0x744e5520>
01   02/11/18 7:34:39.456   sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x744e5520>
08   02/11/18 7:34:39.457   JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: RunLua <0x744e5520>
08   02/11/18 7:34:39.457   JobHandler_LuaUPnP::HandleActionRequest argument id=lu_action <0x744e5520>
08   02/11/18 7:34:39.458   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1 <0x744e5520>
08   02/11/18 7:34:39.458   JobHandler_LuaUPnP::HandleActionRequest argument action=RunLua <0x744e5520>
08   02/11/18 7:34:39.459   JobHandler_LuaUPnP::HandleActionRequest argument Code=luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, 50 ) <0x744e5520>
01   02/11/18 7:34:39.460   LuaInterface::LoadCode: [string "luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode..."]:1: unexpected symbol near '�' <0x744e5520>
25   02/11/18 7:34:39.460   Code:
1luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, 50 )
 <0x744e5520>
01   02/11/18 7:34:39.460   JobHandler_LuaUPnP::RunLua failed: luup.call_action( "urn:upnp-org:serviceId:HVAC_FanOperatingMode1", "SetMode", { NewMode="ContinuousOn" }, 50 ) <0x744e5520>
35   02/11/18 7:34:39.472   JobHandler_LuaUPnP::GlobalPostProcessingRules start <0x744e5520>
02   02/11/18 7:34:39.472   JobHandler_LuaUPnP::RunAction device -1 action urn:micasaverde-com:serviceId:HomeAutomationGateway1/RunLua failed with 401/Code failed <0x744e5520>
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 12:44:21 pm
OK. Either some special character is sneaking in there, or the Run Lua page is doing it's bug thing, which I've seen on older firmware.

First, open up NotePad or some other plain-text editor, but specifically not MS Word or other word processing type of app. We need something text-only. Paste the code there for safe keeping. In the process, this will also either drop any special character that snuck in, or perhaps make it visible with some kind of mark.

Then, go back to the Vera dashboard. Make sure no other tabs are open with your Vera, just the one. Do a CTRL-F5 or whatever your browser needs for a cache-flush refresh of the page.

Then go back to Apps > Develop apps > Test Luup code and try copy-pasting the code back from the text editor.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 01:08:20 pm
Okay. I tried what you said, but still no luck, then I removed each and every space from the code and... SUCCESS.
Now, how do I turn lua into saved scene? :)

I have to step away from the PC for a minute. Thanks very much for your help thus far!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 11, 2018, 01:47:46 pm
Well done! But it is not yet time for a smoke! But we're close...

In your scene, when you get through to the summary screen where you set the scene name and have a "Finish" button, you'll see on the list above "Also execute the following Luup code:". Click below that where it probably says "No luup code defined" and it will take you into an editor where you can paste your Luup code. Add the following very important line at the end: return true

The return line tells Luup whether it should continue to execute the scene or not. Scene Lua runs before the other steps of the scene, and if the Lua returns false, the rest of the scene won't run. This is a feature that is meant to let you program your own conditions (for example, if it's not night-time, don't do anything). Explicitly returning true will make sure the rest of your scene runs reliably.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on February 11, 2018, 10:15:53 pm
Just got back. So get this, I pasted my revised code, without spaces, into the scene and it errored out. I added the spaces back in and voila, it worked.
So what I am trying to do is build one scene that runs the HVAC fan for 1 hour. My intent was to use this when I'm cooking in my small condo. I usually turn the air on manually and then forget to turn it off - waste of $$.

To accomplish this, I created two scenes, one to turn the fan on and one to turn it off, but when I tried to create a third scene that triggers HVAC Fan On, waits for an hour and then triggers Turn HVAC Off, I realized that I can't use a scene to trigger other scenes 8-/

A quick Google search tells me that if I learn some luup code, I can probably write a single script that will turn on the fan, wait, then turn it back to auto. It's a bummer, because if the plug in worked as expected, I could simply use a scene to call the Honeywell device to turn on the fan, add the delay, then call the same device again and turn it off. Then again, I suppose the behind the "scenes" activity is all luup anyway - lol.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: rigpapa on February 12, 2018, 11:56:48 am
There's also a hidden danger in that approach: if Luup restarts in the interval between when you turn the fan on and your delay calls for the fan to turn off, it will never run the delayed "off" group of your scene. That's a HUGE bummer in the way Vera has implemented scenes.

There are some alternatives out there for doing what you need. PLEG is certainly one, and will serve many masters as your automation needs/imagination grows, although it's large and the learning curve can be a bit steep. There are a lot of people that know it well, though, and the author is very active and helpful here, so that's the route I'd go. And it should take your Lua directly, without the need to create scenes to wrap it.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cohibafan on March 02, 2018, 03:12:14 pm
Noted.

Maybe I'll switch to Nest. Can anyone confirm it works reliably and can control the fan from a scene?
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: bmwgcyr on March 06, 2018, 05:28:02 pm
Error code 4 - Cannot connect anymore, changed password, added a new device, uninstalled and re-installed.  Always the same error.  Going directly on the Honeywell TCC site everything works.  Please help?

HONEYWELL TOTAL CONNECT COMFORT STATUS (UI5):
RefreshStatus
Last Authorization
Attempt                               Tue, Mar 06, 05:21:35 PM
Authorization Status              Unsuccessful. Error code 4
Next Authorization Attempt    Tue, Mar 06, 05:26:35 PM

HONEYWELL TOTAL CONNECT COMFORT LOGIN CREDENTIALS:

Username  guy.m.cyr@gmail.com
Login
Password  ********  (1 cap, 7 letters and 1 number)

Interface TCC
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikoz on April 27, 2018, 01:55:56 pm
Hi,

Can someone tell me where to get the latest plugin? 

I am using the one from the "apps" in UI7 and the "ModeState" variable does not change from Idle, and am hoping this has been fixed? 

thanks.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikoz on April 30, 2018, 04:20:11 pm
I cannot get ModeState to change, it stays at Idle even though the AC is running.    Any help would be appreciated. 


I am not sure I have the latest, it seems there's no place to get the latest files, so I installed the version from apps and then searched this forum backwards looking for updates... not exactly a great solution. 

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on April 30, 2018, 09:39:03 pm
I think that is the only way to do it now.  I'm not sure this plug in is maintained any longer.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikoz on May 01, 2018, 12:19:46 pm
Hi all,

Does anyone know of a reliable way to simply determine if the AC is running ("acitvly cooling") or not?  It appears that ModeState in this plugin does not work, it stays stuck at Idle. 

thanks
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: Don Phillips on May 01, 2018, 07:46:54 pm
Not sure this will help.  I send an alert via VeraMate alerts in PLEG using Vera Alerts based upon the fan state device variable (no plug-in).  Attached is my status report.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: mikoz on May 02, 2018, 10:43:57 am
Hi all,

I found, I think, my problem, it's the refresh time.  The min allowed refresh time was 300 seconds, which is a long time I think.  I tried to lower it but the code prevents that, so I modified the code to allow for a minimum refresh of 10 seconds.  This seems to work, now I can see the status change within a much more reasonable amount of time. 

==> Is there a reason why the refresh default is so high and cannot be something like 10 seconds? 

My objective here is to turn on a  mid-pressure misting system to mist my A/C coils only when:  the A/C is actually running, the outside temp is above a certain threshold and the outside humidity is below a threshold (no sense in misting when it's humid out or even raining) .  I can put all of that together with PLEG. 

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: maddios on May 19, 2018, 04:26:21 am
Hi guys,

I've been using this plugin for a while with my thermostats and it mostly works great, however lately it's been throwing error code 5 every so often.

Anyone know what error code 5 is? What's the best way to debug it if it's not something common?

Thanks
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: BGill on June 20, 2018, 11:43:26 pm
@manchild - the change for fan control is being ignored. It looks like this is due to an incorrect variable name. Here is the updated lua file to correct it. Let me know if this fixes the problem.

Thanks @mikee for fixing the Fan Issue. - I had the exact same issue yesterday and searching though these threads I found this post.
I downloaded the new lua file and uploaded it to my Vera and bingo... I now have control over the Fan! Yay!
@mikee fantastic job on this plugin. It's absolutely awesome!
I am a newbie to Vera and Luup snippets etc. But as a programmer by trade I am picking it up fast.
This is all so powerful!
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: daneboy1955 on August 19, 2018, 03:47:00 pm
This plugin looks like I would be able to use my existing thermostat.  Thanks for writing this and making it available.

Which Vera controller would you  recommend?  I want to monitor doors and windows and switch off AC on a Honeywell thermostat if any windows or doors are open.

Also, is there a plug in for Fujitsu split air AC units?

Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cc4005 on September 11, 2018, 12:37:24 pm
Does the Vera hub have to be on the same LAN as the thermostats for the plugin to create the devices? I installed the PI on a VeraPlus test box to try it out before deploying. The test box is not on the LAN with the thermostats. Login to TCC is successful and the PI reports thermostats found, but none are populated on the status page and no devices are created. I've reloaded the engine and even rebooted the VeraPlus. Also uninstalled the plugin and started over. Same results. Thermostats (2 ea.) are Honeywell RTH6580WF. Thanks.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on September 21, 2018, 12:36:08 am
Also, is there a plug in for Fujitsu split air AC units?

I guess the Broadlink plugin should work.  It interfaces with the Broadlink IR sender, which can send AC controller signals.
Best to look for that plugin and ask there.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: MarcusB on September 21, 2018, 12:40:00 am
Does the Vera hub have to be on the same LAN as the thermostats for the plugin to create the devices?

I don't think the plugin has anything to do with the actual unit.  It interfaces directly with the Honeywell website.
For some stupid reason, Honeywell has different formats for different countries.  I know that if you are in Australia it probably wont detect any thermostats as we are slightly different again for some reason.  Most other devices that interface with the TCC website don't work for Australia either.  Last I checked IFTTT didn't.  You can register your thermostat as if you lived in the US but then your times and weather are wrong.

Mine works in Australia but only because ages ago the interface was different and Vera could detect it.  If I do any searches now it doesn't get discovered.  I'm very grateful for backups otherwise I'd lose the functionality.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: cc4005 on September 21, 2018, 09:19:55 am
Does the Vera hub have to be on the same LAN as the thermostats for the plugin to create the devices?

I don't think the plugin has anything to do with the actual unit.  It interfaces directly with the Honeywell website.
For some stupid reason, Honeywell has different formats for different countries.  I know that if you are in Australia it probably wont detect any thermostats as we are slightly different again for some reason.  Most other devices that interface with the TCC website don't work for Australia either.  Last I checked IFTTT didn't.  You can register your thermostat as if you lived in the US but then your times and weather are wrong.

Mine works in Australia but only because ages ago the interface was different and Vera could detect it.  If I do any searches now it doesn't get discovered.  I'm very grateful for backups otherwise I'd lose the functionality.


Thanks for the reply. I'm in the U.S. so no idea why it's not working. As I mentioned before, it says it connects successfully and "devices found", but nothing shows up in the plugin. Ugh.
Title: Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
Post by: skylinedgtr on November 11, 2018, 12:59:53 pm
Hi Guys,

Long time lurker and contributor but cannot get access to my email so had to register a new account!  I've said it before but.. thanks for this plugin, it's fantastic :-). 

Question:

1.  Added a new radiator valve / zone to my system.  Plugin has detected it (I can see it in the 'Status' tab) but for some reason it hasn't created a device in the 'Devices' tab?  Any ideas why or how I can get this to work?


I've disabled and re-enabled it in the status tab but still doesn't seem to show.  Hit refresh on the status tab too but still nothing.  Any help appreciated! :-)