Install Dependencies
Connect, Test & Configure PLM
Connect the PLM
- Plug the PLM into a USB port on your server/computer
Find the PLM Device
Look in /dev for your serial USB device
1 2 |
|
In my case it was ttyUSB0. If you unplug and re-connect the PLM it may show up as a different device, such as ttyUSB1 so make sure to check if things stop working after you reconnect it.
Test the PLM
To test the PLM, we’ll be using Insteon Terminal which you will get from GitHub.
Lets install the dependencies for the Insteon Terminal which we will use to test and ensure the connection between the PLM and your computer are working.
Install ant, default-jdk and librxtx-java
sudo apt-get install ant default-jdk librxtx-java
Add the user accessing the PLM device to the correct groups to allow permission If the user accessing the PLM is
openhab
use the following. You will need to check the current owner of the /dev/[yourdevice] file and the /run/lock folder and changedialout
andlock
below appropriately.
1 2 |
|
Reboot I’ve found that I have to reboot in order to connect to the model properly. This should not be the case but it is the simplest solution for now. It’s possible that there is a permissions issue, dependency loading issue or something along those lines that gets resolved by a reboot.
Clone the Insteon Terminal repo from GitHub
git clone https://github.com/pfrommerd/insteon-terminal.git
Copy the example config file and edit appropriately
1 2 3 4 5 6 7 |
|
./insteon-terminal
1 2 |
|
philip@cube:~/github/insteon-terminal$ ./insteon-terminal Insteon Terminal Connecting Connected Terminal ready!
1 2 |
|
philip@cube:~/github/insteon-terminal$ ./insteon-terminal Insteon Terminal Connecting gnu.io.NoSuchPortException Terminal ready! “`
Continue to troubleshoot why you cannot connect to your PLM modem device