Thermostat Enhancement Plugin

Posted on
Mon Jun 04, 2012 6:34 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

CraigM wrote:
OK, so now I'm totally confused [as usual].

- v4 has a web interface that displays run times and end of day totals. :D
- v4 has a web interface that displays a great graphical usage chart. :D
- Does v4 work in v5? As the above two features are very useful.
- What exactly does v5 do? How do you use it? I have it installed, but don't what to do next.
- Are their any tutorials/examples/scenarios/screenshots


Sorry, let me clear this up. And I'll let you in on a secret, I made the same mistake.
We are both blurring the lines between two different plugins, that are made by me...

The HVAC plugin, and the Thermo_tracking plugin. The HVAC plugin, tracks the amount of time that the furnace & AC system has run, and gives you metrics that you can monitor and use.... (The HVAC plugin does not have any web interface).... The Thermostat tracking plugin, tracks the temperature, and has the web page graphs....

I wrote this 2-3 paragraph forum post, and then realized I made the same assumption....

The Thermostat Enhancement plugin is a replacement for the HVAC plugin.... The Thermo_tracking plugin doesn't use any data from the Indigo devices, instead it reads from the database directly.... I believe it will work with v5. That being said, I eventually intend to include the same functionality with the Thermostat Enhancement plugin....

But at this point, I need to hold off on the web site with Indigo, since the IWS (Indigo Web Server) has no way to communicate with the Indigo devices. Quite simply, there is no official way to get data from Indigo to the Indigo Web server. The Indigo Web server does not support reading data from device states.
With Find My iDevices (FMiD), I used a backend kludge to allow the exchange of data, but I've decided to wait a bit to allow Matt & Jay finish working on v5.xx.

Also, v5.xx is a moving target at this point. Matt & Jay, are making large changes which I welcome. These changes are fantastic additions, but at times this can add a lot of work. For example, I rewrote the Thermostat Enhancement plugin for v5, as a custom device. Now, Matt & Jay have finished adding the option of extending the existing Thermostat device. So instead of having two devices, you could have one device, ala Venstar w/Thermostat Enhancement plugin.

So to make this easier for the end user, I now have to partially rewrite the Thermostat Enhancement.... Because it's slightly confusing to have the TE a separate device.... (That's one of the biggest questions with that plugin)
It's great to see them do this, but it also makes more work for me....

So, to get back to the initial question, currently there is no web page graph, but all of the data is there in the device's state table. So you can highlight the device, and view the state information.... I do plan to add a web component, but that's after the IWS gets rewritten....

Alternatively, you could make a custom web page, and add the device's state information you wish to see...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Jun 04, 2012 1:36 pm
freshwuzhere offline
Posts: 105
Joined: Apr 05, 2012

Re: Thermostat Enhancement Plugin

Slightly off the Venstar topic but I have recently a rash of very cool looking thermostats hitting the market (Ecobee, Filterete, 3M, Homewerks, Lockstate to name a few).
The one thing they have in common is they look a LOT cooler than the old Venstar.
Anyone tried or had any feedback on these new wifi Thermostats?

Posted on
Fri Jun 08, 2012 1:37 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Thermostat Enhancement Plugin

bschollnick2 wrote:
... So you can highlight the device, and view the state information.... I do plan to add a web component, but that's after the IWS gets rewritten....

Highlight the device??

bschollnick2 wrote:
Alternatively, you could make a custom web page, and add the device's state information you wish to see...

Add the device state info on a control page??

If there was a smiley for someone jumping out the window, that would be me! The more that is written the more confusing this gets.

Your website shows:
New States

Maximum Temperature - Stage 2 feature, The plugin will notify the owner when this temperature is reached
Minimum Temperature – Stage 2 feature, The plugin will notify the owner when this temperature is reached
acLastOn – The Time/Date when the AC / Cooling was last turned On
acLastOff – The Time/Date when the AC / Cooling was last turned Off
acLastRunTime – The number of Minutes, that the AC was last run for

fanLastOn – The Time/Date when the Fan was last turned On
fanLastOff – The Time/Date when the Fan was last turned Off
fanLastRunTime – The number of Minutes, that the Fan was last run for

heatingLastOn – The Time/Date when the Heat was last turned On
heatingLastOff – The Time/Date when the Heat was last turned Off
heatingLastRunTime – The number of Minutes, that the Heat was last run for
CurrentTemperature – The current Thermostat temperature (courtesy state, so that you don’t have to look at another device)
CurrentHeatSetpoint – The current Heat SetPoint, another courtesy state
CurrentCoolSetpoint – The current Cooling Setpoint, another courtesy state
MaximumTempExceeded – Stage 2 feature, boolean, is set to true if max temperature has been exceeded
BelowMinimiumTemp – Stage 2 feature, boolean, is set to true if the temperature has gone below the min temperature
LastUpdated – The Time/date stamp when the add-on states was last updated.
Are there any simple instructions on how to use these? I miss the old scripts where I could get a daily HVAC runtimes.

