added support for magnetic door sensor