|
|
# 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.
|
|
|
|
|
|
1. Install Eclipse environment following https://www.openhab.org/docs/developer/ide/eclipse.html up to step 6 (Closing eclipse, and moving the git directory)
|
|
|
2. Clone the addons repository at the commit `2b7415c3b8`:
|
|
|
```bash
|
|
|
git clnoe -n https://github.com/openhab/openhab2-addons
|
|
|
git checkout 2b7415c3b8
|
|
|
```
|
|
|
3. 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/`:
|
|
|
```bash
|
|
|
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
|
|
|
```
|
|
|
4. 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.
|
|
|
5. Rerun the run configuration and check if openHAB is starting well, and that things from the OpenLicht binding can be created.
|
|
|
6. 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.
|
|
|
7. Add new item and rule definitions (or use PaperUI exclusively) |