We are now ready to test the new profile. When running the OpenHAB runtime from Eclipse IDE, the configuration files needs to be located in the folder
c:\Documents and Settings\Administrator\OpenHAB\distribution\openhabhome\configurations
First of all, change the openhab_default.cfg file to set the COM port for the enOcean binding
################################# EnOcean Binding #####################################
#
# EnOcean USB adapter serial port
#enocean:serialPort=COM3
aleoncean:port=COM3
Then, let's create a file "enocean.sitemap" in the "sitemaps" folder
sitemap demo label="Main Menu"
{
Frame {
Group item=gSwitches label="Inputs"
}
}
Finally, let's create the file "enocean.items" in the "items" folder
Group All
Group gSwitches (All)
Switch Switch3 "Switch3" (gSwitches) {aleoncean=" LOCALID=01:8E:39:72,REMOTEID=01:85:3A:3A,TYPE=RD_D2-01-00,PARAMETER=SWITCH_3"}
Switch Switch4 "Switch4" (gSwitches) {aleoncean=" LOCALID=01:8E:39:72,REMOTEID=01:85:3A:3A,TYPE=RD_D2-01-00,PARAMETER=SWITCH_4"}
Switch Switch5 "Switch5" (gSwitches) {aleoncean=" LOCALID=01:8E:39:72,REMOTEID=01:85:3A:3A,TYPE=RD_D2-01-00,PARAMETER=SWITCH_5"}
You should replace the content of the LOCALID field with the enOcean ID you can read on your USB300 dongle and REMOTEID with the enOcean ID of the transceiver connected to your Raspberry Pi board
Select "Run" -> "OpenHAB runtime" and wait about a minute to let Eclipse to build project, run initialization routines and make everything up and running.
Now type he following URL in your browse
http://localhost:8080/openhab.app?sitemap=enocean#
If everything has run as expected, you should see the a screen like this one
From here you should be able send out commands to the enOcean receiver connected to the Raspberry Pi board...
I will explain in the next posts the changes to the EOLink library to handle commands and send out status changes that complies with the new profile...