... | @@ -3,18 +3,37 @@ |
... | @@ -3,18 +3,37 @@ |
|
**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.
|
|
**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)
|
|
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`:
|
|
2. Clone the addons repository at the commit `2b7415c3b8`
|
|
```bash
|
|
```bash
|
|
git clone -n https://github.com/openhab/openhab2-addons
|
|
git clone -n https://github.com/openhab/openhab2-addons
|
|
git checkout 2b7415c3b8
|
|
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/`:
|
|
3. Clone (or only checkout if already existing) the distro repository at the commit `0a3cb33`
|
|
|
|
```bash
|
|
|
|
git clone -n https://github.com/openhab/openhab-distro.git
|
|
|
|
git checkout 0a3cb33
|
|
|
|
```
|
|
|
|
4. 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
|
|
```bash
|
|
git clone git@git-st.inf.tu-dresden.de:OpenLicht/org.openhab.binding.openlicht.git
|
|
git clone git@git-st.inf.tu-dresden.de:OpenLicht/org.openhab.binding.openlicht.git
|
|
# or using https
|
|
# or using https
|
|
git clone https://git-st.inf.tu-dresden.de/OpenLicht/org.openhab.binding.openlicht.git
|
|
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.
|
|
The directory structure should now look like this:
|
|
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.
|
|
```bash
|
|
7. Add new item and rule definitions (or use PaperUI exclusively) |
|
├── 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
|
|
|
|
```
|
|
|
|
|
|
|
|
5. 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.
|
|
|
|
6. Rerun the run configuration and check if openHAB is starting well, and that things from the OpenLicht binding can be created.
|
|
|
|
7. 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.
|
|
|
|
8. Add new item and rule definitions (or use PaperUI exclusively) |