When installed, the changes are most noticeable in the Log file…

Sep 18, 2011 8:28:39 AM
Sent INSTEON “Furnace Link” turn cool on
Received INSTEON “Furnace Link” off (button 2)
Thermostat Add-On The Heating System ran for 7 minutes (Hours: 0.0)

My log file does NOT show this. All I get is "temperature changed to 81.0, temperature changed to 80.0..."

I would love to take advantage of all the features, but I would settle for just daily run time totals.

FYI
Indigo 5.1.2
Insteon Thermostat Adapter FW 95
Thermostat Enhancement Add-On [installed/enabled]
SQL Logger [enabled]

Out of desperation I tried installing the old scripts from Indigo 4 into Indigo 5. The webpages come up, but there is no current data.

HELP!

Posted on
Fri Jun 08, 2012 2:31 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

CraigM wrote:
bschollnick2 wrote:
... So you can highlight the device, and view the state information.... I do plan to add a web component, but that's after the IWS gets rewritten....

Highlight the device??


Currently, you need to make a new device to monitor the thermostat...

The Type is Plugin
Plugin is Thermostat Enhancement Add-On
Model is Thermostat Monitor

bschollnick2 wrote:
Alternatively, you could make a custom web page, and add the device's state information you wish to see...


Part of the issue is that Indigo v5 is still transitioning...

Once you have that Thermostat Monitor defined, it will monitor the thermostat and contain all those new states... Which then you can add to the IWS control pages....

My next step, when I have the opportunity is to rewrite the plugin to take advantage of the ability to make it part of the standard thermostat device.... Before Indigo v5.1 (?) that wasn't possible. Since I didn't know that feature was coming, I designed it as a separate device...

I have updated the page with Install directions... I'll have to review all of the HA pages on the site to make sure they are up to date... Sadly it appears that I have been a little sloppy...


- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 09, 2012 3:51 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Thermostat Enhancement Plugin

bschollnick2 wrote:
CraigM wrote:
bschollnick2 wrote:
... So you can highlight the device, and view the state information.... I do plan to add a web component, but that's after the IWS gets rewritten....

Highlight the device??


Currently, you need to make a new device to monitor the thermostat...

The Type is Plugin
Plugin is Thermostat Enhancement Add-On
Model is Thermostat Monitor


OK, so I made a new device, but when I highlight it I get NO data.
Picture 1.png
Picture 1.png (13.92 KiB) Viewed 5908 times


bschollnick2 wrote:
Alternatively, you could make a custom web page, and add the device's state information you wish to see...


