Any developer with knowledge of Java can create Hobson Hub plugins to add new features and device support.
Maven Archetype
The easiest way to start creating a Hobson plugin is to use the Maven archetype. Running the following command will give you a skeleton project directory that will compile and create a plugin bundle that can successfully be installed on a Hobson Hub.
mvn archetype:generate -DarchetypeGroupId=com.whizzosoftware.hobson -DarchetypeArtifactId=hobson-hub-plugin-archetype -DarchetypeVersion=<archetype_version> -DarchetypeRepository=http://dl.bintray.com/whizzosoftware/maven
In order to determine what to use for <archetype_version>
, go to the Hobson web console's Plugins tab and click the "Show all plugins" checkbox. Look for the plugin named "Hobson Hub Core" and note what's in the version column (e.g. 0.1.3
). This should be used for the archetype version in the command above.
Plugin Naming Convention
The recommended naming convention for plugins is the form:
hobson-hub-<manufacturer>-<product>
for example:
hobson-hub-philips-hue
or hobson-hub-lutron-radiora