Added Wi-Fi device detection. A cronjob triggers a little bash script which on his turn checks if my phone can be reached. The result is pushed to the database, and can be queried by jobs like (Turn on light A1, if phone presents > 5/10, and time > 21:00)...