Network binding ping device

I get an error “Cache expiry time must be greater than 0”

Hello.

The THING-Syntax is change.

old: Thing network:device:XXXXXX [ hostname=“XXX.XXX.XXX.XXX”,port=0, retry=1, timeout=2000, refresh_interval=5000, use_system_ping=“false”, dhcplisten=“false”]

new: Thing network:pingdevice:XXXXXX [ hostname=“XXX.XXX.XXX.XXX”]

Doku

Bad the new Binding has no funktion.

I’ve added the thing via the PaperUI

  "network:pingdevice:10_10_10_10": {
"class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
"value": {
  "label": "Galaxy S",
  "channels": [
    {
      "acceptedItemType": "Switch",
      "kind": "STATE",
      "uid": {
        "segments": [
          "network",
          "pingdevice",
          "10_10_10_10",
          "online"
        ]
      },
      "channelTypeUID": {
        "segments": [
          "network",
          "online"
        ]
      },
      "label": "Online",
      "description": "Gibt an ob das Gerät aktuell online oder offline ist.",
      "configuration": {
        "properties": {}
      },
      "properties": {},
      "defaultTags": []
    },
    {
      "acceptedItemType": "Number",
      "kind": "STATE",
      "uid": {
        "segments": [
          "network",
          "pingdevice",
          "10_10_10_10",
          "latency"
        ]
      },
      "channelTypeUID": {
        "segments": [
          "network",
          "latency"
        ]
      },
      "label": "Pingzeit",
      "description": "Gibt an wie lange ein Ping in Millisekunden an das Gerät dauert.",
      "configuration": {
        "properties": {}
      },
      "properties": {},
      "defaultTags": []
    },
    {
      "acceptedItemType": "DateTime",
      "kind": "STATE",
      "uid": {
        "segments": [
          "network",
          "pingdevice",
          "10_10_10_10",
          "lastseen"
        ]
      },
      "channelTypeUID": {
        "segments": [
          "network",
          "lastseen"
        ]
      },
      "label": "Zuletzt gesehen",
      "description": "Gibt Zeit/Datum an wann das Gerät zuletzt gesehen wurde.",
      "configuration": {
        "properties": {}
      },
      "properties": {},
      "defaultTags": []
    }
  ],
  "configuration": {
    "properties": {
      "hostname": "10.10.10.10",
      "refresh_interval": 60000,
      "retry": 1,
      "timeout": 5000
    }
  },
  "properties": {
    "uses_dhcp_listen": "no",
    "presence_detection_type": "",
    "uses_ios_wakeup": "no",
    "uses_arp_pings": "no"
  },
  "uid": {
    "segments": [
      "network",
      "pingdevice",
      "10_10_10_10"
    ]
  },
  "thingTypeUID": {
    "segments": [
      "network",
      "pingdevice"
    ]
  }
}

/etc/openhab2/services/binding.cfg
binding.network:cacheDeviceStateTimeInMS=2000
binding.network:arpPingToolPath=arping

and hi works?

No, since I have not changed anything yet.
I just wanted to tell you that I did not configure the things and items manually, but via the PaperUI

Note, you need to be on a very recent SNAPSHOT for those changes to be in effect.

And it isn’t that the binding has lost functions. Some of the functions have moved to a binding config file rather than needing to be part of the Thing definition.

1 Like

I almost always use the latest snapshot version

Same issue here… :frowning:

Hello @mAr86sEb05,
next time I’d recommend to describe your error better, give your openHAB and binding version, maybe add the right tags or mentionings.

Anyhow, I had the same issue and posted it here: iPhone Presence Detection with hping3 and ARP

Seems like a solution is on its way.

since the last update it works again.
thanks