Something to start with...
Just to give you an idea what you need...
change pin 11 to your motion gpio pin...remove debugging when done if you don't want logging...
not tested..
import sys
sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib')
import RPi.GPIO as GPIO
import time
import xbmc
import logging
logging.basicConfig(filename='/storage/.kodi/temp/motion.log', format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d %b %Y %T', level=logging.DEBUG)
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.IN)
while true:
i = GPIO.input(11)
if i ==0:
logging.debug("Stopping My Video %s", i)
xbmc.executebuiltin("PlayerControl(Stop)")
time.sleep(1)
elif i ==1:
logging.debug("Playing My Video %s", i)
xbmc.executebuiltin("PlayMedia(/path/to/your_playlist/containing_your_video.m3u)")
xbmc.executebuiltin("PlayerControl(Repeat)")
time.sleep(30)
Display More
Now I just seen that you wanted to pause and play not stop and play so you might need to change some of the script but at least try and see if it works this way..