Not succeed yet!
here is the errors that I see in log files:
2020-02-08 13:48:03.182 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-bacnet'
2020-02-08 13:48:03.293 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-02-08 13:48:03.662 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=364, bundle=218/file:/C:/OH2/addons/org.openhab.binding.bacnet.jar]: Unexpected problem updating configuration org.openhab.bacnet
java.lang.IllegalArgumentException: Either withBroadcast or withSubnet must be called.
at com.serotonin.bacnet4j.npdu.ip.IpNetworkBuilder.build(IpNetworkBuilder.java:129) ~[?:?]
at org.openhab.binding.bacnet.internal.BacNetBinding.updated(BacNetBinding.java:215) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[bundleFile:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [bundleFile:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1118) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1074) [bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [bundleFile:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
2020-02-08 13:49:01.241 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-bacnet'
what I had done is:
1- download binding from here : https://github.com/openhab/org.openhab.binding.bacnet
2- change the downloaded file extention from .zip to .jar and file name to org.openhab.binding.bacnet.jar
3- copying the file org.openhab.binding.bacnet.jar to OH2\addons
4 - creating bacnet.cfg file in OH2\conf\services
5- bacnet.cfg file details is :
############################### Bacnet Binding################ #######################################
#Refresh interval in milliseconds (optional, defaults to 60000ms)
bacnet:refresh=6000
#Set the bacnet network address
bacnet:hostname=192.168.1.123
6- creating bacnet.items file in items folder like this :
Switch sw1 "Reflectors West Center" <reflector> (Reflector) {bacnet="device=850,type=binaryOutput,id=1"}
7 - in openhab console I entered this command : feature:install openhab-runtime-compat1x
Note: Java is updated to latest version : 8u241