www.homeseer.com    
 

Go Back   HomeSeer Message Board > Developer Support > Programming & Plug-in Development > Plug-In Development

Plug-In Development Discussions related to development new HomeSeer plug-ins.

Reply
 
Thread Tools Display Modes
  #1  
Old April 5th, 2012, 10:25 AM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
HS3 Development FAQ

This FAQ will summarize the changes in HS3 that affect developers of Plugins, scripts, web pages, etc.

Q: Will the plugin/scripting API change?
A: Yes, full details of the changes are not yet available, but a survey was sent out to get feedback from developers. Based on the results, we will finalize the API.

Q: Are there architecture changes in HS3 that affect the API?
A: Yes, the following are some of the major changes:

* Device status is gone, only device value is available. Value pairs are used to represent device status such as ON=1, Off=0, etc.
* Device control is done use the CAPI api. This API was introduced in HS2, but has been expanded. Old functions like ExecX10 have been removed.
* Plugins are now EXE's, rather than DLL's. This will help increase reliability and also make it easier to debug. Also, plugins can run on other PC's on the network or over the Internet.

Q: Is Linux supported?
A: Yes, Linux is supported using MONO. This allows .NET code to be run. Run your plugin under MOMA to see if it is using an incompatible API's. http://www.mono-project.com/MoMA

Q: Is VBScript supported?
A: Right now, No. Only vb.net, and later C# scripting is supported. VBScript is not supported on Linux.

Q: Is ASP support for web pages?
A: No, not classic ASP. This requires the VBScript engine which is not supported on Linux.

Q: Is ASP.NET supported?
A: Yes. This is fully supported on both Windows and Linux.

Q: Is there an alternate method to create web pages?
A: Yes. We have created classes that allow you to create robust HTML5 compatible web pages with full jquery support. We provide API's to a rich set of screen elements. No javascript or jquery experience is required.

Q: Will my scripts have to change?
A: If they are written in VBScript, then yes, they need to be converted to vb.net. If they are written in VB.NET then they will just need some minor modifications as the scripting API has changed.

Q: Will my vb.net scripts run under Linux?
A: Yes.

Q: I want my plugin and scripts to run under Linux, but I know nothing about Linux and I don't know how to install it. How can I test my code?
A: We will provide a virtual machine file that you can simply download and run. This will provide a complete test environment for you.
__________________


website | products | support | youtube
Reply With Quote
  #2  
Old July 18th, 2012, 06:57 AM
wetlip wetlip is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: netherlands
Posts: 311
Circles

is there any status update possible on HS3 development advances ?
__________________
wetlip

hs3 pro BuienRadarGps Plugin JillesSomfy Plugin cm15a proliphix Plugin visonic plugwise with two sticks , rfxcom rts485 aeon Labs Zwave HomePro ZCU201 serial Zwave, Domation Led Interface, Jilles PhilipsHue Plugin
Reply With Quote
  #3  
Old July 19th, 2012, 10:16 AM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
We are getting close to getting out the SDK for 3rd party plugin developers, that is the next milestone.

Quote:
Originally Posted by wetlip View Post
is there any status update possible on HS3 development advances ?
Reply With Quote
  #4  
Old December 12th, 2012, 04:04 PM
burkeden burkeden is offline
Seer
 
Join Date: May 2012
Location: MI
Posts: 27
Quote:
Originally Posted by rjh View Post
We are getting close to getting out the SDK for 3rd party plugin developers, that is the next milestone.
Is this available yet? Was hoping to play with it during my time off over the holidays.

-Denis Burke
Reply With Quote
  #5  
Old December 12th, 2012, 05:42 PM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
Yes, email developers@homeseer.com and we will get you access.
Reply With Quote
  #6  
Old April 26th, 2013, 08:09 PM
gerlin gerlin is offline
Seer Plus
 
Join Date: Feb 2006
Location: Reno, NV
Posts: 107
I think I am one of the very few that has many HS scripts in perl. I am optimistically hoping that perl will still be supported in HS3 since perl is a far more commonly used language on Linux than on Windows.

