type open or close to activate trigger