openHAB console

 

HowTo: Access the command-line console

openhab-cli console

-->  Default user name is 'openhab' / password 'habopen'

 

HowTo: Restart a binding 

1. Login to openHAB console (see above)

2. Find the id of the binding you want to restart (Example: chromecast)

bundle:list -s |grep chromecast

Result:

207 │ Active   │  80 │ 2.3.0                  │ org.openhab.binding.chromecast

4. Restart binding

bundle:restart ID
bundle:restart 207

 

HowTo: Update just a single binding to its latest snapshot version

1. Locate binding jar file URL

Base URL:
https://openhab.jfrog.io/openhab/online-repo-snapshot/%VERSION%/org/openhab/binding/

Example URL:
https://openhab.jfrog.io/openhab/online-repo-snapshot/2.4/org/openhab/binding/org.openhab.binding.chromecast/2.4.0-SNAPSHOT/org.openhab.binding.chromecast-2.4.0-SNAPSHOT.jar

2. In openHAB console find the id of the binding you want to replace (Example: chromecast)

bundle:list -s |grep chromecast

Result:

207 │ Active   │  80 │ 2.3.0                  │ org.openhab.binding.chromecast

3. Update binding

bundle:update ID URL
bundle:update 207 https://openhab.jfrog.io/openhab/online-repo-snapshot/...

 

HowTo: Force the database to forget about 'Thing' configuration (e.g. mqtt)

config:delete org.openhab.mqtt 
-->  useful if you removed options from your configuration file, which are still saved to the DB