I’ve been trying to figure this out for a while. My phone is connected through the network binding. But when I turn off wifi on my phone, Openhab still makes a brief connection every minute.
Things
Thing network:pingdevice:zPhone "zPhone" [hostname="192.168.1.111", retry=5, timeout=57000, refresh=11000]
Items
Switch zPhoneOnline "Z Phone" <icon_presence> ( gPresenceZ ) { channel="network:pingdevice:zPhone:online" }
Logs
2020-06-07 11:01:15.010 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:01:15.024 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:01:15.044 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:01:15.067 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:01:15.082 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:01:15.099 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:01:59.581 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:01:59.598 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:01:59.614 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:01:59.624 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:01:59.644 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:01:59.666 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:02:15.020 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:02:15.036 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:02:15.055 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:02:15.070 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:02:15.087 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:02:15.106 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:02:59.590 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:02:59.606 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:02:59.628 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:02:59.631 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:02:59.652 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:02:59.669 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:03:15.052 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:03:15.070 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:03:15.091 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:03:15.099 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:03:15.118 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:03:15.142 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:03:59.615 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:03:59.630 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:03:59.654 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:03:59.660 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:03:59.678 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:03:59.696 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
2020-06-07 11:04:15.064 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command ON
2020-06-07 11:04:15.083 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become ON
2020-06-07 11:04:15.107 [vent.ItemStateChangedEvent] - zPhoneOnline changed from OFF to ON
2020-06-07 11:04:15.116 [ome.event.ItemCommandEvent] - Item 'zPhoneOnline' received command OFF
2020-06-07 11:04:15.132 [nt.ItemStatePredictedEvent] - zPhoneOnline predicted to become OFF
2020-06-07 11:04:15.148 [vent.ItemStateChangedEvent] - zPhoneOnline changed from ON to OFF
I checked the logs during a time that I was not at home and it showed the same thing. I’ll explain right now, the odd times for refresh and timeout were an experiment to get it to happen something other than once a minute but it didn’t change anything.