From a592a07d1e8975ae76c9e449bfa947b226129ecf Mon Sep 17 00:00:00 2001 From: openHAB Build Server Date: Sun, 12 Jan 2025 10:23:30 +0000 Subject: [PATCH] Updated external content (Jenkins build 2470) --- _addons_bindings/network/readme.md | 13 +++++++++++++ .../main/resources/OH-INF/thing/thing-types.xml | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/_addons_bindings/network/readme.md b/_addons_bindings/network/readme.md index 1e5735b6d..ea1907f87 100644 --- a/_addons_bindings/network/readme.md +++ b/_addons_bindings/network/readme.md @@ -71,6 +71,12 @@ Use the following options for a **network:pingdevice**: - **timeout:** How long the ping will wait for an answer, in milliseconds. Default: `5000` (5 seconds). - **refreshInterval:** How often the device will be checked, in milliseconds. Default: `60000` (one minute). - **useIOSWakeUp:** When set to true, an additional port knock is performed before a ping. Default: `true`. +- **useArpPing:** When set to true if the presence detection is allowed to use arp ping. + This can speed up presence detection, but may lead to inaccurate ping latency measurements. + Switch off if you want to use this for ping latency monitoring. Default: `true`. +- **useIcmpPing:** When set to true if the presence detection is allowed to use icmp ping. + When also using arp ping, the latency measurements will not be comparable. + Switch off if you rather want to use arp ping latency monitoring. Default: `true`. - **networkInterfaceNames:** The network interface names used for communicating with the device. Limiting the network interfaces reduces the load when arping and Wake-on-LAN are used. Use comma separated values when using textual config. Default: empty (all network interfaces). @@ -207,6 +213,7 @@ demo.things: ```java Thing network:pingdevice:devicename [ hostname="192.168.0.42", macAddress="6f:70:65:6e:48:41", useIOSWakeUp="false" ] +Thing network:pingdevice:router [ hostname="192.168.0.1", useArpPing="false" ] Thing network:speedtest:local "SpeedTest 50Mo" @ "Internet" [url="https://bouygues.testdebit.info/", fileName="50M.iso"] ``` @@ -216,6 +223,8 @@ demo.items: Switch MyDevice { channel="network:pingdevice:devicename:online" } Number:Time MyDeviceResponseTime { channel="network:pingdevice:devicename:latency" } +Number:Time MyRouterResponseTime { channel="network:pingdevice:router:latency" } + String Speedtest_Running "Test running ... [%s]" {channel="network:speedtest:local:isRunning"} Number:Dimensionless Speedtest_Progress "Test progress [%d %unit%]" {channel="network:speedtest:local:progress"} Number:DataTransferRate Speedtest_ResultDown "Downlink [%.2f %unit%]" {channel="network:speedtest:local:rateDown"} @@ -235,6 +244,10 @@ sitemap demo label="Main Menu" Text item=MyDeviceResponseTime label="Device Response Time [%s]" } + Frame { + Text item=MyRouterResponseTime label="Router Response Time [%s]" + } + Frame label="SpeedTest" { Text item=Speedtest_Start Switch item=Speedtest_Running diff --git a/_thing_types/org.openhab.binding.network/src/main/resources/OH-INF/thing/thing-types.xml b/_thing_types/org.openhab.binding.network/src/main/resources/OH-INF/thing/thing-types.xml index 5ee4b44cc..25d3799bd 100644 --- a/_thing_types/org.openhab.binding.network/src/main/resources/OH-INF/thing/thing-types.xml +++ b/_thing_types/org.openhab.binding.network/src/main/resources/OH-INF/thing/thing-types.xml @@ -70,6 +70,23 @@ true + + + true + Set to true if the presence detection is allowed to use arp ping. This can speed up presence detection, + but may lead to inaccurate ping latency measurements. Switch off if you want to use this for ping latency + monitoring. + true + + + + + true + Set to true if the presence detection is allowed to use icmp ping. If you are monitoring network + latency using arping, you should switch this off to prevent mixing results with arp ping results. + true + +