Unverified Commit 9e56e723 authored by Dobli's avatar Dobli Committed by GitHub
Browse files

Added note about EXTRA_JAVA_OPTS to readme

parent 351505fc
......@@ -183,8 +183,6 @@ sudo systemctl enable --now swarm-device@zwave_stick\\x20openhab.service
sudo systemctl disable --now swarm-device@zwave_stick\\x20openhab.service
```
## How it works
Following parts describe a little more in detail how the script works and how parts may be executed manually.
......@@ -356,4 +354,6 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="vvvv", ATTRS{idProduct}=="pppp", GROUP="dia
To use this new rule simply rerun the installation of the device scripts as explained above. After replugging the device it will now always be available by the name defined with `SYMLINK+=`, e.g. `/dev/my_serial`.
From now on the device can be linked manually already by creating a systemd entry manually using its device name. To make the script aware of the new device (and have an entry in the menu) simply extend the constant `USB_DEVICES` in the `building_manager.py` by a new entry using the device name as the value.
\ No newline at end of file
From now on the device can be linked manually already by creating a systemd entry manually using its device name. To make the script aware of the new device (and have an entry in the menu) simply extend the constant `USB_DEVICES` in the `building_manager.py` by a new entry using the device name as the value.
Also note openHAB manages the serial devices it can access using a whitelist (see here for details). SO when adding a new device extend this whitelist using the EXTRA_JAVA_OPTS entry of openHAB in the compose file (and also in the template to have it available on new installs).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment