For those interested in adding commands to the Harmony Ultimate remote using Flirc and XBMC, there is a very simple way to do that without having to fiddle with :
- installing the old generic Samsung/Panasonic TV generic profiles to emulate the Flirc device
- using the command learning feature of the Harmony remote
- manually editing XML keyboard layout files
Just add a device using the Flirc Harmony profile in the Harmony app, so you don't have to manually assign all the keys to buttons using the Flirc GUI
In case some key/button assignments are missing, make the necessary adjustments using the Flirc GUI. For example, the M key (OSD menu) cannot be mapped to a button in the Harmony app. What i did was i assigned the DVR button on my remote to the AudioNextLanguage command in the Harmony app. Then, i overrode that assignment by associating the DVR button to the M key using the Flirc GUI. The thing is, you have to first assign commands to buttons in the Harmony app before those buttons become available in the Flirc GUI.
Going from that, i was able to assign the wake and suspend commands to buttons on my Harmony remote and add those commands to my "Use XBMC" activity. Now my PC goes to sleep when pressing the OFF button and wakes up when pressing the XBMC activity button.
More on that here :