rhaspberry pi reacting to door status changes