As my first groovy and ST experience I have created a SmartApp that connects to a Domoticz server and will define some of the Domoticz connected devices into ST as Switches and Blinds. Status changes on these devices (using native remotes or something similar) will be routed back into ST using REST endpoint.
The first setup is with a SmartApp called Domoticz Server and two device types domoticzOnOff and domoticzBlinds. I am running Domoticz on a Raspberry pi with an RFXCOM device attached. This way you are able to define all kinds of legacy devices like Somfy, X10, CoCo and all ather stuff that is supported by this RF device (rfxcom.com) and integrate them into ST without individual ST device integration for all those protocols. You now can do things like open a blind when a door opens, close at sunset etc…
For feedback of status changes outside of ST you need to add notifications to Domoticz and enable oAuth.
Feedback and suggestions very much appreciated. Files are in public github, go to the Wiki for the link.
Made a start with the how-to of the setup in Wiki : http://thingsthataresmart.wiki/index.php?title=Domoticz_Server