Can anyone say if perl is expected to be supported in HS3?

Thanks,

Lou
__________________
HSPro virtual under ESXi Win7-32 | SONOSCONTROLLER | UltraM1G | UltraLog | Script Connector | pjcNetwork | Skype Connector | UltraWeatherBug | AC-RF2 Processor | USB-UIRT Interface | Perl | VB.NET | Z-Wave: Schlage Locks, Trane Thermostats, Lights | Elk Mi Alarm | W800 USB Receiver | Sonos Audio |
Reply With Quote
  #7  
Old April 26th, 2013, 10:37 PM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
Perl will work on Windows, but not on Linux right now. I realize Linux supports perl but we are using a Windows scripting host to run the process. You can launch a perl script from HS but I am not sure how it can access the scripting API.
Reply With Quote
  #8  
Old April 26th, 2013, 10:44 PM
gerlin gerlin is offline
Seer Plus
 
Join Date: Feb 2006
Location: Reno, NV
Posts: 107
Thanks for the quick response, even if it was not the answer I was hoping for.

I think it is unfortunate since it is (at least in my opinion) a very easy scripting language that could replace VBScript as a pretty easy way to script HS. It has worked very well for me in HS2.

Thanks again,

Lou
Reply With Quote
  #9  
Old April 26th, 2013, 10:53 PM
gerlin gerlin is offline
Seer Plus
 
Join Date: Feb 2006
Location: Reno, NV
Posts: 107
One last question (for now), I was under the impression that HS3 was Linux only (though maybe I am wrong), is it going to run on Windows as well (and continue to support perl on the Windows version)?

Lou
Reply With Quote
  #10  
Old April 27th, 2013, 08:00 AM
reidfo's Avatar
reidfo reidfo is offline
Seer Master
 
Join Date: May 2006
Location: Near Galveston, TX
Posts: 1,342
Quote:
Originally Posted by gerlin View Post
One last question (for now), I was under the impression that HS3 was Linux only (though maybe I am wrong), is it going to run on Windows as well (and continue to support perl on the Windows version)?

Lou
HS3 will be Windows and Linux, so under Windows you can still run your perl scripts.
__________________
HS Pro 3.0 | Linux Ubuntu 16.04 x64 virtualized under Proxmox (KVM)
Hardware: Z-NET - W800 Serial - Digi PortServer TS/8 and TS/16 serial to Ethernet - Insteon PLM - RFXCOM - X10 Wireless
Plugins: HSTouch iOS and Android, RFXCOM, BlueIris, BLLock, BLDSC, BLRF, Insteon PLM (MNSandler), Device History, Ecobee, BLRing, Kodi, UltraWeatherWU3
Second home: Zee S2 with Z-Wave, CT101 Z-Wave Thermostat, Aeotec Z-Wave microswitches, HSM200 occupancy sensor, Ecolink Z-Wave door sensors, STI Driveway Monitor interfaced to Zee S2 GPIO pins.
Reply With Quote
  #11  
Old April 29th, 2013, 09:11 AM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
The problem is that the scripting in windows is hosted using Windows Scritping Host, and this exposes our API to the script engine. This is not available on Linux, but I will research and see if there is a way to interface to Perl or Python from our application.

Quote:
Originally Posted by gerlin View Post
Thanks for the quick response, even if it was not the answer I was hoping for.

I think it is unfortunate since it is (at least in my opinion) a very easy scripting language that could replace VBScript as a pretty easy way to script HS. It has worked very well for me in HS2.

Thanks again,

Lou
Reply With Quote
  #12  
Old May 3rd, 2013, 09:23 AM
manxam manxam is offline
Seer Deluxe
 
Join Date: Oct 2009
Location: Canada
Posts: 296
Hopefully this is doable. I couldn't imagine a Linux program that can't run python scripts...Perl would be cool too though.
Reply With Quote
  #13  
Old June 10th, 2013, 05:01 AM
kriz83 kriz83 is offline
Seer Deluxe
 
