test for existence of motionWindows field, otherwise you get a keyerror on an line of CSV that does not contain it
change trigger_type to text, add motion_windows as text, more comments