I solved this for me with another method:
I ask my Fritz Box which devices are connected, i found a little php script that I extended to send http requests when a specific device connects and I periodically call the script via crontab
do you think I should write a little howto for this?
I would be interested in a more detailed description of your solution. Thanks.