Join Date: Oct 2012
Location: Belgium
Posts: 447
Where can I find the HS3 plugin API documentation ?
Reply With Quote
  #14  
Old June 10th, 2013, 06:05 AM
mnsandler's Avatar
mnsandler mnsandler is offline
Insteon Overlord
 
Join Date: Apr 2005
Location: Virginia
Posts: 10,599
Quote:
Originally Posted by kriz83 View Post
Where can I find the HS3 plugin API documentation ?
https://homeseer.com/support/homeseer...DK/default.htm
__________________
Mark

HS3 Pro 3.0.0.368
Hardware: Insteon Serial PLM | Vista Alarm 20P with AD2USB | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
Plugins: Insteon 3.0.6.23 (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire | RFXCOM | NetCAM | MyQ | BLRadar | Jon00 Charting
Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory
Reply With Quote
  #15  
Old October 7th, 2013, 10:06 PM
bernieb bernieb is offline
Seer Deluxe
 
Join Date: Jan 2001
Location: Biddeford, ME 04005
Posts: 336
Any chance that we could get more information on the jquery feature?

Last edited by bernieb; October 7th, 2013 at 10:06 PM. Reason: spelling mistake
Reply With Quote
  #16  
Old October 8th, 2013, 01:10 PM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,643
What do you want to know? You can get lots of info at the jquery site at jquery.com. What we did is wrap the jquery functionality in .net classes so you can create dynamic web pages without any javascript coding. Basically, jquery allows for web pages that automatically update without page refreshes.

Quote:
Originally Posted by bernieb View Post
Any chance that we could get more information on the jquery feature?
Reply With Quote
  #17  
Old December 31st, 2016, 08:00 PM
mulu mulu is offline
Seer Deluxe
 
Join Date: Apr 2016
Location: CA
Posts: 338
Where Can I Get HomeSeerAPI?

I downloaded the HSPI_TEST sample plugin and also did go through the documentation. However, I can't find any place where to get the SDK, i.e. HomeSeerAPI, HSCF and Scheduler (for HSPI_TEST). Where can I get the SDK?
Reply With Quote
  #18  
Old January 1st, 2017, 06:05 AM
mrhappy mrhappy is offline
OverSeer
 
Join Date: Nov 2007
Location: W.Mids, UK
Posts: 7,314
Quote:
Originally Posted by mulu View Post
I downloaded the HSPI_TEST sample plugin and also did go through the documentation. However, I can't find any place where to get the SDK, i.e. HomeSeerAPI, HSCF and Scheduler (for HSPI_TEST). Where can I get the SDK?
The SDK is here - https://homeseer.com/support/homeseer...DK/default.htm
Reply With Quote
  #19  
Old January 1st, 2017, 09:44 AM
happnatious1's Avatar
happnatious1 happnatious1 is offline
Seer Master
 
Join Date: Mar 2004
Location: Southern Maryland
Posts: 1,297
Quote:
Originally Posted by mulu View Post
I downloaded the HSPI_TEST sample plugin and also did go through the documentation. However, I can't find any place where to get the SDK, i.e. HomeSeerAPI, HSCF and Scheduler (for HSPI_TEST). Where can I get the SDK?
Those 3 files are in your homeseer install directory and need to be referenced from within your project. If homeseer is on a different machine than your development machine I believe you can just copy them.
Reply With Quote
  #20  
Old January 1st, 2017, 10:05 PM
mulu mulu is offline
Seer Deluxe
 
Join Date: Apr 2016
Location: CA
Posts: 338
Quote:
Originally Posted by happnatious1 View Post
Those 3 files are in your homeseer install directory and need to be referenced from within your project. If homeseer is on a different machine than your development machine I believe you can just copy them.
Ah, I found them. I assumed I will have to download an SDK but they are already installed with HS3. Thanks!

As a side note, maybe this should be mentioned in the documentation which I did check before posting.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:42 PM.


Copyright HomeSeer Technologies, LLC