I’m running Openhab 2.5.10 with Network binding 2.5.10 on a RPi3b with Raspbian Buster. I want to use the Network binding for precense detection, but I can’t get arping to work nor can I get the port forwarding commands to work in order to use DHCP listening, it looks like this in PaperUI:
This is where I think I might have the problem. Should I type the full path to apring “/usr/sbin/arping” or is what I’ve stated enough? I’ve tried adding the full path, but I’m not sure about the syntax (quotes or not etc.). Also, I’m not sure what the documentation is referring to when it says PATH environmet variable “arping and cannot be found in the PATH environment variable”. Should I change something there?
When it comes to the port forwarding for DHCP listening I get stuck when trying to run the commands using iptables. I just get the below error
iptables/1.8.2 Failed to initialize nft: Protocol not supported
I’ve googled it and it seems like something has changed in Linux Buster and it uses the nftables framework, but it’s above my understanding what i means and even less what I can do about it. So if someone could help me out here it would be much appreciated
Thanks for your replys Wolfgang. Regarding the aprping I changed the path, restarted openhab, but still no luck. The thing properties still states “arp_state Disabled”. Is there anything else I could try?
Now I got the dhcp listening to work. I gave openhab permissions to bind to lower ports.
Now the arping issue is still left to solve. It’s mainly due to my wife’s iphone that goes to deep sleep and can’t be detected. If arping is hard to get working is there another way of detecting the iphone?
Now everything works. I think the arping has worked the whole time, but shows disabled in Paper UI. I started TRACE logging on the Network binding and found that it was doing Arpings (and didn’t when I changed the config).