Presence Sensor based on pings

Yep. You just need to expose the presence as an endpoint. Some code near this end of this