Added event detect for rising and falling to doorclass