I am migrating my OpenHAB installation from 2.4.0 where the legacy networkhealth binding is used to 3.0.1. network binding.
I use the binding to monitor device connectivity and to detect human presence.
I was using the networkhealth binding that has since been obsoleted and it worked great, albeit the iPhone could not be detected when in deep sleep mode. That was ok with me for my application.
I have configured the new network binding as follows:
network.cfg
binding.network:allowSystemPings=true
binding.network:allowDHCPlisten=false
binding.network:arpPingToolPath=arping
binding.network:cacheDeviceStateTimeInMS=2000
.things
Thing network:pingdevice:IP51 [ hostname="10.0.0.51", retry=10, timeout=2000, refreshInterval=10000 ]
Thing network:pingdevice:IP20 [ hostname="10.0.0.20", retry=10, timeout=2000, refreshInterval=10000 ]
.items
Switch IP_Lamp_LivingRm "Lamp-LivingRm [%s]" {channel="network:pingdevice:IP51:online"}
Switch IP_Robert_Cell "IP_Robert_Cell [%s]" (gMobiles) {channel="network:pingdevice:IP20:online"}
IP51 works fine just as expected
IP20 does not work because it is my iPhone. I have tested OH3 while my iPhone is playing a YouTube video, ie. fully alive and breathing. However, IP20 is still not detected.
I have read about creating a
\runtime\\etc\org.openHAB.bindings.network
file and providing 1 line entry
allowSystemPings=false
I don’t think this file is needed, but out of deseparation I tried it anyway.
I will be happy to detect the iPhone when it is awake. It would be a bonus AND desirable to be able to detect it while in deep sleep mode, or be able to wake it out of deep sleep mode so I can detect it.
Any help will be appreciated. Thanks in advance.