Author Topic: PLUGIN: Honeywell Total Connect Comfort Thermostats  (Read 160788 times)

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #735 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #736 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #737 on: February 11, 2018, 12:23:16 pm »
Maybe these pics will help...


Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #738 on: February 11, 2018, 12:25:59 pm »
one more..

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #739 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #740 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>

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #741 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #742 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!
« Last Edit: February 11, 2018, 01:11:03 pm by cohibafan »

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #743 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #744 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.

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #745 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.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline cohibafan

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #746 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?

Offline bmwgcyr

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #747 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

Offline mikoz

  • Full Member
  • ***
  • Posts: 122
  • Karma: +1/-6
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #748 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.

Offline mikoz

  • Full Member
  • ***
  • Posts: 122
  • Karma: +1/-6
Re: PLUGIN: Honeywell Total Connect Comfort Thermostats
« Reply #749 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.