Track your wifi devices and trigger commands depending on their state