added heartbeat check for pilight connection