I am an absolute Newbie - having only having installed OpenHab yesterday - v2.4.0 on a Raspbery Pi 3 using the Openhabian image. Much joy with the bindings I’ve tried except for Network.
Reading the forums I realise there are possible problems with 2.4. I don’t know if my observations on a clean install from the openhabian image will help debug the problem.
I have added ‘log:set DEBUG org.openhab.binding.network’ via the Karaf console. Here’s what I am seeing:
arping is present and correct on the system, it is callable from the linux shell and also if I manually add a network entry from the paperui the entry is added correctly.
On PaperUI/Configuration/Bindings I have Network Binding installed but there is permanently an edit ‘pencil’ icon on the RHS of the entry.
If I save or change the network binding configuration entry via paperui then I get a notification in the log
2018-12-30 13:31:43.736 [DEBUG] [org.openhab.binding.network ] - ServiceEvent MODIFIED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={cacheDeviceStateTimeInMS=2000, service.id=122, allowSystemPings=true, service.bundleid=198, service.scope=bundle, allowDHCPlisten=true, arpPingToolPath=arping, service.pid=binding.network, component.name=org.openhab.binding.network.internal.NetworkHandlerFactory, component.id=12} - org.openhab.binding.network
I have no network files (neither network.config nor network.cfg) in /var/lib/openhab2/config/org/openhab but have the following network.config in /var/org/openhab2/config/org/eclipse/smarthome
primaryAddress=“192.168.1.66/24”
service.pid=“org.eclipse.smarthome.network”
useIPv6=B"true"
useOnlyOneAddress=B"false"
The modify date on that file is last boot time.
Checking recently modified files I find /var/lib/openhab2/config/binding/network.binding is the file being updated when I save the binding configuration, it has values:
allowDHCPlisten=B"true"
allowSystemPings=B"true"
arpPingToolPath=“arping”
cacheDeviceStateTimeInMS=“2000”
service.pid=“binding.network”
When I do a scan from inbox using network binding I see no log entries.
I can see no file ‘network.cfg’ anywhere under /var subdirs
Hope this helps.