[SOLVED] Unable to get network binding working for pings

  • Platform information:

    • Hardware: oDroid C2
    • OS: Ubuntu 16.04.4 LTS
    • Java: OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
    • openHAB version: openHAB 2.2.0-1
  • Trying to get configure the network binding so that it runs a ping every minute to check if my router is online

I think I’ve configured everything but in my basicui I see a “-” instead of ON. I think this means is NULL and hasn’t got a value?


Thing network:device:router [ hostname=“”, refreshInterval=60000 ]


Switch router { channel=“network:device:router:online” }


Text item=router label=“Router [%s]”

After I save the things/items file In the logs I see:

2018-03-30 08:05:11.684 [hingStatusInfoChangedEvent] - 'network:device:router' changed from UNINITIALIZED to INITIALIZING
2018-03-30 08:05:11.790 [hingStatusInfoChangedEvent] - 'network:device:router' changed from INITIALIZING to ONLINE
2018-03-30 08:05:11.791 [me.event.ThingUpdatedEvent] - Thing 'network:device:router' has been updated.

After that I don’t see any updates in the log file. Should be running a ping every 60 secs?

Any ideas as to what I"m missing?

Try adding the 80 port to the thing:

Thing network:device:router [ hostname=“”, port=80 ,refreshInterval=60000 ]

Its a ping though. Nothing is listening on port 80.

I know but I looked on the paperUI and the thing gets these parameters
I have configured my network binding and item through the paperUI and it works flawlessly.

I normally use Items files but in this case it was quick and simple

It is either pingdevice or servicedevice


Thanks, tried pingdevice still no luck.
The weird thing is in paper ui I can see “Pingable network device” online, but still see a dash in basicui

Ping service installed?


Fixed :slight_smile:

Click on pingable network device, then under channels clicked on the Online blue dot, added link item and now its working.

In the paperUI, run the network binding discovery,
Find the router in the discovered things
Add that thing
Click on the think to see the channels
Link an item (or create a new one) for the “online” channel

Just did it on my system


Think this was the bit that I was missing:
Link an item (or create a new one) for the “online” channel

Thanks for the help.

Now, you can also add a manual thing with an external IP address (google…)
Then you can check if you have internet access :slight_smile:

lol. You read my mind. Just added :smiley: