Setup for Eclipse
Note: The openHAB project is restructuring its build system, but was not finished as of writing this guide. Thus, the old build system is used here.
- Install Eclipse environment following https://www.openhab.org/docs/developer/ide/eclipse.html up to step 6 (Closing eclipse, and moving the git directory)
- Clone the addons repository at the commit
2b7415c3b8
git clone -n https://github.com/openhab/openhab2-addons
git checkout 2b7415c3b8
- Clone (or only checkout if already existing) the distro repository at the commit
0a3cb33
git clone -n https://github.com/openhab/openhab-distro.git
git checkout 0a3cb33
- Clone the openlicht binding repository, such that it is on the same directory as all other bindings, i.e., in
$OPENHAB_ROOT/git/openhab2-addons/addons/binding/
:
git clone git@git-st.inf.tu-dresden.de:OpenLicht/org.openhab.binding.openlicht.git
# or using https
git clone https://git-st.inf.tu-dresden.de/OpenLicht/org.openhab.binding.openlicht.git
The directory structure should now look like this:
├── eclipse
├── git
│ ├── openhab2-addons # at 2b7415c3b8
│ │ ├── addons
│ │ │ ├── binding
│ │ │ │ ├── org.eclipse.smarthome.binding.mqtt # ... and other bindings
│ │ │ │ ├── org.openhab.binding.openlicht # at HEAD
│ ├── openhab-distro # at 0a3cb33
├── ws
- Launch openHAB using the given launch configuration. This will create a run configuration. Stop the running instance, and edit the run configuration adding the OpenLicht binding to the run configuration.
- Rerun the run configuration and check if openHAB is starting well, and that things from the OpenLicht binding can be created.
- Cleanup the distro directory, i.e., remove all demo artefacts (items, rules, transformations, things). They will polluted the logs and don't do anything meaningful.
- Add new item and rule definitions (or use PaperUI exclusively)