Venstar Thermostat Plugin v1.00 released...

Posted on
Sat Mar 27, 2010 5:37 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Venstar Thermostat Plugin v1.00 released...

Folks,

I have just created a new plugin that will allow Venstar Insteon Thermostat users to monitor their daily usage of AC, Heating, and Fan usage... This is a basic plugin designed to extend Indigo...

When installed, the plugin is most noticeable in the Log file...

Received INSTEON "Furnace Link" off (button 2)
Thermostat Insteon Thermostat Event being processed
Thermostat Thermostat requesting Heating - Off
Thermostat Furnace Heat Ran for 14 Minutes
Thermostat Thermostat Event Processing Done

Several new variables are created to track usage, Heating_dailymins, AC_dailymins, and Fan_dailymins will track the number of minutes that Heating, AC and the furnace fan have been on.
Please note, you will need to make a new timed action that runs thermo_reset.scpt whenever you want to reset the counters... I would suggest midnight, so that you are capturing the 24 hrs period... The script will append to a csv file in your documents folder that contains the value that are in the AC, Furnace and Fan variables, and then reset the variables to 0.

I'll be expanding on the documentation on the blog either Sunday or Monday, depending on free time.

Download from here...
http://www.schollnick.net/wordpress/201 ... -released/

------
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 Mar 27, 2010 5:56 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Venstar Thermostat Plugin v1.00 released...

Very neat! You've been busy lately. :-)

Image

Posted on
Mon Mar 29, 2010 5:56 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

support wrote:
Very neat! You've been busy lately. :-)


I try.... One of my long term wants has been someway to monitor the furnace, so that I could track it's usage... And we just had a surprise repair bill for the furnace, so I figured what the heck, get the Venstar....

Thus....

I have another Venstar plugin coming out soon, but I have to finish up the web coding for it... The basic guts are done... Well, I have to evaluate the Google Charts aspect, but...

- 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 Mar 29, 2010 10:15 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Venstar Thermostat Plugin v1.00 released...

Sounds interesting and informative.

As a non-programmer, I looked at the scripts (mostly the notes) and checked your blog and looked for a readme, but didn't see instructions about where to place the scripts (if it matters). More importantly, my review of the script did not reveal whether this version can handle multiple Venstars for multiple HVAC zones.

Can hold tight for your referenced blog update with additional information, just posting these comments as topics I'd like to see included.

Thanks,
mjc
[Edit] PS Also, seems that the scripts' notes reference "alarm" settings. Maybe that's just the proper programming terminology, but, as first, I thought I had downloaded a script for using Indigo as a home alarm system.
Last edited by eme jota ce on Mon Mar 29, 2010 10:17 am, edited 1 time in total.

Posted on
Mon Mar 29, 2010 10:17 am
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Venstar Thermostat Plugin v1.00 released...

bschollnick2 wrote:
Folks,

I have just created a new plugin that will allow Venstar Insteon Thermostat users to monitor their daily usage of AC, Heating, and Fan usage... This is a basic plugin designed to extend Indigo...


Cool stuff. One question though. Is this a plugin or an attachment. I assume the later, by its structure, but you said plugin, so I wanted to make sure I wasn't missing something.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Mon Mar 29, 2010 11:01 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

bobeast wrote:
bschollnick2 wrote:
Folks,

I have just created a new plugin that will allow Venstar Insteon Thermostat users to monitor their daily usage of AC, Heating, and Fan usage... This is a basic plugin designed to extend Indigo...


Cool stuff. One question though. Is this a plugin or an attachment. I assume the later, by its structure, but you said plugin, so I wanted to make sure I wasn't missing something.


Good point.. It is an Attachment script... I was using Plugin as a generic term...

But I am working on a web server plugin that will be handling some other aspects of the Venstar data...

------
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 Mar 29, 2010 11:03 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

eme jota ce wrote:
Sounds interesting and informative.

As a non-programmer, I looked at the scripts (mostly the notes) and checked your blog and looked for a readme, but didn't see instructions about where to place the scripts (if it matters). More importantly, my review of the script did not reveal whether this version can handle multiple Venstars for multiple HVAC zones.

Can hold tight for your referenced blog update with additional information, just posting these comments as topics I'd like to see included.

Thanks,
mjc
[Edit] PS Also, seems that the scripts' notes reference "alarm" settings. Maybe that's just the proper programming terminology, but, as first, I thought I had downloaded a script for using Indigo as a home alarm system.


I'm not sure I understand the Alarm reference here.... But I do have a security script for Indigo...

The install instructions will be up tonight or tomorrow... I just haven't had a chance to flesh it out at this point... But place the script in /library/application support/perceptive automation/indigo 4/scripts/attachments, and then restart the Indigo server...

------
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 Mar 29, 2010 11:37 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Venstar Thermostat Plugin v1.00 released...

bschollnick2 wrote:
eme jota ce wrote:
Sounds interesting and informative.

... P:S Also, seems that the scripts' notes reference "alarm" settings. Maybe that's just the proper programming terminology, but, at first, I thought I had downloaded a script for using Indigo as a home alarm system.


I'm not sure I understand the Alarm reference here....


