Page 1 of 17

Plugwise Homeseer Plugin

Posted: Mon Dec 08, 2008 1:05 am
by Rene
I have started to work on a Homeseer plugin for Plugwise. I know Paul was supposed to write this one. However, I couln't stand the temptation. I never wrote a Homeseer plugin neither did I program before in Visual Basic. But after 2 hours I am progressing quite wel. Hope to present you soon with the results, but it will take a couple of days at least cause I have other things to do as well.

Rene.

Plugwise Homeseer Plugin

Posted: Mon Dec 08, 2008 1:08 am
by Bwired
The more the better!
Based on the source software or based on the findings of Maarten.

Plugwise Homeseer Plugin

Posted: Mon Dec 08, 2008 1:11 am
by Noel
GREAT :-)
The more the merrier!

Plugwise Homeseer Plugin

Posted: Mon Dec 08, 2008 1:13 am
by Rene
In first instance based on the source software. When all information is available to address the circles directly, I will use that method. What I am still missing in the information from Maarten is how to detect which circles are available, cause you need to address a specific circle using its MAC address to retrieve the required data from it (maybe I overlooked).

Rene.

Plugwise Homeseer Plugin

Posted: Mon Dec 08, 2008 1:19 am
by TANE
cool
can't wait to see this almost after 1 year waiting

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 4:51 pm
by Rene
The plugin is working as far as to retrieve the state and power usage and display it within Homeseer. However, I am a bit struggling how to present the information. When I present all information (state, current and total usage) in one homeseer device, you cannot have triggers based on individual values, right? So this would mean each appliance would have 3 homeseer devices, one to represent the state, one to represent the current usage and one to represent the total usage. What is the right approach?

Things I still have to do:
- Make everything configurable (XML URL is now hard coded)
- Store statistics in database
- Buttons to switch devices on or off

Rene.

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 9:55 pm
by Ruud
Rene,

when do you release a Beta version of the plugin?

gr Ruud

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 9:59 pm
by Rene
I hope to release the first beta at the end of the week or in the weekend.

Rene.

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 11:04 pm
by TANE
Rene,
good News.
If you need any beta tester you know to find me....:)

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 11:32 pm
by Ruud
Rene

Count me in to.

gr ruud

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 11:38 pm
by Noel
Rene,
If you need an alpha tester (thats before beta testing), than please let me know [-)

Plugwise Homeseer Plugin

Posted: Wed Dec 10, 2008 11:40 pm
by Rene
As soon as I release anything, you all can download it from somewhere;-)


Rene.

Plugwise Homeseer Plugin

Posted: Thu Dec 11, 2008 12:03 am
by Mdamen
Rene,

There is no such thing as plug detection as far as I know...
In the source you also need to enter/register your plug using the 4 digit code. The 5 digit codes are basically the last 5 digits of the mac address. The first digits are always the same, just the last 5 are different with every plug.
These mac addresses are stored by the source in it's internal database, hence you do not need to re-enter it all the time.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by rklootwijk</i>
<br />In first instance based on the source software. When all information is available to address the circles directly, I will use that method. What I am still missing in the information from Maarten is how to detect which circles are available, cause you need to address a specific circle using its MAC address to retrieve the required data from it (maybe I overlooked).

Rene.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

--
Maarten Damen

www.maartendamen.com

Plugwise Homeseer Plugin

Posted: Thu Dec 11, 2008 12:11 am
by Rene
I thought I read somewhere Plugwise recommends strongly to register your plugs for security reasons but that it is not mandatory. I did not have to register my plugs (basic + extension), because they were automatically filled in (probably due to the Internet registration process). The advantage of developing using the Source is that my development is in parallel with my 'production' use of Plugwise. As soon as I start developing directly to the USB stick, I will have to claim the USB stick an d therefore lose my 'production'. Because I never programmed in Visual Basic, .Net and Homeseer, let me first try to get a working plugin using the source and we will see how go from there (maybe Plugwise will sponsor development with an additional USB stick and some plugs;-) )


Rene.

Plugwise Homeseer Plugin

Posted: Sat Dec 13, 2008 1:58 am
by Rene
The first beta version is available on http://house.klootwijk.org/downloads/hspi_Plugwise.zip
Try it at your own risk:

How to install:
1. Unzip the zip file
2. Copy the database file data/Plugwise/plugwise.mdb to <your homeseer dir>/data/Plugwsie/plugwise.mdb
3. Copy the images from html/images/hspi_Plugwise to <your homeseer dir>/html/images/hspi_Plugwise
4. Copy hspi_Plugwise.dll to your homeseer dir
5. Copy the statistics.xml and switch.html file to <your plugwise dir>/html, e.g. c:\program files\plugwise\plugwise source\www
6. Restart homeseer
7. Enable the plugin
8. Configure the plugin: You have to specify the host name or ip address and the port number of the server running the Plugwise web server (default: localhost, 8080). The logging level is default set on information, setting it to debug will generate lots of logging! The default refresh interval is set to 20 seconds.

Features:
- Your Plugwise appliances will be automatically detected and created in Homeseer
- The device status is set to the status of the Plugwise appliance to be used in events
- The device value is set to the power usage of the appliance to be used in events


What does not work yet:
- Changing the refresh interval without restarting homeseer
- Collection of statistics
- And maybe a lot more
- When the device is switched on or off using the buttons in the status screen, it will take upon the next refresh interval till the status is updated on screen as well as for using events.

Have fun!

Rene.