Thermostat Enhancement Plugin v2 Thread

Posted on
Sat Jun 28, 2014 4:38 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Thermostat Enhancement Plugin v2 Thread

Folks,

The Mother of Necessity definitely has given me a reason to sit up and take notice.

I had a brainstorm as I was going through the Thermostat Enhancement plugin v1, and I realized that there was a simpler logic that I could follow that would simplify the design quite a bit.

I am still working on this a bit, but I believe that the core of plugin is solid and stable at this point.

I am waiting on a Zwave multi sensor, to ensure that the concept is extendible (since it has a temperature sensor). And working on creating a reporting system for this.

How is this different from v1?

  • The new plugin has an infinite storage capacity, where the old system was limited by the allowed size of Indigo's states for the devices.
  • that there is now only two different CSV files, the daily file which contains the statistics for each day. And a weekly file. Each entry is in the form of XXXX-YYYY, where XXXX is either the Gregorian day or week number of the year, and YYYY is the year. So January 5, 2014 would be 005-2014.
  • Currently the data is stored in a pickle in ~/documents/Thermostat_data, and I have written a python script which will export it to a CSV file.
  • Each CSV contains the same basic data.
  • Thermostat (ID) - The Indigo ID # of the thermostat
  • Day-Year - The Gregorian Day #, followed by the year in YYYY format. (eg. 5-2014 would be January 5th, 2014)
  • Cooler - Minutes of AC / Cooler runtime
  • Heater - Minutes of Heat / Furnace Runtime
  • Fan - Minutes of Fan usage / Fan Runtime
  • High temp - The Maximum detected temperature for that day from the thermostat
  • Low Temp - The minimum detected temperature for that day from the thermostat
  • High Humidity - ditto, for humidity
  • Low Humidity - ditto, for humidity

The data files are comprehensive, and contain all the thermostat's in the single (daily or weekly) file. Thus the Thermostat ID, so that you can easily sort by the thermostat. But this also allows you to directly compare between days (e.g. 1/5/2014, 1/5/2013, 1/5/2012). But you can also then compare the weekly to see if the daily change may have been part of a trend.

The Monthly and Yearly date can be derived from the Daily and Weekly figures. Currently my concept is that the CSV would be imported into Excel / Numbers, etc, to allow more analysis.

Is there any additional information you think would be helpful?

------
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
Thu Jul 31, 2014 10:07 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Thermostat Enhancement Plugin v2 Thread

Sounds great. If you need a beta tester, I'll be glad to help out as much as I can. I have a single Insteon 2441TH :)


OK so I DID think of one thing that might be nice to have... Perhaps a daily list of the LONGEST runtime, and when it occurred, and the ability to email the whole report.

Posted on
Sat Nov 08, 2014 5:17 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Thermostat Enhancement Plugin v2 Thread

I have a 2441v and would also like to test this if and when it's ready. I tried the v1 plug-in but it does not look like it's working with Indigo 6. Thanks and good luck with it.

--Dave

Posted on
Sun Nov 09, 2014 6:52 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin v2 Thread

DVDDave wrote:
I have a 2441v and would also like to test this if and when it's ready. I tried the v1 plug-in but it does not look like it's working with Indigo 6. Thanks and good luck with it.


Dave, drop me a line at benjamin at schollnick dot net, and I'll hook you up with a beta.

------
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
Thu Dec 24, 2015 8:55 am
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Thermostat Enhancement Plugin v2 Thread

Hi Ben,

What is the status of this plugin? Thanks!

Posted on
Wed Jul 27, 2016 8:19 pm
MartyS offline
Posts: 86
Joined: May 06, 2008
Location: Charlotte, North Carolina

Re: Thermostat Enhancement Plugin v2 Thread

I really like this plugin!

After running version 1.11 for several weeks, I've finally come to realize that the daily total runtimes were not rolling over into weekly totals. And looking in more detail, daily totals were not resetting to 0 each day as I would have expected. Looking at the logic for the test_state method I determined that the code within the first condition test is for when one of the monitored thermostat modes (ac, heat, fan) goes "On" and it is decided which totals are being impacted. Putting a debugging entry into the Indigo log in that section showed me that day after day the expected code was not being run. Then to my amazement in this morning's log it did run!

The difference is that the first run after midnight today was following the last ac run period that had ended before midnight, leaving acLastOff as 2016-07-26 and thus not the same as today's 2016-07-27. So I looked back in my logs and sure enough, my ac was turned on before midnight and was still running after midnight. That means that acLastOff was always the same as today's date during the next "On" state change.

I think this code would run every day if the check was today's date compared to acLastOn instead of acLastOff. Does that sound right to anyone else that's using this plugin? Have you too been seeing this issue?

/Marty

Posted on
Mon Aug 01, 2016 7:11 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Thermostat Enhancement Plugin v2 Thread

MartyS wrote:
I really like this plugin!

After running version 1.11 for several weeks, I've finally come to realize that the daily total runtimes were not rolling over into weekly totals. And looking in more detail, daily totals were not resetting to 0 each day as I would have expected. Looking at the logic for the test_state method I determined that the code within the first condition test is for when one of the monitored thermostat modes (ac, heat, fan) goes "On" and it is decided which totals are being impacted. Putting a debugging entry into the Indigo log in that section showed me that day after day the expected code was not being run. Then to my amazement in this morning's log it did run!

The difference is that the first run after midnight today was following the last ac run period that had ended before midnight, leaving acLastOff as 2016-07-26 and thus not the same as today's 2016-07-27. So I looked back in my logs and sure enough, my ac was turned on before midnight and was still running after midnight. That means that acLastOff was always the same as today's date during the next "On" state change.

I think this code would run every day if the check was today's date compared to acLastOn instead of acLastOff. Does that sound right to anyone else that's using this plugin? Have you too been seeing this issue?


I'll take a look at the code.

But I suspect strongly that is correct. Back then, I didn't think it would be likely that the AC would be running continuously for more than 24 hrs....

I've thought about revising the plugin, and I suspect that I'll be working on Switchboard, the Energy monitor, and the Thermostat plugin for Indigo v7...

- 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
Mon Aug 01, 2016 7:26 am
MartyS offline
Posts: 86
Joined: May 06, 2008
Location: Charlotte, North Carolina

Re: Thermostat Enhancement Plugin v2 Thread

bschollnick2 wrote:
I'll take a look at the code.

But I suspect strongly that is correct. Back then, I didn't think it would be likely that the AC would be running continuously for more than 24 hrs....



In my case it's not that the ac is running for more than 24 hrs, it's just that it's running at midnight (apparently quite often) so the on/off cycle starts on one date and ends on the next..

Based on the logging I just reviewed, it seems the code change does work in both cases: when the cycle starts and ends before midnight, and when it crosses that boundary.

If you're going back into the code, PM me and I'll share a few other minor corrections I made to my copy of the plugin. I'm running Indigo v5 so if you can, support backwards compatibility when you put in any v7 updates.

/Marty

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests

cron