Thanks Bob, I was referencing the text notes within the two Venstar scripts you provided. The "thermo_reset_v100.scpt," for example, starts with the following text when viewed in AppleScript Editor:
-- Sample attachment script that illustrates how to listen to commands from security devices. Only the W800RF32 and CM15 interfaces receives these commands. 2003.05.15 (mmb). Only the most recent Version history is at the top, the rest of the Version history is now at the bottom of the file.
--
-- Change & Version History - Are at the bottom of the script...

-- To start using the security script, scroll down to "property Alarm_Matrix", and fill in the entries as needed.

Posted on
Mon Mar 29, 2010 11:39 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

eme jota ce wrote:
Sounds interesting and informative.

As a non-programmer, I looked at the scripts (mostly the notes) and checked your blog and looked for a readme, but didn't see instructions about where to place the scripts (if it matters). More importantly, my review of the script did not reveal whether this version can handle multiple Venstars for multiple HVAC zones.

Can hold tight for your referenced blog update with additional information, just posting these comments as topics I'd like to see included.

Thanks,
mjc
[Edit] PS Also, seems that the scripts' notes reference "alarm" settings. Maybe that's just the proper programming terminology, but, as first, I thought I had downloaded a script for using Indigo as a home alarm system.


The detailed documentation is here:

http://www.schollnick.net/wordpress/hom ... e-monitor/

And on second reading, I think I understand what happened, I used the security script as the template, and I may have not yet cleaned up all references to the Alarms... I'll take another look when I have the opportunity...

------
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 Mar 29, 2010 12:07 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Venstar Thermostat Plugin v1.00 released...

bschollnick2 wrote:
...
The detailed documentation is here:

http://www.schollnick.net/wordpress/hom ... e-monitor/
..


Wow! That was quick.

This will really extend the usefulness of Indigo, especially in when implement with Jay's and berkinet's contribution regarding device usage reports.

Thanks for sharing this with the community.

Posted on
Mon Mar 29, 2010 12:36 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Venstar Thermostat Plugin v1.00 released...

Installed per instructions and received the following error in the log after Indigo Server restart:
Code: Select all
  Error              script error: in file "thermo_tracking_100.scpt"
  Error              script error: «script» doesn’t understand the _convertHexStrToInteger message. (-1708)
  Error              error dispatching event to attachment script (-1753)


Since it took a day or so to work the usageReporter plugin from Jay and Berkinet into my system without errors, I'll just keep an eye on this for a few days, then report back if errors continue -- if that would be helpful. (Otherwise, I can just zip my mouth while the more knowledgeable members of the the forum discuss.)

Posted on
Mon Mar 29, 2010 12:42 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Venstar Thermostat Plugin v1.00 released...

eme jota ce wrote:
Installed per instructions and received the following error in the log after Indigo Server restart:
Code: Select all
  Error              script error: in file "thermo_tracking_100.scpt"
  Error              script error: «script» doesn’t understand the _convertHexStrToInteger message. (-1708)
  Error              error dispatching event to attachment script (-1753)


Since it took a day or so to work the usageReporter plugin from Jay and Berkinet into my system without errors, I'll just keep an eye on this for a few days, then report back if errors continue -- if that would be helpful. (Otherwise, I can just zip my mouth while the more knowledgeable members of the the forum discuss.)


I'm seeing the same errors.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Mon Mar 29, 2010 2:43 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

bobeast wrote:
eme jota ce wrote:
Installed per instructions and received the following error in the log after Indigo Server restart:
Code: Select all
  Error              script error: in file "thermo_tracking_100.scpt"
  Error              script error: «script» doesn’t understand the _convertHexStrToInteger message. (-1708)
  Error              error dispatching event to attachment script (-1753)


Since it took a day or so to work the usageReporter plugin from Jay and Berkinet into my system without errors, I'll just keep an eye on this for a few days, then report back if errors continue -- if that would be helpful. (Otherwise, I can just zip my mouth while the more knowledgeable members of the the forum discuss.)


I'm seeing the same errors.


That's very strange... That is the exact same version of the script that I am using here...
I'll verify to ensure, but I didn't make any changes to the script before release....

What version of the Thermostat adapter 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
Mon Mar 29, 2010 2:45 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Venstar Thermostat Plugin v1.00 released...

bschollnick2 wrote:
That's very strange... That is the exact same version of the script that I am using here...
I'll verify to ensure, but I didn't make any changes to the script before release....

What version of the Thermostat adapter do you have?


I have the V2 adapter. My copy of IndigoServer is running on Snow Leopard if that makes a difference.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Mon Mar 29, 2010 2:55 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Venstar Thermostat Plugin v1.00 released...

bobeast wrote:
bschollnick2 wrote:
That's very strange... That is the exact same version of the script that I am using here...
I'll verify to ensure, but I didn't make any changes to the script before release....

What version of the Thermostat adapter do you have?


I have the V2 adapter. My copy of IndigoServer is running on Snow Leopard if that makes a difference.


I believe I found the problem... Email me at benjamin AT schollnick DOT net and I'll send you an updated copy of the attachment...

I believe the core of the issue is that I forgot to include the hex decoder function, and it's working for anyone that uses the security script... Because that includes the hex decoder.... It appears that Applescript shares namespaces between scripts...

eme jota ce, same thing. Drop me a line, and I'll send the update to you as well.

- Ben

------
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 2 guests