In order to receive notifications when the state of Door/Window 2 sensor changes, you need to create a scene.