fixed categories, added Reverse/Check Reverse, template for "door" trigger