How can I send triggers that encode an ID?

Hello Felix

you might want to look here. From reading this post, I suspect that your code is incorrect. I conclude that it should be

port.write(bytes(str(movieid)))

Sorry, I have no way of testing it.

Best wishes Jens