Difference between revisions of "Insteon - Setting Up PLM Template"
From LinuxMCE
Line 1: | Line 1: | ||
− | |||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[:Category:Tutorials]] | [[:Category:Tutorials]] | ||
Line 21: | Line 20: | ||
::* select the LAST option: | ::* select the LAST option: | ||
− | <nowiki>It's a simple, generic serial device controlled by RS232, Ethernet or USB, which you'll control with Pluto'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</nowiki> | + | <nowiki>"It's a simple, generic serial device controlled by RS232, Ethernet or USB, which you'll control with Pluto'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"</nowiki> |
::* Type in 'Insteon PLM' in the name or model#. | ::* Type in 'Insteon PLM' in the name or model#. | ||
Line 79: | Line 78: | ||
::* Scroll down to the bottom of the popup window and click Save | ::* Scroll down to the bottom of the popup window and click Save | ||
::* Click Close | ::* Click Close | ||
+ | ::* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID. | ||
+ | ::* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh) | ||
+ | <pre> | ||
+ | #!/bin/bash | ||
+ | |||
+ | echo "Insteon Powerline Modem Detection Script queue $2" | ||
+ | /usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t "\02\60" -i 1 -s "\03\05" | ||
+ | if [[ "$?" -ne 0 ]]; then | ||
+ | echo "It's not an Insteon Powerline Modem" | ||
+ | /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 0 | ||
+ | else | ||
+ | echo "It is an Insteon Powerline Modem" | ||
+ | /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 1901 | ||
+ | fi | ||
+ | </pre> | ||
+ | ::* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable) |
Revision as of 01:15, 6 January 2008
- Log into the webadmin
- select Interfaces(under Devices)
- click Add device (loads Pick Device Template popup)
- with the Pick Device Template Popup:
- click Add Manufacturer (loads Add Manufacturer popup)
- with the Add Manufacturer popup:
- type 'Smarthome' and click Add
- Click Close
- with the Add Manufacturer popup:
- press F5 to refresh the page.
- In the Manufacturer field, select 'Smarthome'.
- Under Device Category, select 'Lighting Interface < Interfaces'.
- Click Add device Template (popup changes to Add model)
- select the LAST option:
"It's a simple, generic serial device controlled by RS232, Ethernet or USB, which you'll control with Pluto'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"
- Type in 'Insteon PLM' in the name or model#.
- Click Add
- Close the Add device Template window.
- In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)
- In the Device Template field, select 'Insteon PLM'
- click 'Pick Device Template' (loads Edit Device Template Popup)
- NOTE the Template Number! write this down. (it will be needed for Plug N Play)
- Make sure 'Implements DCE' is checked (should be)
- In the Comm Method, select RS232
- Click 'Edit Ruby Codes' ( loads Edit Ruby Codes Popup)
- In the field to the LEFT of 'Create new group', type in 'Insteon PLM'
- click 'Create new group'
- If the 'Uses Group/Codeset' does not change to 'Insteon PLM', repeat the previous 2 steps again.
- Once the 'Uses Group/Codeset' says 'Insteon PLM' Check 'Discoverable Interfaces'
- Check 'Ruby Insternal Commands'
- click Update
- In the #756 Report Child Devices field (the big one) copy and paste this code:
- In the #776 Reset field, copy and paste this code:
- In the #760 Send Command to Child field, copy and paste this code:
- In the #788 StatusReport field, copy and paste this code:
- In the #373 Private Method Listing field, copy and paste this code:
- In the #351 Process IDLE field, copy and paste this code:
- In the #350 Process Incoming Data field, copy and paste this code:
- In the #384 Process Receive Command for Child field, copy and paste this code:
- In the #356 Process Release, leave it blank. (no code for now)
- Click Update
- Click Close
- Press F5 for refresh the 'Edit Device Template' popup
- In the 'Device data' section, in 'Add a New Parameter' select 'COM Port on PC' and click Add.
- in the Comments Field, type 'COM Port'
- in the Default Value field, type '/dev/ttyS0'
- check the 'Required' and 'Allowed to Modify' boxes
- In the 'Device data' section, in 'Add a New Parameter' select 'COM Port BaudRate' and click Add.
- in the Comments Field, type 'Baud Rate'
- in the Default Value field, type '38400'
- check the 'Required' and 'Use Master Device List Defaults' boxes
- In the 'Device data' section, in 'Add a New Parameter' select 'Only One Per PC' and click Add.
- in the Comments Field, type 'Only One Per PC'
- in the Default Value field, type '1'
- In the 'Device data' section, in 'Add a New Parameter' select 'Auto-assign to parents room' and click Add.
- in the Comments Field, type 'Assign to Parents Room'
- in the Default Value field, type '1'
- Scroll down to the 'Plug & Play' Section
- Enter These values:
- From = '0', To = '0'
- Vendor Model ID = '2412S' PNP protocol = 'Proprietary'
- Serial Number = 'Insteon PLM' Parms is blank
- PNP detection script is '88_InsteonPLM.sh'
- Comment is 'Insteon PLM'
- Scroll down to the bottom of the popup window and click Save
- Click Close
- Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.
- add this script file to /usr/pluto/pnp (88_InsteonPLM.sh)
#!/bin/bash echo "Insteon Powerline Modem Detection Script queue $2" /usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t "\02\60" -i 1 -s "\03\05" if [[ "$?" -ne 0 ]]; then echo "It's not an Insteon Powerline Modem" /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 0 else echo "It is an Insteon Powerline Modem" /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 1901 fi
- chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)