Basic Device Handler for IP garage door sensor--help needed

This may be helpful: