<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Williammanda</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Williammanda"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Williammanda"/>
	<updated>2026-05-11T04:43:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15213</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15213"/>
		<updated>2008-08-10T01:49:32Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Adding Ruby Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
&#039;&#039;&#039;UPDATE&#039;&#039;&#039; I had to remove the ruby code from 141 &amp;amp; 161. The PLM wouldn&#039;t start due to errors from these two. 8/9/08 williammanda&lt;br /&gt;
&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command &#039;&#039;&#039;Kate /usr/pluto/pnp/88_InsteonPLM.sh&#039;&#039;&#039; missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on. &#039;&#039;&#039;UPDATE&#039;&#039;&#039; I didn&#039;t see any &amp;quot;COM PORT ON PC&amp;quot; field. You wil need to reload the router first, then you see the &amp;quot;COM PORT ON PC&amp;quot; field. 8/9/08 Williammanda&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15212</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15212"/>
		<updated>2008-08-10T01:49:08Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Adding Ruby Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
&#039;&#039;&#039;UPDATE&#039;&#039;&#039; I had to remove the ruby code for 141 &amp;amp; 161. The PLM wouldn&#039;t start due to errors from these two. 8/9/08 williammanda&lt;br /&gt;
&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command &#039;&#039;&#039;Kate /usr/pluto/pnp/88_InsteonPLM.sh&#039;&#039;&#039; missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on. &#039;&#039;&#039;UPDATE&#039;&#039;&#039; I didn&#039;t see any &amp;quot;COM PORT ON PC&amp;quot; field. You wil need to reload the router first, then you see the &amp;quot;COM PORT ON PC&amp;quot; field. 8/9/08 Williammanda&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15211</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15211"/>
		<updated>2008-08-10T00:16:28Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Setting up the Generic Serial Device */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command &#039;&#039;&#039;Kate /usr/pluto/pnp/88_InsteonPLM.sh&#039;&#039;&#039; missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on. &#039;&#039;&#039;UPDATE&#039;&#039;&#039; I didn&#039;t see any &amp;quot;COM PORT ON PC&amp;quot; field. You wil need to reload the router first, then you see the &amp;quot;COM PORT ON PC&amp;quot; field. 8/9/08 Williammanda&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15210</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15210"/>
		<updated>2008-08-10T00:11:16Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Setting up the Generic Serial Device */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command &#039;&#039;&#039;Kate /usr/pluto/pnp/88_InsteonPLM.sh&#039;&#039;&#039; missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on. &#039;&#039;&#039;UPDATE&#039;&#039;&#039; I didn&#039;t see any &amp;quot;COM PORT ON PC&amp;quot;&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15209</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15209"/>
		<updated>2008-08-10T00:07:52Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Making the Driver Plug &amp;amp; Play */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command &#039;&#039;&#039;Kate /usr/pluto/pnp/88_InsteonPLM.sh&#039;&#039;&#039; missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on.&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15208</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15208"/>
		<updated>2008-08-10T00:07:14Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Making the Driver Plug &amp;amp; Play */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command Kate /usr/pluto/pnp/88_InsteonPLM.sh missing &amp;quot;/&amp;quot; after pnp. Williammanda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on.&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15207</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=15207"/>
		<updated>2008-08-10T00:06:39Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* Making the Driver Plug &amp;amp; Play */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
