Hi. My My OpenHab version is still 2.5 (I’m preparing to migrate my huge configuration to v3 - in free time rewriting UI elements to config files) and I have problems with presence stability for part of my network devices
.
I didn’t noticed them before as I was not using roles triggered by “Presence*” items. Now I can see, that my “Presence*” items are constantly changeing status (flapping) form ON to OFF and back to ON:
2022-07-17 11:34:49.112 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from ON to OFF
2022-07-17 11:35:49.125 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from OFF to ON
2022-07-17 11:35:49.298 [vent.ItemStateChangedEvent] - PresenceHomePVSolarEdge_Wifi changed from ON to OFF
2022-07-17 11:35:49.679 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from ON to OFF
2022-07-17 11:36:49.321 [vent.ItemStateChangedEvent] - PresenceHomePVSolarEdge_Wifi changed from OFF to ON
2022-07-17 11:36:49.700 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from OFF to ON
2022-07-17 11:36:50.803 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from ON to OFF
2022-07-17 11:37:50.876 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from OFF to ON
2022-07-17 11:37:51.800 [vent.ItemStateChangedEvent] - PresenceHomePVSolarEdge_LAN changed from ON to OFF
2022-07-17 11:37:52.530 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from ON to OFF
2022-07-17 11:38:51.835 [vent.ItemStateChangedEvent] - PresenceHomePVSolarEdge_LAN changed from OFF to ON
2022-07-17 11:38:52.771 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from OFF to ON
2022-07-17 11:41:56.568 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from ON to OFF
2022-07-17 11:42:56.580 [vent.ItemStateChangedEvent] - PresenceHomePCNeoHeat_Wifi changed from OFF to ON
2022-07-17 11:42:58.415 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from ON to OFF
2022-07-17 11:43:58.429 [vent.ItemStateChangedEvent] - PresenceCamRoof changed from OFF to ON
In the same time, when I ping those devices manually, from the same machine, all pings are geting back within few ms.
My network.cfg:
binding.network:allowSystemPings=true
# binding.network:allowDHCPlisten=true
binding.network:allowDHCPlisten=false
binding.network:arpPingToolPath=/usr/sbin/arping
binding,network:cacheDeviceStateTimeInMS=2000
# uses_arp_pings=yes
uses_arp_pings=no
# binding.network:preferResponseTimeAsLatency=true
Things configuration for all is basicly the same:
Thing network:pingdevice:PresenceWAN "Presence WAN" [ hostname="8.8.8.8", uses_dhcp_listen=0, uses_arp_pings=0, retry=5, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:PresenceB818 "Presence Huawei B818" [ hostname="192.168.8.1", uses_dhcp_listen=0, uses_arp_pings=0, retry=5, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:PresenceUSGWAN1 "Presence USG WAN1" [ hostname="192.168.8.100", uses_dhcp_listen=0, uses_arp_pings=0, retry=5, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:PresenceUSGLAN1 "Presence USG LAN1" [ hostname="192.168.1.2", uses_dhcp_listen=0, uses_arp_pings=0, retry=5, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:PresenceAP1UnifiLR_LAN "Presence AP1 Unifi LR LAN" [ hostname="192.168.1.3", uses_dhcp_listen=0, uses_arp_pings=0, retry=3, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:PresenceAP2Unifi_LAN "Presence AP2 Unifi LAN" [ hostname="192.168.1.5", uses_dhcp_listen=0, uses_arp_pings=0, retry=3, timeout=5000, refreshInterval=60000 ]
(arp ping here in the network.cfg have been turned of for testing purposes - no improvement)
As you can see here, timeout for all things is set to 5s, retries for 3, and despite this items statuses are flapping.
Any clue why? Any help would be appreciated.