OK, so I made a quick test Control Page [never used the editor before, so I'm seeing it for the first time]
Picture 5.png
Picture 5.png (55.52 KiB) Viewed 5908 times

Picture 4.png
Picture 4.png (15.36 KiB) Viewed 5908 times

Again NO data?

Also, in the editor pull-down menu there are 12 options all named "The length of time (in minutes) the AC Ran" [??]

Lastly, your website states:
When installed, the changes are most noticeable in the Log file…

Sep 18, 2011 8:28:39 AM
Sent INSTEON “Furnace Link” turn cool on
Received INSTEON “Furnace Link” off (button 2)
Thermostat Add-On The Heating System ran for 7 minutes (Hours: 0.0)


The only HVAC activity I see in the log is:
Picture 2.png
Picture 2.png (16.4 KiB) Viewed 5908 times

And when the HVAC turns on I don't see the log line
Thermostat Add-On The xxx System ran for 7 minutes (Hours: 0.0)


Does this have anything to do with the 'POLLING' option of the stat, or the SQL db?
Can anyone help me get DAILY TOTAL RUN-TIMES or any states to show their data?

Posted on
Sat Jun 09, 2012 5:25 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

CraigM wrote:
bschollnick2 wrote:
CraigM wrote:
bschollnick2 wrote:
... So you can highlight the device, and view the state information.... I do plan to add a web component, but that's after the IWS gets rewritten....

Highlight the device??


Currently, you need to make a new device to monitor the thermostat...

The Type is Plugin
Plugin is Thermostat Enhancement Add-On
Model is Thermostat Monitor


OK, so I made a new device, but when I highlight it I get NO data.


What type of thermostat do you have?

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 09, 2012 5:53 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

Also, in the editor pull-down menu there are 12 options all named "The length of time (in minutes) the AC Ran" [??]


I did accidentally made the fan label on the triggers, show as AC... So that appears to be part of that issue...

When installed, the changes are most noticeable in the Log file…

Sep 18, 2011 8:28:39 AM
Sent INSTEON “Furnace Link” turn cool on
Received INSTEON “Furnace Link” off (button 2)
Thermostat Add-On The Heating System ran for 7 minutes (Hours: 0.0)


The only HVAC activity I see in the log is:
Thermostat Add-On The xxx System ran for 7 minutes (Hours: 0.0)


> Does this have anything to do with the 'POLLING' option of the stat, or the SQL db?

No, not at all.

Something is different on your thermostat setup. What type of thermostat do you have?

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 09, 2012 5:58 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

Can anyone help me get DAILY TOTAL RUN-TIMES or any states to show their data?


Alright, I just checked the coding on the plugin.

I need to know on the Indigo Definition screen the information on the your Indigo Thermostat device... If it's not a venstar adapter, then that is part of the issue...

I need to know what the model is...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Jun 10, 2012 11:07 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin v1.01

This version fixes the Trigger Strings being messed up with the AC, Fan, and Heating.

Some of the trigger strings referred to the AC when they were for the Fan and/or Heating...

https://dl.dropbox.com/u/241415/Thermos ... 0v1.01.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Jun 10, 2012 2:49 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Thermostat Enhancement Plugin

bschollnick2 wrote:
Also, in the editor pull-down menu there are 12 options all named "The length of time (in minutes) the AC Ran" [??]


I did accidentally made the fan label on the triggers, show as AC... So that appears to be part of that issue...

When installed, the changes are most noticeable in the Log file…

Sep 18, 2011 8:28:39 AM
Sent INSTEON “Furnace Link” turn cool on
Received INSTEON “Furnace Link” off (button 2)
Thermostat Add-On The Heating System ran for 7 minutes (Hours: 0.0)


The only HVAC activity I see in the log is:
Thermostat Add-On The xxx System ran for 7 minutes (Hours: 0.0)


> Does this have anything to do with the 'POLLING' option of the stat, or the SQL db?

No, not at all.

Something is different on your thermostat setup. What type of thermostat do you have?

Venstar T1800
Adapter 2441V FW 95 (i2CS engine)

Posted on
Sun Jun 10, 2012 4:32 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Thermostat Enhancement Plugin

Installed Thermostat Enhancement Plugin v1.01

RELOAD
Code: Select all
Jun 10, 2012 3:20:58 PM
  Reloading plugin "Thermostat Enhancement Add-On 1.01"
  Stopping plugin "Thermostat Enhancement Add-On 1.01" (pid 904)
  Plugin "Thermostat Enhancement Add-On" disconnected
  Starting plugin "Thermostat Enhancement Add-On 1.01" (pid 913)
  Plugin "Thermostat Enhancement Add-On" connected
  Plugin "Thermostat Enhancement Add-On 1.01" started


The ReadMe states run a survey. So I installed Survey Plugin v1.00

CONFIGURE
Code: Select all
  Error (client)                  getXmlFromPlugin() caught exception: ServerCommunicationError -- timeout waiting for plugin response


RELOAD
Code: Select all
Jun 10, 2012 3:25:46 PM
  Error                           process (pid 903) failed to quit after polite request -- forcing it to quit now
  Starting plugin "Survey Plugin 1.00" (pid 917)
  Plugin "Survey Plugin" disconnected
  Plugin "Survey Plugin" connected
  Plugin "Survey Plugin 1.00" started
  Error (client)                  runConfigDialog() caught exception: PAXDialogControllerError -- Dialogs must contain at least one <Field> element.


RUN A SURVEY
Code: Select all
Jun 10, 2012 3:27:23 PM
  Survey Plugin                   Survey Requested....
  Survey Plugin                   Searching for non-responsive devices
  Sent INSTEON                    "AV [closet/tv av fan]" status request (received: 0)
  Survey Plugin                      Estimated Response Time: 0.21559
  Sent INSTEON                    "AV [mbr av fan]" status request (received: 0)
  Survey Plugin                      Estimated Response Time: 0.24485
  Error                           00.00.00 status request; send failed (no acknowledgment)



Still NOT seeing any data.

Posted on
Sun Jun 10, 2012 6:00 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

The ReadMe states run a survey. So I installed Survey Plugin v1.00


What?

The Survey plugin has nothing to do with the Thermostat plugin.

Okay, I just looked, the readme file does say that. That's a cut'n paste mistake. You can remove that plugin... It's not needed. I will fix it, and re-release.... I don't understand, since that should be the same read me that was in v1.00.

I still don't understand why your not seeing any data.

Please turn on the DEBUG logging in the preferences, and the lines around a temperature change.

If you don't mind, please zip your indigo database, and send a copy to Benjamin AT schollnick DOT net.

I will need to see the details about your configuration to solve this...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Jun 10, 2012 8:14 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

bschollnick2 wrote:
The ReadMe states run a survey. So I installed Survey Plugin v1.00


What?

The Survey plugin has nothing to do with the Thermostat plugin.


Thermostat Enhancement v1.01a is now available, and it fixes the Readme documentation.

https://dl.dropbox.com/u/241415/Thermos ... v1.01a.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Jun 12, 2012 1:19 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Thermostat Enhancement Plugin

bschollnick2 wrote:
...Please turn on the DEBUG logging in the preferences

- I deleted the current device [plug-in]
- Disable/enable the plug-in
- Made a new device [plug-in]
- Debug on
Code: Select all
Jun 12, 2012 12:06:02 PM
  Enabling plugin "Thermostat Enhancement Add-On 1.01"
  Starting plugin "Thermostat Enhancement Add-On 1.01" (pid 2345)
  Plugin "Thermostat Enhancement Add-On" connected
  Plugin "Thermostat Enhancement Add-On 1.01" started
  Thermostat Enhancement Add-On Debug Version Check Server reports 0.90 is available.
  Thermostat Enhancement Add-On   Debug Mode is activated.  (Only use if testing...)

Jun 12, 2012 12:07:12 PM
  SQL Logger Error                exception trying to insert row into table device_history_201576345 ("HVAC [thermostat enhancement plug-in]") -- unable to modify table
  SQL Logger Error                no such table: device_history_201576345
  SQL Logger Error                INSERT INTO device_history_201576345 (belowminimiumtemp, currentcoolingsetpoint, currentheatsetpoint, currenttemperature, lastupdated, maximumtempexceeded, acdailyruntime, aclastoff, aclaston, aclastruntime, acmonthlyruntime, acweeklyruntime, acyearlyruntime, fandailyruntime, fanlastoff, fanlaston, fanlastruntime, fanmonthlyruntime, fanweeklyruntime, fanyearlyruntime, heatingdailyruntime, heatinglastoff, heatinglaston, heatinglastruntime, heatingmonthlyruntime, heatingweeklyruntime, heatingyearlyruntime) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);