[[Category:Power Line Control]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
 {| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver complete, and is in Release Candidate 1.  I&#039;m sure there are still a few bugs (although we&#039;ve ironed most of them out now). The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update.&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC).&lt;br /&gt;
&lt;br /&gt;
NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Goto [[LinuxMCE Admin Website]]--&amp;gt;Wizard--&amp;gt;Devices--&amp;gt;Interfaces&lt;br /&gt;
* Add device--&amp;gt;Add Manufacturer&lt;br /&gt;
* type &#039;Smarthome&#039; (and click Add)&lt;br /&gt;
*Click Close&lt;br /&gt;
&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:*Press F5 to refresh the page.&lt;br /&gt;
:*In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:*Under Device Category, select &#039;Lighting Interface &amp;lt;-- Interfaces&#039;.&lt;br /&gt;
:*Add device Template&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) &#039;&#039;&#039;UPDATE 8/9/08&#039;&#039;&#039; Use this format to execute the command Kate /usr/pluto/pnp/88_InsteonPLM.sh missing &amp;quot;/&amp;quot; after pnp.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on.&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Selecting_the_Right_UI&amp;diff=15206</id>
		<title>Selecting the Right UI</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Selecting_the_Right_UI&amp;diff=15206"/>
		<updated>2008-08-09T18:57:12Z</updated>

		<summary type="html">&lt;p&gt;Williammanda: /* UI2 with alpha blending */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
&lt;br /&gt;
==Selecting the Best User Interface (UI)==&lt;br /&gt;
&lt;br /&gt;
The LinuxMCE on-screen Orbiter User Interface (UI) was designed to be viewed on a basic television from 10&#039; away.  There are currently three versions of the UI, and selection depends on the type of video card you have. See more [[screenshots]] of the different UIs.&lt;br /&gt;
&lt;br /&gt;
The highest resolution user interface (UI2 with alpha blending) only works with nVidia cards in the 6xxx, 7xxx, or 8xxx series. Use [[Graphics Test]] to determine which UI your graphic card can support. &lt;br /&gt;
&lt;br /&gt;
===UI1===&lt;br /&gt;
[[Image:Orbiter.jpg|thumb|500px|left|UI1 or Basic UI]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot;/&amp;gt;&lt;br /&gt;
This is the basic UI. If you can load Kubuntu, this UI will work with nearly all graphics hardware, and it requires no special drivers. There are few special effects enabled in this UI. The menus are full screen; when you start media your media also becomes full screen (replacing the menu menu screen).&lt;br /&gt;
&lt;br /&gt;
If you need to do use the &#039;&#039;&#039;media menus&#039;&#039;&#039; while your media is playing, the media shrinks to a corner of the screen and the rest of the screen shows your media menu. If you need to return to the &#039;&#039;&#039;main menu&#039;&#039;&#039; to do something else (like adjust the lights), your media is hidden while the main menu appears is displayed.&lt;br /&gt;
&lt;br /&gt;
===UI2 medium===&lt;br /&gt;
&lt;br /&gt;
[[Image:MainMenuUI2M.jpg|thumb|500px|left|UI2 with medium settings (masking)]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a lightweight, OpenGL-based version of the newest UI.  This requires a video card that currently supports OpenGL and XDamage. This UI uses &#039;&#039;&#039;masks&#039;&#039;&#039; to overlay the media behind the menus.&lt;br /&gt;
&lt;br /&gt;
===UI2 with alpha blending===&lt;br /&gt;
&lt;br /&gt;
[[Image:MainMenuUI2B.jpg|thumb|500px|left|UI2 with alpha blending]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this UI, your media is first and foremost -- the media is always full-screen (it never shrinks and never disappears).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not watching any media, LinuxMCE downloads photos from flickr.com, which are presented in the  background (like a screensaver). When the main menu or media menu is displayed, it is blended into the background media image (which is known as alpha blending). This is true whether the screensaver images are being displayed or whether your media (like a video) is playing. This UI includes a 3D media browser, which shows the media files in your home on the sides of a rotating 3D cube.&lt;br /&gt;
&lt;br /&gt;
Few video card manufacturers have the necessary composite extensions in their Linux drivers to support these capabilities, however. At the moment the graphics cards have been confirmed to support the functions of UI2 are the nVidia 6xxx and 7xxx  and 8xxx series (with at least 128MB RAM).&lt;br /&gt;
&#039;&#039;&#039;Update 8/9/08&#039;&#039;&#039; 9000 series is also supported. Williammanda&lt;br /&gt;
&lt;br /&gt;
===Controlling the LinuxMCE UI===&lt;br /&gt;
There are several ways to manipulate the UI. Here are some examples.&lt;br /&gt;
&lt;br /&gt;
*[[Control LinuxMCE using an Infrared remote]]&lt;br /&gt;
*[[Control LinuxMCE with Gyro Remote]]&lt;br /&gt;
*Use the keyboard/mouse of a Media Director.&lt;/div&gt;</summary>
		<author><name>Williammanda</name></author>
	</entry>
</feed>