I've had several people ask the question as to how or even if it is possible to integrate existing customizations into SARAH and the simple answer is, 'Yes, it is.' It's a actually a fairly simple task. SARAH has several files for adding your existing code. You can find them under '/usr/local/sarah/www/custom' on the Raspberry Pi. Just place your rules into the 'custom.rules' files, your items in the 'custom.items' file and so on.
If you want to put your code into multiple files you can create more files using the pattern: 'custom*.<file suffix>', e.g. 'custom-my-new-rules.rules' or 'custom-my-things.things'.
After, you have added your code to the appropriate files, goto the SARAH Command Center (SCC - http://sarah:8181/homewiz on your home network), load your home template and save it to generate and copy all the files to openHAB. All your code should now be active and maintained by SARAH. Next, install any particular bindings and configurations in opneHAB and add your things using the PaperUI.
If you have a lot of Things (devices) that you've added previously, there is a shortcut to copy all the data over.
- Login to your old RPi and type this in at a command prompt 'sudo service openhab2 stop'.
- Login to SARAH and type in the same command.
- Using a utility like filezilla, login to your old RPi, go to '/srv/openhab2-userdata' and copy the entire directory to '/srv/openhab2-userdata' on SARAH.
- Login to SARAH and type this in at a command prompt 'sudo service openhab2 start'.
Lastly, copy over any custom scripts or other files you may created like python scripts and the like. You should now be able to use SARAH to run your old setup.