Trane Nexia plugin in Development

Posted on
Thu Oct 10, 2019 9:22 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Trane Nexia plugin in Development

I have a plugin in development for the Trane/Nexia thermostats. I'm starting with an XL1050 controlling a two zone system. If you're interested in this plugin, and have other models of thermostats (or an XL1050 with a single zone), let me know. I'll need some data from your system, and testing assistance.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Oct 10, 2019 1:31 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Trane Nexia plugin

I have wanted to build this for a long time -- music to my ears that you are working on that! :-) I have a ComfortLink II XL950 w/ a 2-stage, 4-zone unit. Let me know what you need or if I can help in any way!

Adam

Posted on
Thu Oct 10, 2019 1:46 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

I want to compare the JSON data that the server returns for different configurations, just to make sure I'm not making any unwarranted assumptions about the data.

If you could grab the current commit from https://github.com/FlyingDiver/Indigo-Trane-Nexia and install it, that would be great. You'll also need to have the bs4 (BeautifulSoup) package installed. I think that's the only non-standard package it uses.

Create an account device using your nexiahome.com info and the house ID from the URL. Then use the menu option to dump the data to the log. Then send me that log info. Compressed zip in PM or email is fine. Sanitize the id number in the JSON if you want, it's the only thing in there that's uniquely identifiable.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Oct 10, 2019 2:10 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Trane Nexia plugin

Will do, thanks for working on this and sharing!

Posted on
Fri Oct 11, 2019 11:57 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

Progress update: Basic monitoring of the Trane system seems to be working. And I can do HVAC mode and set point changes. Fan mode isn't working quite right, but that might be because this is a "smart" system and it's ignoring the input. ;)

Other than the required "Nexia Account" device, I have a thermostat device and a zone device. The thermostat device shows the humidity and (supposedly) controls Fan mode. It also has a bunch of state variables for current condition of the system. Like compressor percentage and fan speed. The zone device has the temperature set points and HVAC mode. I might need to move the HVAC mode to the thermostat device since it's not independent for each zone. The zone devices also have some extra state variables, for things like damper state.

I need to look at the schedule/program stuff next, as well as temperature hold modes. And add actions for setting the humidity set point, since I don't think there's a standard Indigo action for that.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 11, 2019 1:45 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Trane Nexia plugin

Excellent news! Count me in if you need testers. I currently use IFTTT to link Indigo with Nexia. Works, but far from efficient.

JP

Posted on
Fri Oct 11, 2019 1:51 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Trane Nexia plugin

Awesome, man! Is that code checked in to GitHub? Going to grab the latest tonight and get you the JSON just for double-checks... was planning on it last night but was too tired after soccer. Funny, the body is more tired after a game post-40 than in my 30's... Go Figure!

Posted on
Fri Oct 11, 2019 2:04 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

It's at https://github.com/FlyingDiver/Indigo-Trane-Nexia

No tags, versions, or releases yet. I'll try not to commit anything that's horribly broken.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 11, 2019 2:05 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

And both of you, please grab a data dump (menu command) and send it to me. With a description of your system.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 11, 2019 7:21 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Trane Nexia plugin

Got this error:

Starting plugin "Trane Nexia 0.0.0" (pid 23056)
Trane Nexia Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "plugin.py", line 9, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Trane Nexia.indigoPlugin/Contents/Server Plugin/nexia_thermostat.py", line 22, in <module>
ImportError: No module named bs4

Stopping plugin "Trane Nexia 0.0.0" (pid 23056)
Stopped plugin "Trane Nexia 0.0.0"

Posted on
Fri Oct 11, 2019 7:25 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

roquej wrote:
Got this error:

Starting plugin "Trane Nexia 0.0.0" (pid 23056)
Trane Nexia Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "plugin.py", line 9, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Trane Nexia.indigoPlugin/Contents/Server Plugin/nexia_thermostat.py", line 22, in <module>
ImportError: No module named bs4

Stopping plugin "Trane Nexia 0.0.0" (pid 23056)
Stopped plugin "Trane Nexia 0.0.0"


Read the third post in the thread. You need to install BeautifulSoup. Try:

Code: Select all
sudo pip install bs4

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 11, 2019 8:45 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Trane Nexia plugin

Thank you. I was a daft dork for not reading all the thread

JP
Last edited by roquej on Fri Oct 11, 2019 8:56 pm, edited 1 time in total.

Posted on
Fri Oct 11, 2019 8:46 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trane Nexia plugin

Next commit will have the bs4 library bundled with the plugin.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 11, 2019 9:03 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Trane Nexia plugin

I tripled check, but getting this error:

Started plugin "Trane Nexia 0.0.0"
Trane Nexia Starting Trane Nexia
Trane Nexia Nexia Account: Starting NexiaAccount Device XXXXXXXXXX
Trane Nexia Error exception in deviceStartComm(Nexia Account): 'key house_id not found in dict'

I am absolutely sure I have the correct house ID from the url.

Suggestions?

JP

Posted on
Fri Oct 11, 2019 9:07 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Trane Nexia plugin

A bit more. Deleted the Nexia Account device and tried recreating again. Now getting:

Trane Nexia new device: Starting NexiaAccount Device 1927796681
Trane Nexia Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1179, in deviceUpdated
File "plugin.py", line 273, in deviceStartComm
KeyError: key house_id not found in dict

JP

Who is online

Users browsing this forum: No registered users and 1 guest