Posted on
Tue Jun 12, 2012 3:59 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin

Matt & Jay,

Any idea on why this wouldn't be working on CraigM's system? He's getting SQL Logger Errors...
And I admit it's been a while since I tore apart the Thermostat Enhancement Plugin, but any SQL Logging should be from Indigo, not the plugin?

CraigM wrote:
bschollnick2 wrote:
...Please turn on the DEBUG logging in the preferences

- I deleted the current device [plug-in]
- Disable/enable the plug-in
- Made a new device [plug-in]
- Debug on
Code: Select all
Jun 12, 2012 12:06:02 PM
  Enabling plugin "Thermostat Enhancement Add-On 1.01"
  Starting plugin "Thermostat Enhancement Add-On 1.01" (pid 2345)
  Plugin "Thermostat Enhancement Add-On" connected
  Plugin "Thermostat Enhancement Add-On 1.01" started
  Thermostat Enhancement Add-On Debug Version Check Server reports 0.90 is available.
  Thermostat Enhancement Add-On   Debug Mode is activated.  (Only use if testing...)

Jun 12, 2012 12:07:12 PM
  SQL Logger Error                exception trying to insert row into table device_history_201576345 ("HVAC [thermostat enhancement plug-in]") -- unable to modify table
  SQL Logger Error                no such table: device_history_201576345
  SQL Logger Error                INSERT INTO device_history_201576345 (belowminimiumtemp, currentcoolingsetpoint, currentheatsetpoint, currenttemperature, lastupdated, maximumtempexceeded, acdailyruntime, aclastoff, aclaston, aclastruntime, acmonthlyruntime, acweeklyruntime, acyearlyruntime, fandailyruntime, fanlastoff, fanlaston, fanlastruntime, fanmonthlyruntime, fanweeklyruntime, fanyearlyruntime, heatingdailyruntime, heatinglastoff, heatinglaston, heatinglastruntime, heatingmonthlyruntime, heatingweeklyruntime, heatingyearlyruntime) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Who is online

Users browsing this forum: No registered users and 3 guests