@Kristopher Kubicki put this together a while back and I’ve used this code to verify IP connectivity to my roomba devicetype. This should help. Sadly right now there is no way to do an actual ICMP ping from the hub. Another way that may work is to put your XBMC machine on a SmartPower Outlet and use the power consumption to tell if its on or off.